cancel
Showing results for 
Search instead for 
Did you mean: 

Code for Search Help

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not solved

Former Member
0 Kudos

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());