on 06-06-2007 9:23 AM
Hi All,
Please fine tune my code....I am using RFC model....so ,i used Evs search help for perticular field.... I read RFC model value for search help....it is worked or not..... Please Sugest the correct method and code...
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateMain.IContextElement.Value);
ISimpleTypeModifiable countryType = attributeInfo.getModifiableSimpleType();
countryType.setFieldLabel("Country");
IModifiableSimpleValueSet valueSet = countryType.getSVServices().getModifiableSimpleValueSet();
int size = wdContext.<b>nodeValues</b>().size;(This is model node)
for (int i = 0; i < size; i++) {
valueSet.put(i, wdContext.nodeValues().getValuesElementAt(i).getValue());
}
Thanks & regards
ManiR
Not solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
First execute the RFC Model and get the output
.And then u can use EVS as follows
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateDetailsView.IContextElement.<b>STR_EDU</b>); [value attribute]
ISimpleTypeModifiable simType = attInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valSet = simType.getSVServices().getModifiableSimpleValueSet();
for(int i = 0; i < wdContext.nodeNSlartList().size();i++)
{
valSet.put(i,wdContext.nodeNSlartList().getNSlartListElementAt(i).getStrStext());
}
And if u want to set the default value thn write
wdContext.currentContextElement().setStrEdu(wdContext.nodeNSlartList().getNSlartListElementAt(0).getStrSlart());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.