on 07-20-2009 10:07 AM
Hi,
My requirment is to display two fields as drop down in the selection criteria of WDynpro Application i.e Year ( Dropdown) , Month( Drop Down).Is there any way we can achive this .
Thanks,
Kumar
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use DropdownbyIndex or DropdownbyKey uielements.
1.Goto Context, create a node DRPDWN cardinality 0:n, under this node create an attribute 'TEXT' type String
2.Goto Layout tab, right click on ROOTUIELEMENTCONTAINER->insert element->drop down by index.
3.Bind the texts property of dropdownbyindex uielement with attribute 'TEXT'
4.Goto WDDOINIT method and place the following code to populate your dropdown with value
DATA: lt_list TYPE wd_this->elements_cn_dpdwn,
ls_list TYPE wd_this->element_cn_dpdwn.
Data: nd_drpdwn type ref to if_wd_context_node.
ls_list-key = 'January'.
APPEND ls_list TO lt_list.
ls_list-key = 'February'.
APPEND ls_list TO lt_list.
............................ " and so on
nd_drpdwn = wd_context->get_child_node( 'DRPDWN' ).
nd_drpdwn->bind_table( lt_list ).
Kindly check standard component WDR_TEST_EVENTS.
Regards,
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.