Poll Component 1. Create model part with Employees table 2. Create a page employees.jspx 3. Drag and drop employeesVO instance from data control as table. 4. Now drag and drop poll component on to the page (anywhere in the page) 5. 6. To refresh our table we need to re execute our query, to do this firstly we need to go to the page definition of our page, from the binding section click the green + sign ,and select action binding. 7. 8. Select poll from structure window and in the property inspector give interval (by default it is 5000 milli sec) 9. Select pollListener -> edit and create managed bean. 10. 11. Write this method to refresh the table. public void refreshEmployeestable(PollEvent pollEvent) { // Add event code here... BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); ...
Posts
Showing posts from March, 2022
- Get link
- X
- Other Apps
How to create a cascadingLOV. step1: We need to create the Location & countryEO’s,VO’s. step2: In the location VO we have the countryId so now we need to create the LOV for that. step3 :In the UI hint we need to select the countryName. step4: Next we need to create the new View object based on the queryVO. step5 :In this we need to select the stateprovince & then click on OK. step6: Now in the query we need to write the query where country_id=:p_country step7: We need to define a variable. step8: Just click next –next---finish. For the statesprovince we need to create the LOV. step9 :Save & run the AM. step10 :Now we need to create in jsf page à locationView Drag & drop from the Data control to jsf page. step11: Select the Country Id as autosubmit true step12: For the stateProvince we need to...
POJO(Plain Old Java Object) - Editable Data - DataControl.dcx
- Get link
- X
- Other Apps
POJO(Plain Old Java Object) - Editable Data - DataControl.dcx Without using EO’s & VO’s we can create a UIPage with Java Class. First we need to create a Java Classes name it as a Entity Java Classes (i,.e. DepartmentsEO, EmployeesEO, LocationsEO.) Then Again create another three java classes for storing data in Department List Java class, Employee list, Location List. Below image for Creating Java classes. End of the Page have a ZIP file This JAVA class for creating list of Data (Dept list, Emplye list, location list) Now we have to create Another Java class for calling the All the above created java classes( This Java Class Act like APPMODULE ) Name it as Session Façade. After Creating Session Façade Java Class. Just Right click on the java class, in that options select the Create Data Control. CREATING DATA CONTROL After Creating Data control, All the java classes automatically created .XML files . Java Code for DepartmentsEO, EmployeesEO, Locatio...
Programmatically invoke a Popup to create a new row.
- Get link
- X
- Other Apps
Programmatically invoke a Popup to create a new row. Create an Application . Create the model part with Employee Table. Create EmployeeEO, EmployeeVO and AppModule. Now in the View controller project create a page (Employee.jspx). From the Data control drag and drop EmployeeVO1 (EmployeeVO instance) in to the page as Read only table. Surround this table with Panel Box. In the tool bar facet of panel box, drop a command button from the component pallate. Drag and drop Popup on to the page. Inside popup drop a dialog box. Create a ActionListenerEvent for the button "New". And bind RichPopup to the bean. Code for button............. public void displayPopUp(ActionEvent actionEvent) { // Add event code here... BindingContext bctx=BindingContext.getCurrent(); BindingContainer bctr=bctx.getCurrentBindingsEntry(); Operatio...
Dynamic Tabs in ADF
- Get link
- X
- Other Apps
First we have to create Departments and Employees(EO's,VO's,AM) Create Two task-flows ( Departments and Employees Creating JSPX page in adfc-config.xml Now Create to take " Oracle Dynamic Tabs Shell " (Max 15 tabs Only) In page template we have navigation facet, in that drag drop two links from component palette , for that link create ActionListener to write the java code in that. public class launcher { public void openDepartmentsAsMain(ActionEvent actionEvent){ try{ TabContext.getCurrentInstance().setMainContent("/WEB-INF/dept-task-flow#dept-task-flow"); } catch (TabContext.TabContentAreaDirtyException e) { } } pub...