1. How to configure a .htm page to get the CONFIGURATION tab?
2. Details on Custom Controller?
A Custom Controller is used when you want to access data from one view in an other view belonging to the same component.
To do this -
1. You can use the wizard, create a CuCo and attach the context node. By doing this the binding is done by the wizard itself and you need not add any other extra code piece to bind the CuCo and the context node.
2. Now for ex: You have a table in your new custom view for which you have the CuCo, and the save event is obviously in your main over view page. Now how does your CuCo help your save event no that there is another context node data that has to be saved?
<chtmlb: config mode = "RUNTIME"
display mode = "TRUE"
xml = "<%= controller->configuration_descr->get_config_data( ) %>" />
2. Details on Custom Controller?
A Custom Controller is used when you want to access data from one view in an other view belonging to the same component.
To do this -
1. You can use the wizard, create a CuCo and attach the context node. By doing this the binding is done by the wizard itself and you need not add any other extra code piece to bind the CuCo and the context node.
2. Now for ex: You have a table in your new custom view for which you have the CuCo, and the save event is obviously in your main over view page. Now how does your CuCo help your save event no that there is another context node data that has to be saved?
- Create a ref variable which is of type your component controller, this class has an attribute COMP_CONTROLLER, we need to access this component.
- Through this COMP_CONTROLLER's ZTYPED_CONTEXT attribute we access the context node, the collection wrapper. With this we will have access to the TRANSACTION CONTEXT which is added to the save context and saved and committed.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.