John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

calculating label items in a list

Good morning
I'm populating a list with a service, I need to do some calculations based on data returned in each record.

Example:

For each record returned by the service I have:
label1 mapped to responseParameter1
label2 mapped to responseParameter2

so my results go:
record 1:
label1: "foo"
label2: "bar"

record 2:
label1: "big"
label2: "small"

This works.
I need for each record to have label3, which is the result of a calculation involving labels 1 and 2. For example, with simple concatenation:

record 1:
label1: "foo"
label2: "bar"
label3: "foobar" t know how to access the values in javascript).

Thanks for your help,
John

Return to “Issues”