on 01-15-2009 7:59 AM
Hi,
I am trying to bind the visibility attribute to context com.sap.ide.webdynpro.uielementdefinitions.Visibility value attribute.
But i am not able to set the same in the implmentation as i dont have access to WDVisibility class and its referenced constants like WDVisibility.NONE,WDVisibility.BLANK, WDVisibility.VISIBLE.
Can someone please tell me how do u solve this problem.
Thanks
Srikumar V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code,
You can create a context attributes of type "WDVISIBILITY" for different tables and on click on the buttons you can make others visible or none by using
wdContext.currentContextElement().set<TABLE1VISIBLE>(WDVISIBILITY.NONE)
wdContext.currentContextElement().set<TABLE1VISIBLE1>(WDVISIBILITY.VISIBLE)
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry , mymistake. i am using webdynpro for handhelds. and uses string , i have bounded the context visibility to uidefinitions.Visibility itself.
In the implementing code based on certain conditions i set the value to visible as follows. But still i am not able to see the element. Basically the following code is executed onSelect Action of a dropdown .
But if i access the element in modifyview and setVisibility of the element true in the modify view it works.
But not while setting it using the context. Can you please advice.
public void onActionOnChange (Event wdEvent) {
//@@begin onActionOnChange(ServerEvent)
if(wdContext.currentContextElement().getCustomerNumber()!=null)
{
if(wdContext.currentContextElement().getCustomerNumber().equalsIgnoreCase("Cust2"))
{
System.out.println("value" + wdContext.currentContextElement().getOrderListTableVisibility());
wdContext.currentContextElement().setOrderListTableVisibility("visible");
System.out.println("value" + wdContext.currentContextElement().getOrderListTableVisibility());
}
else
{
wdContext.currentContextElement().setOrderListTableVisibility("blank");
}
}
//@@end
}
Hi,
Are you using Mobile Application for Laptops?
If yes then do the following:
In the context create an attribute of type :
com.sap.ide.webdynpro.uielementdefinitions.Visibility
Then assign this attribute to the Visibility property of the UI element.
Now when you can say something like this:
wdContext.currentContextElement().set<attributename>(WDVisibility.NONE);
Regards,
Narayani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.