Extracting from multiple value field in a dynamic table

What's the best way to extract data from a multi-value field in a dynamic table? How would I be able to distinguish between records?

ashik1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HemanthaKumarCommented:
Hi

You may have to adopt the index number list like

1.   Col1    Col2    Col3   Col4....
2.   Col1    Col2    Col3   Col4....
3.   Col1    Col2    Col3   Col4....
4.   Col1    Col2    Col3   Col4....
5.   Col1    Col2    Col3   Col4....
6.   Col1    Col2    Col3   Col4....



Use the index number 1 to 6 to extract the data

Good Luck
~Hemanth

0
tonycwuCommented:
Please be more specific. Give examples if possible. This kind of questions is hard to answer since the reader have to guess what you're trying to do.
0
AntonysinghCommented:
Hi ashik1,

In multivalue field values stored like values in an array. You can extract value by specifing its element.

For example, the multivalue field has the following value.

value1
value2
value3
.....


you can get the first value by using document property like this

variable = doc.getitemvalue("Fieldname")(0)

for to get n th value you can use the document property like this

variable = doc.getitemvalue("Fieldname")(n)

like this can extract value from multivalue field

Good luck,
Antony.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HemanthaKumarCommented:
Hi

The solution I provided works like this

The I column is called index column, which is simlar to a RDBMS concept, whenever you try to reference a row in other columns you have to reference the index column and get the index position in the list and extract the data from other columns using that index,

eg: if u wan't to obtain the data for say row 5

Find the value in the index column by using @Member function, which will return the index postion and use that index to extract the data from other columns, say if u get index as 5, @Subset(@Subset(Col1;5);-1) gives u the value of the 5th row in the Col1, similarly u can apply the same format to other columns

If u need more explanation how to do that, let me know

W/B Regards,
Hemanth
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.