on 12-19-2008 1:48 PM
Hi all,
am having only one view in my scenario with couple of buttons, by clicking one button other button should be visible.how to do that?..
help me in this regard !!!!
Thanks & regards,
Andy
Thank U Pals , the issue got resolved
Thank u Arjun, Vivek & Udhya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
regret for delay in reply. the issue got resolved , by using Wdui_visibility method.
Thanks Arjun & Vivek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
1.create attribute type WDUI_VISIBILITY.
2.map the attribute with another button u want to visible.
3.in the fist button event set Attribute vaule as 02.
WDUI_VISIBILITY
01: none
02: Visible
regards
Vivekananthan.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand,
Arjun has already explained you the suggested way of achieving your desired functionality. I would just suggest you as to how you can achieve the same through dynamic programming. This is however just for your reference for an insight into dynamic programming and you shouldnt be using this approach in practicality.
I have 2 buttons with id's B1 & B2 in my layout. I have created an action ONB1 for the button B1. The button B2's "visible" property is set to "None". Now in the "Attributes" tab of the view i create a reference variable lr_b2 type ref to cl_wd_button. This would be used to hold the reference of this button. I then fetch and save the reference of this button within the WDDOMODIFYVIEW using the below coding:
method WDDOMODIFYVIEW .
check first_time = abap_true.
wd_this->lr_b2 ?= view->get_element( id = 'B2' ).
endmethod.
Now within the B1's action handler I would have to use this object reference to make the button B2 as visible. This can be done using the coding below:
method ONACTIONONB1 .
wd_this->lr_b2->set_visible( value = '02' ).
endmethod.
That's it! Create an application and try testing it. The button B2 would be invisible by default (as per how you have set in the properties window at design time) & when you click on B1 the method ONACTIONB1 would get triggered resulting in the button B2 becoming visible.
Regards,
Uday
You can try go through these blogs by Thomas Szuecs if you are interested in learning dynamic programming in WDA.
[SAP Network Blog: Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements|]
[SAP Network Blog: Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements|]
[SAP Network Blog: Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements|]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand,
Createan attribute of wdui_visibility type and bind it with the visible property of the second button. After binding the visible property, the second button will be invisible by default. Now in the ONACTION method of the first button, just set the value of that attribute to '02'. This will make the second button visible.
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to assign an attribute from the context node to the (no)display attribute of the button. If you click on the first button, in the action created for this button, you can set the attribute from the context node to true. since this context attribute is assigned to the display attribute of the second button, it will appear on your screen (view).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.