Skip to Content
0
Former Member
May 02, 2005 at 11:38 AM

Value Help

13 Views

Hi All,

I am trying Value help from SAP in my application .

FlightList is the node which is mapped to model object through custom controller .

I have created context value node 'Test' in view controller. Comp as value attribute under this node.

I am binding this value attribute to input field UI element . But I am getting blank list in drop down.

Following is the code I have written in DoInit method of

View controller.

IPrivateResultView.ITestElement newElement = wdContext.createTestElement();

ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("Test.Comp");

IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();

IFlightListElement thisl1 ;

int cnt = wdContext.nodeFlightList().size() ;

for (int i = 0; i < cnt ; i++ )

{

thisl1 = wdContext.nodeFlightList().getFlightListElementAt(i);

String city = thisl1.getCityfrom();

values.put("Key_"+i , "Country_" +city);

}

wdContext.nodeTest().addElement(newElement);

wdContext.currentTestElement().setComp("Key_1");

Thanks in advance.