on 02-26-2009 8:37 AM
hi,
I have created a view in which i have more than one button in that view. Is it possible to set a particular button as a default button when page is loaded.
Thanks & Regards,
Ramesh
Yes, that's possible. Set the following for the root container of the view:
- defaultButtonId = <id of default button>
- isLayoutContainer = false
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Yes that's what exactly i want, but it is not working.
Under RootUielementcontainer placed two buttons Button and Button1 with ID's Button and Button1 respectively. and i have set the property "Default button id = Button" in RootUielementcontainer properties. Now when i execute this application and click on Enter the cursor should be on the default button "Button" and it has to be clicked. But is not happening.
Could you please tell me whether i should do any further changes in properties.
Thanks,
Ramesh
Hi Armin,
I have created a sample application and tested the application by placing only two buttons in the view at that time this default button is not highlithted, if i am having atleas one more uielement other than buttons in my view at that time the defaultbutton is getting highlithted and working fine. Thank You for your solution Armin, Thanks a lot.
Thanks & Regards,
Ramesh.
Hi Ramesh,
Create a value attribute of type com.sap.ide.webdynpro.uielementdefinitions.Visibility and bind it to the buttons which you do not want to show when the page is loaded.
Write the below line of code in Init() of view.
wdContext.currentContextElement().set<ContextAttributeName>(WDVisibility.NONE);
when you want to see the buttons then set the visibility property to Visible.
wdContext.currentContextElement().set<ContextAttributeName>(WDVisibility.VISIBLE);
Thanks & Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.