cancel
Showing results for 
Search instead for 
Did you mean: 

DropDown in Table

Former Member
0 Kudos

Hi,

I have two issues:

1. How to do a*(b/c) for a,b,c bigdecimal in webDynpro Java.

2. How to add values to a dropdown column in a table, when the values are coming from RFC.

Thanks,

Sunita.

Message was edited by: sunita

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

BigDecimal a = ...;
BigDecimal b = ...;
BigDecimal c = ...;

b.divide(c, BigDecimal.ROUND_UNNECESSARY).multiply(a);
Former Member
0 Kudos

can somebody tell me how to work with dropdown in the table column when I need to feed values from the RFC.

Thanks,

Sunita.

Former Member
0 Kudos

Hi

Assuming you have following node structure for the table.

TableNode

|_

DropDownNode(Node for the DropDown in table)

Please make sure that the DropDownNode is Non singleton.

Use dropdownByindex

Steps:

1)Set the Node dropdown of property singleton to false.

2)Add the dropdown element to the table node

Using the code with bold lines below..

IPrivate<ViewName>.ITableElement Text = wdContext.createTableElement();

Text.set<Att>("aaaa");

//Ading elements below the table node

wdContext.nodeTable.addElement(Text);

for (int i=0; i<4; i++) {

IDropdownElement drop = wdContext.createDropdownElement();

drop.set<dropAtt>("test " +i);

//Ading values to dropdown and intrun to table node

Text .nodeDropdown.addElement(drop);

}

You have to populate the DropDown Node for each element of the TableNode

Thanks

Lohi.

Former Member
0 Kudos

Hi,

Have a look at this thread

Regards,

Saravanan K