Skip to Content
0
Former Member
Nov 22, 2006 at 02:42 AM

Populating drop down list in a table cell-urgent

50 Views

Hi all

I have a problem. I want to populate a dropdown list in a table cell. can anybody tell me the step by step procedure for that.

I am doing it generally. not using R/3

I am creating sub node like u have mentioned. I haven't done it using wizard.

Is there any difference in the way we populate this list?

My root node is expense. Inside that some value attributes are there. For the drop down list i've created a sub node 'extype'.

I am getting error.

it is:

com.sap.tc.webdynpro.progmodel.context.ContextException: Node(EREmpHomeView.expense.extype): cannot bind or add elements because the node has no valid parent

Following is the code i've written.

IPrivateEREmpHomeView.IExtypeElement el;

IPrivateEREmpHomeView.IExtypeNode nd=wdContext.nodeExpense().nodeExtype();

el=wdContext.nodeExpense().nodeExtype().createExtypeElement();

el.setEtype("Travel");

nd.addElement(el);

Sill i'm getting the same error

Hi Nidhideep

Error has gone with the code that Mr Anil has given. But there is no value in the List. Dropdown list is coming as a blank list.

Thanks and Regards

Aparnna

Message was edited by:

aparnna prasad