Skip to Content
author's profile photo Former Member
Former Member

Value Help

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 02, 2005 at 12:28 PM

    Hi,

    Your code seems ok, the only point to check whether or not node FlightList has any elements.

    VS

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.