You are viewing limited content. For full access, please sign in.

Question

Question

Get the second values from a muliti-valued field

SDK
asked on February 2, 2015

Hi,

 

I tried to use "LFFieldData.FieldAsString(Name as String) as String" to get a field value from a muliti-valued field. but it always/only returns the top 1 value. Is there any functions, which can return all values as a list or support index?

 

For example, A field name is SSN, and there are two value exist in there: 1111111 and 2222222. is there any property or function can return the 2222222?

 

Thanks

0 0

Answer

SELECTED ANSWER
replied on February 2, 2015

There are examples of this in the SDK documentation. If you search for LFFieldData multi there is a topic on how to get all the values as an array. It also mentions the behavior you were seeing:

Note: LFFieldData exposes several methods that directly return a string value when retrieving field data.These methods will only return the first value for multiple-value fields.

2 0
replied on February 3, 2015

That's what I was looking for. 

 

Thank you very much.

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.