on 11-19-2009 9:41 AM
Hi guys,
I'm trying to change the UI properties during runtime.
I have searched through several threads raised by the others related to this issue, and have also looked at the sample posted by Pritam at:
[http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynproABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynproABAP]
I tried using the SET_ATTRIBUTE_PROPERTY, but my UI properties does not seem to change. Did not work in WDDOINIT or ONACTIONs.
CALL METHOD lo_el_equipment->set_attribute_property
EXPORTING
attribute_name = 'RECEIPT'
property = 3
value = 'X'.
Can anyone advise on the possible reasons why the method is not working for me?
Not sure if this will help, but during my debugging, I noticed that IF_WD_CONTEXT_ELEMENT~E_PROPERTY is not marked as binded. When I double click into it and try to manually change the values in debug mode, I am getting the following message:
Variable -IF_WD_CONTEX does not exist
Thanks in advance!
hi ,
it works well for me in WD DOINIT ,
u need to have a context attribute RECEIPT under ur CONTEXT tab in ur view .
rgds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
go thru this link
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
in this go to - "Properties of Context Attributes"
here you can get detail regarding set_attribute_property which might give u adequate way of doing it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The node name is Equipment and you have an attribute Reciept in that node rght?
DATA lo_nd_equipment TYPE REF TO if_wd_context_node.
DATA lo_el_equipment TYPE REF TO if_wd_context_element.
DATA ls_equipmentTYPE wd_this->element_user_view.
DATA lv_accept_enable LIKE ls_user_view-accept_enable.
navigate from <CONTEXT> to <USER_VIEW> via lead selection
lo_nd_equipment = wd_context->get_child_node( name = wd_this->wdctx_equipment).
*
get element via lead selection
lo_el_equipment = lo_nd_user_view->get_element( ).
*
CALL METHOD lo_el_equipment ->SET_ATTRIBUTE_PROPERTY
EXPORTING
ATTRIBUTE_NAME = 'RECEIPT'
PROPERTY = " of type T_PROPERTY
VALUE =
.
Priya
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.