on 08-28-2005 2:44 PM
Hi all,
how can I create the UIElement IWDToolBarDropDownByKey dynamically and set the selected key?
I tried:
...
IWDToolBarDropDownByKey dd = (IWDToolBarDropDownByKey) view.create(IWDToolBarDropDownByKey.class, "dd" + counter);
dd.setSelectedKey("ContextAttributeName");
toolbar.addToolBarRightItem(dd);
ContextAttributeName is a Value Attribute in the Context.
An error occurs:
Path null does not point to an attribute, but to com.sap.tc.webdynpro.progmodel.eneration.DelegatingView
Regards,
Johannes
Johannes,
Instead of
<i>dd.setSelectedKey("ContextAttributeName");</i>
use one of
<i>dd.bindSelectedKey(reference2IWDAttributeInfo);</i>
or (for attribute in root context)
<i>dd.bindSelectedKey("ContextAttributeName");</i>
or (for attribute of some node)
<i>dd.bindSelectedKey("NodeA.SubnodeB.AttributeX");</i>
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johannes,
Looks like you some UIElements on the view(DesignTime) .Please check the mandatory attriutes for those UIElements.
What is "toolbar" in your code ??
Regards, Anilkumar
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 | |
10 | |
7 | |
6 | |
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.