Header Ads

Do_prepare_output and On_new_focus


DO_PREPARE_OUTPUT


DO_PREPARE_OUTPUT method is triggered each time the view is prepared after each event. Normally we redefine this method in order default the initial values based upon the parameter iv_first_time = 'X'. There can be certain other scenarios like putting data validations where this method can be helpful.

ON_NEW_FOCUS
This event/method fires, when the object got the focus in the collection( ierator).
Example: you can set the new properties of the entities here.

Suppose if one object content changes, then other object must see the new changes(publishing), in this scenario you can implement this method.

ON_NEW_FOCUS is especially useful when you have two context nodes in your application with parent-child relation (header-item), then if the parent(header) is changed the underlying children(items) have to be refreshed and proper ones have to be extracted. This is usually achieved by executing get_related_enities and updating the context node. ON_NEW_FOCUS is triggered after PUBLISH_CURRENT method is executed.
Powered by Blogger.