on 05-24-2007 12:37 PM
hi all,
There is a property file in my application and i am not sure about using it. I want to display value in drop-down in webdynpro application?
Hi Arpitha,
this might help you,
create a node and two attributes and add this code in init.
InputStream is = getClass().getClassLoader().getResourceAsStream("xxxxxxx.properties");
Properties property = new Properties();
IPublicAppview.ISystemElement systemEle = null;
//IPublicConnectApp.ISystemElement systemEle = null;
try
{
property.load(is);
Iterator iterate = property.entrySet().iterator();
while (iterate.hasNext())
{
Map.Entry map = (Map.Entry) iterate.next();
systemEle = wdContext.node<nodename>().createSystemElement();
systemEle.set<AttributeName>((String) map.getKey());
systemEle.set<AttributeValue>((String) map.getValue());
wdContext.node<nodename>().addElement(systemEle);
}
wdContext.nodeSystem().addElement(systemEle);
}
}
please check this for more information.
http://help.sap.com/saphelp_nw04/helpdata/en/45/e7e14b517b42788a1c166f9f32455e/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have a look at this Quize application tutorial, this will guide you how to use resource bundle.
Regards,
Vijai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.