There are many ways to create a view object, based on a Entity Object, Static or Query including multiple tables. I wanted to modify a VO during run time by passing a bind variable.
A method is defined in the Application Module which is later added to the client interface and then to the page Definition. In the Page Data Binding Definition(Page->Bindings) have created a Executable with invokeAction and assigned this method and in the Common properties the Refresh attribute is set to renderModel.
So far I am assuming this is the only way to execute logic before the page loads.
Passing Parameter to VO in AM:
For passing a bind variable to a VO during run time, I used a bind variable param1 in the query and then defined it as Bind variable using the section Bind Variables, where I selected the 'required' checkbox.
In the AM method where I need to set this bind variable I used the method setNamedWhereClauseParam to set the value of the param1.
A method is defined in the Application Module which is later added to the client interface and then to the page Definition. In the Page Data Binding Definition(Page->Bindings) have created a Executable with invokeAction and assigned this method and in the Common properties the Refresh attribute is set to renderModel.
So far I am assuming this is the only way to execute logic before the page loads.
Failed to start Application in Server Instance
During the development, when we run the page multiple times you may encounter this, then you may go to Run->Terminate->IntegratedWebLogicServer. Once the Server has been stopped then go to Run->Start Server Instance (IntegratedWebLogicServer), and try to rerun the page.
Passing Parameter to VO in AM:
For passing a bind variable to a VO during run time, I used a bind variable param1 in the query and then defined it as Bind variable using the section Bind Variables, where I selected the 'required' checkbox.
In the AM method where I need to set this bind variable I used the method setNamedWhereClauseParam to set the value of the param1.