on 10-03-2011 6:35 AM
Hello All ,
Please help me out in creating drop down list in web dynpro in java application .
If Possible please send the sample code as well.
Thanks
Jyothi.
Look for below space...and also try google the basic questions before asking them here......
http://wiki.sdn.sap.com/wiki/display/HOME/ValueHelpsinWebDynproJava-BestPractices
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I tried in this way but my issue is not solved.
1. Create a simpleType.(DictionariesLocal dictonarysimpleTypes)
2. Go to enumeration , and add the data.
3. Create a context and in the property of the context , choose select and select the local dictionary and select the one which you have created.
4. You can create a DropdownKey and map to the context.
but it is not enabled. In properties ennabled-true, readonly -false but it is not enabled.
it's better you ask in this way. then we can guide you better.
where you create your attribute?
if it is not created directly under root context, you have to set the node cardinality to 1:1, or using code to create an element of that type.
the point here is the context you defined is just to provide type information, you have to new a object of that type to get memory allocated, which will in turn enable the UI control.
Edited by: John Wu on Oct 3, 2011 9:10 AM
Hi Venkat,
The cardinality of the context node should be 1:1 (as John mentioned) and not 0:n. Now create a context attribute under this node which has the same type as the dictionary simple type created by you and then map this attribute to "selectedKey" property of DropDownByKey UI element.
Regards,
Pavithra
Hi Jyothi,
You can try the following code to create a List using DropDownbyIndex..
IPrivate<view>.I<Contextnode>Element ele = null;
for(int i=0;i<<Contextnode>.size();i++)
{
ele = wdContext.create<Contextnode>Element();
ele.set<attribute>(<list value>);
wdContext.node<Contextnode>.addElement(ele);
}
Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please google some basic tutorial
http://help.sap.com/saphelp_nw70/helpdata/en/08/13dbfb6e779743bb2ca641ebcb3411/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.