on 01-06-2011 5:29 AM
Hi,
Can anyone explain me the functionality of the parameter FIRST_TIME in web dynpro application.
Thanks in advance.
Regards,
Suvajit
Hi,
FIRST_TIME is a freamework generated boolean attribute available in WDDOMODIFYVIEW method. Its value is true only when the view is loaded for the first time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi suvajitmukherjee ,
First_time indicates whether the hook is called for the first time during the lifetime of the view
this parameter will lies under Modifyview hook method .
example :
METHOD wddomodifyview .
IF FIRST_TIME is not initial .
" code written here will execute only for the first time .
ENDIF.
ENDMETHOD.
regards
chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wddomodify is the hook method which is triggred every time an event occurs and this method is used to dynamically create
UI elements in the view and so usually the code that you write to create UI elements should execute only once that is during the
first load of the view.
That thing is done by FIRST_TIME parameter which is of type boolean so in the code you check if first_tiem is abap_true then
only create the UI elements.like as below.
if FIRST_TIME = abap_true.
" Here you write your code
" for creating the UI elements dynamically.
endif.
Thanks
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.