cancel
Showing results for 
Search instead for 
Did you mean: 

populating table with two dimensional array elements

Former Member
0 Kudos

Hi,

Please suggest me with the valuable help for the undermentioned problem:

String a[] = { "NewYork", "London" };

String b[] = { "art1", "art2" };

String s1[] = { "32R", "32L" };

String s2[] = { "39R", "40L", "32S", "35R" };

My result should look like this in a tabular form :

Linkage between array’s

When user select "art1" in array b[] then array s1[] gets selected and result is as follows:

Table1

Ship to location 32R 32L

NewYork

London

When user select "art2" in array b[] then array s2[] gets selected and result is as follows:

Table2

Ship to location 39R 40L 32S 35R

NewYork

London

Regards

Mainak

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can create following context

ArtNode(ValueNode)

-


ArtName (ValueAttribute)

-


ShipLocation(ValueNode)

-


Location(ValueAttribute)

Take DropDownByIndex UIElement and Bind it to ArtName

Take Table and Bind it to Location.

Populate the above context in wdinit() method.

Regards, Anilkumar

Former Member
0 Kudos

Hi Anil,

The desired result which i want must be in tabular form :

with header element as Ship to location 32R 32L

text element NewYork input field input field

london input field input field

What i did is populated a final 2-D array and created a dynamic node along with dynamic attribute on the basis of final array and populated that in a table along with columns which i created dynamically ...

But in vain.

Regards

Mainak

Former Member
0 Kudos

So, you will selecting the values art1,art2.....etc and depending on that you want to see the details in the table...is that right ??

Still you can do this with the above context structure (with one more nested level)

Regards, ANilkumar

Former Member
0 Kudos

Hi Mainak,

I have test application for this. If you want i can send it through e-mail.

Regards, Anilkumar

Former Member
0 Kudos

Hi Anil,

It will be fine if u send me your test application through mail.

u can also mail me at:

mainak_iem2002@yahoo.co.in

Regards,

Mainak.

Message was edited by:

mainak bhattacharya

Former Member
0 Kudos

Done !!

Regards, Anilkumar