on 10-01-2012 6:49 PM
Hi Experts,
I have one requriment in my selection screen of web dynpro abap I have one input fields and one drop down and four select options
and I have to hide the select-options based on the conditions which user is selected in drop down
how deal with this functionally
and secondly how to bind more then one select-options in BIND_TABLE.
i am pasting here code for one select option, please help me to modified this for Four select options
DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: RT_CARRID TYPE REF TO DATA.
DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
DATA: WSFLIGHT TYPE SFLIGHT.
FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
* Retrieve the data from the select option
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
* Assign it to a field symbol
ASSIGN RT_CARRID->* TO <FS_CARRID>.
CLEAR ISFLIGHT. REFRESH ISFLIGHT.
SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
WHERE CARRID IN <FS_CARRID>.
NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
Need the valueable help.
Thanks in advance.
Prakhar
Hi Prakhar,
The way u r handling single select option, same way u can handle multiple select options.
Regard's,
Shivesh Ranjan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakhar,
To hide the Select-options go through this post where i have already discussed about this.
http://scn.sap.com/thread/3244902
Hope this help you.
Regards
Madhukiran M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakhar,
You can control the visibility of a select-option's ViewContainerUIElement by binding its visible property to a context attribute. Then in the dropdown's onSelect event, you can write your action handler method to set the bound context attribute to either true or false.
Cheers,
Amy
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.