Use inlinepopup In the ADF

Source: Internet
Author: User

 

Overview 
After jdeveloper 11g 11.1.1.2.0 was released, many new features were added. The Inline popup function is available in the Oracle ADF, so that task-flow can be embedded in a popup.
Implementation 
1. Create entity object (parameters, locations), view object (departmentsview, locationsview) based on the parameters and locations tables in the HR schema ), create an AM instance and add the instances of departmentsview and locationsview to the data model of the am instance.
2. Create a new page named main. jspx
3. Create bounded-task-flow with page fragments, named orders-Taskflow, add the jsff page to the task flow, and name it department. jsff: add the task flow call to the page flow and name it locations-Taskflow as the parameters. popup popped up in jsff, and then add control flow rule. jsff points to locations-tasfflow and is named gopopup.

 

4. Modify the attributes of locations-Taskflow

5. Double-click department. jsff and create its corresponding jsff page through the Wizard. Drag the corresponding departmentsview instance from the Data Controls panel to the page for proper layout. After the operation is completed, the command button is added to the page. The popup pop-up action will be triggered using the button later. Set the properties of the command button, set the button to trigger the inline popup event, and set the return value to the locationid variable.

6. Set the text of the newly added commandbutton to "choose locationid", set action to gopopup, and adjust the pop-up window size and other attributes reasonably.

7. Double-click locations-Taskflow and use the Wizard to create the task-flow. Select bounded-task-flow instead of fragments to design the task flow.

 

8. Because the return value is specified earlier, you need to add the return parameter for locations-Taskflow.

9. Add the locationid in the binding of the page so that the value can be later

10. layout the locationsview as a table. Drag the OK and cancel buttons to the page and set the action of the two buttons as goreturn.

11. Add setpropertylistener to the OK button and set the mapping relationship of its property value.

12. Add a returnlistener named confirmchoice () to the attributes of the choose locationid button.CodeAs follows (obtain the corresponding binding of the returned locationid to the page ):

Public void confirmchoice (returnevent) {<br/> bindingcontext = bindingcontext. getcurrent (); <br/> bindingcontainer bindings = bindingcontext. getcurrentbindingsentry (); <br/> controlbinding control = bindings. getcontrolbinding ("locationid"); <br/> attributebinding locationid = (attributebinding) control; <br/> locationid. setinputvalue (returnevent. getreturnvalue (); <br/>} 

13. Add the partialtrigger of the locationid inputtext on the page as this button, and refresh the value while triggering the button action.

14. embed the parameters-Taskflow in the form of region into the main. jspx page.

15. Save the application and run it.

1) click the button on the instances page to bring up inlinepopup.

2) Select record and click OK to return the result.

This article is transferred from Oracle Seeker: http://oracleseeker.com/2009/12/30/adf_dialog_inlinepopup_11g/

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.