on 02-06-2014 11:09 AM
Hi All,
I have two trays and with few UI elements in Each.
I want to handle dynamically, if one tray is selected i want to collapse the other tray,similarly vice versa.
The Trays i have created in the layout and there is no binding done.
regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
Thanks for your reply, i knew that this can be done creating the attribute and then changing them attribute value,
but i want to know is there any class where i can access the list of screen ui elements and set their properties.
like i got this class CL_WD_TRAY, but not sure how to use it .
if there are any other ways please provide sample code.
regards,
I have given you the best way already using the node and attribute.. ..
Rest what you can do, you need get the reference of the Trays dynamically in the domodifyview and then you need to change the value of that property, this is not the recommended way, because writing code in modifyview increase the load on the application .. I didn't tried this thing too, but i think this can help you.
Thanks all for your replies, will try the logic mentioned.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naren,
As Chandra told, create two attributes of property WDY_BOOLEAN and bind those attributes
to each tray accordingly.
Now change the values of those attributes in OnToggle method.
lets say
if tray1 u want to expand, write attr1 = 'X' and attr2 = ' '
if tray2 u want to expand, write attr1 = ' ' and attr2 = 'X'.
Hope it is helpful.
Best regards,
Rao.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you'll need to bind those trays if you want them to be dynamic...
May I ask why you've chosen not to do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.