cancel
Showing results for 
Search instead for 
Did you mean: 

Input field in Tables

Former Member
0 Kudos

Hi All,

I have Input Fied in the table when i enter the value in the one row and navigate to another raw. the existing value in the input of the first row is replaced by the fresh entered second row value...

Please suggest how to Inputtwo values in separate rows.?????

Regards,

CSP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I created a table wih inputField.

Had no problems.Explain the context structure of your table node along with context for the inputField ?

Former Member
0 Kudos

The context structure....

ValueNode(Z_PO)

|

|----


PoNumber

|----


Vendor Number

|----


PurchaseOrderDate

|----


InvoiceDate(InputField)

|----


InvoiceNumber(InputField)

ValueAttribute cardiallity 1....n

|

|-------SupplyQty(InputField) --- table Input

For Supply qty the value is replacing...

For ex:

10 items in item level i.e., table , the supply qty is replacing in all the rows...

Suggest plz

|

arun_srinivasan
Contributor
0 Kudos

Hi

For the value node for table go to the properties change <b>singleton to false</b> initiallly it is true

regards,

Arun

Former Member
0 Kudos

Hi Pradeep,

It seems there is some problem in creating and binding the elements to the node. Pls check the code. if possible, paste the code here.

Regards,

Shyam.

Former Member
0 Kudos

hI,

i AM UNABLE TO MAKE.

iT'S DISABLED

Former Member
0 Kudos

Z_Po_Item_Details_Input input1 = new Z_Po_Item_Details_Input();

wdContext.nodeZ_Po_Item_Details().bind(input1);

try{

input1.setIv_Ebeln(PoNumber);

wdContext.currentZ_Po_Item_DetailsElement().modelObject().execute();

}

catch (Exception e)

{

e.getStackTrace();

}

arun_srinivasan
Contributor
0 Kudos

Hi

Please post your code

Thanks and Regards,

Arun

Former Member
0 Kudos

Z_Po_Item_Details_Input input1 = new Z_Po_Item_Details_Input();

wdContext.nodeZ_Po_Item_Details().bind(input1);

try{

input1.setIv_Ebeln(PoNumber);

wdContext.currentZ_Po_Item_DetailsElement().modelObject().execute();

}

catch (Exception e)

{

e.getStackTrace();

}

Former Member
0 Kudos

Hi Pradeep,

this is a value node. So you might have created the elements for the node before you could enter the data. Its there that you could have probably gone wrong. pls post that code.

regards,

Shyam.

Former Member
0 Kudos

If I understand your problem correctly, you have a table with dataSource=Z_PO and you have a column with an InputField bound to attribute "SupplyQty" from another node. Is this correct?

This does not work. Instead create a helper value node "Additional" under the table data source node and put attribute "SupplyQty" into node "Additional". Set singleton=false, cardinality=1:1, selection=1:1 for "Additional".

You can access the attribute value with code like

IZ_POElement row = ...;
row.nodeAdditional().currentAdditionalElement().setSupplyQty(value);

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pradeep,

Make sure that the cardinality of node bound to table is 0.N and firstVisibleRow property of table is 0

Regards

Fahad Hamsa