2009 Mar 05 2:30 PM
Hi,
seems like a simple task, but I can't get it to work:
(I checked the tutorials first, but I could not make the sample work)
Can someone post a sample code of how to set a button to invisible in the WDOINIT section?
Thanks
hs
2009 Mar 05 2:58 PM
Hi Holger,
refer to the link below, you can do the same & pass the value in WDOINIT rather than Method ONACTIONENABLE_DISABLE as done in the example below:
With luck,
Pritam.
Hi,
seems like a simple task, but I can't get it to work:
(I checked the tutorials first, but I could not make the sample work)
Can someone post a sample code of how to set a button to invisible in the WDOINIT section?
Thanks
hs
2009 Mar 05 2:51 PM
HI Holger,
bind that visibilty of that button in the properties.
then in the initiliaztion do as follwo.
wd_context->set_attribute( exporting name = 'BUTTON' value = '1' ).
check 1 or 2 i think its 1 for the hide.
Thanks!
2009 Mar 05 2:58 PM
Hi Holger,
refer to the link below, you can do the same & pass the value in WDOINIT rather than Method ONACTIONENABLE_DISABLE as done in the example below:
With luck,
Pritam.
2009 Mar 05 3:04 PM
I already tried that tutorial, but it does not work. The "SET_ATTRIBUTE" method does not do it.
2009 Mar 05 3:17 PM
Hi Holger,
Now for youe caseI have added the below code in WDOINIT to make FIRST_NAME & LAST_NAME invisible and its working
data lo_el_radio_node1_11 type ref to if_wd_context_element.
lo_el_radio_node1_11 = wd_context->get_element( ).
* Call method set attribute property and pass value as SPACE to HIDE
call method lo_el_radio_node1_11->set_attribute_property
exporting
attribute_name = 'FIRST_NAME_1'
property = 1
value = space.
* Call method set attribute property and pass value as SPACE to HIDE
call method lo_el_radio_node1_11->set_attribute_property
exporting
attribute_name = 'LAST_NAME_1'
property = 1
value = space.and in by my first answer go to ONACTIONSHOW_HIDE instead of ONACTIONENABLE_DISABLE .
With luck,
Pritam.
Edited by: Pritam Ghosh on Mar 5, 2009 4:17 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |