on 02-17-2009 11:50 AM
Hi,
There a drop down with 3 options(Between,On,From).The requirement is that the field should contain only the option "ON".
The Drop down option can be removed by setting the properties to the fields. The drop down values are as a part of domain which is binded to the screen element.
So either through code we need to override these values or need to create a new domain which is having only the relevant values and bind this to screen element.
But the later option may cause some issues as the same might used at some other places in the component.
Kindly help me.
Thanks In Advance.
Regards,
Swetha.
Hi Swetha,
The requirement is that the field should contain only the option "ON".
you want to make the "ON" is default value in the drop down am i correct.then write the below code in
WDDOINIT method.
I also have come across same scenario very recently.There i have 2 values defined in domain among one of them i have to show as default.
navigate from <CONTEXT> to <ND_SHOWTRIPS> via lead selection
lo_nd_nd_showtrips = wd_context->get_child_node( name = wd_this->wdctx_nd_showtrips ).
get element via lead selection
lo_el_nd_showtrips = lo_nd_nd_showtrips->get_element( ).
you know key the values.So now set the value to the attribute.
ls_nd_showtrips-trip_duration = '02'.
set show trips
lo_el_nd_showtrips->set_static_attributes(
exporting
static_attributes = ls_nd_showtrips ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.