on 06-19-2013 11:08 AM
Hi all,
I want to know the significance of OnBeforeAction and Modifyview. BeforeAction is also called everytime like modify view. So can we write any type of code on any trigger? e.g I want to validate a field which trigger will be best suited and Why ? Please explain in detail.
Thanks,
Vimal
Hello Vimal,
The purpose of Modify_view is mainly when you want to do some dynamic modification on the screen. For example if you want to set a default sorting on some column on a table. In modify_view method you have the instance of view from which you can get instance of any off the used UI element and you can perform any dynamic modification to that UI element.
For example obj_table ?= view->get_element( 'TABLE' ).
Before_action method is mainly used when you want to do some validation on some actions. As soon as you perform any action before_action is triggered.
Also if there is any common functionality that you want to perform on all the actions can be written in before_action method.
Hope this helps you... If not i will give you more practical examples.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vimal
The 'Modifyview' is used more when you have a main application and it uses 'TABSTRIPS', where each Tab has a different program Webdynpro.
Clicking on a TAB you activate 'Modifyview', but the 'BeforeAction' acts only within the selected TAB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.