You can download sample application I have developed - LOV11Create.zip. This application contains two fragments, one is used for Search and Edit forms and second for Create form. Fragments are implemented in Task Flow, which is dropped to JSPX page as Region. I have developed Create form for Employees entity and have defined two LOV components - one for JobId and second for DepartmentId attributes.
In 10.1.3.x to develop Create form, you was using invokeAction in Page Definition. However, it is changed now. In 11g you need to use Method Call activity in your Task Flow to invoke Create mode and pass navigation to a form - it's a key point now. In diagram below, create navigation rule points to invokeCreate Method Call activity. This activity executes Create action associated with your Data Control and pass navigation to a form that will be displayed in Create mode:
Don't forget to set SkipValidation = true property in Page Definition file created for invokeCreate Method Call activity. This will allow to open our form with mandatory fields in Create mode.
In Property Inspector you can see that invokeCreate activity invokes #{bindings.Create.execute} action, exactly what we want:
On runtime, when form is opened in Create mode, we can use LOV component now:
Provide values for other not associated fields contained in the form:
And save entered record to the database:
0 comments:
Post a Comment