on 2009 Apr 21 7:10 AM
Hi,
I have created a dynamic button using the code..
DATA: lr_container TYPE REF TO cl_wd_uielement_container,
lr_button TYPE REF TO cl_wd_button.
CHECK first_time = abap_true.
lr_container ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
cl_wd_matrix_layout=>new_matrix_layout( container = lr_container ).
lr_button = cl_wd_button=>new_button( id = 'BUTTON'
text = 'My Button'
on_action = 'ACTION' ).
cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_button ).
lr_container->add_child( the_child = lr_button ).
its working fine and iam able to see the button .....but when i create another button thorugh layout design its going for dump....whats the reason .?
Cant we create static and dynamic buttons at a time?
Thanks,.
Shailaja Ainala.
Hi Shailaja,
You can have a static and dynamic button in the same view. Make sure that the ID of both the buttons are different. And also make sure that the layout is matix layout , as you are using matix layout in your code to create a button.
If the problem still persists then plz paste the dump message.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.