Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Getting relative values from Collapsible UI component

Hi Alena

I have added this code to the mapping as per screenshot

Where "collapsemessagedetail" is my collapsible and lblMsgRead is the label within collapsible. However both true and false are showing both as Green?

Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Getting relative values from Collapsible UI component

Please check what values you receive, whether they correspond to your statement

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Getting relative values from Collapsible UI component

The value I'm getting from Read is true or false. I think the issue is I'm not setting the relative label for each collapsible item

Rox
Posts: 0
Joined: Mon Jun 23, 2014 5:23 am

Getting relative values from Collapsible UI component

katya,

I get the following:
The listUserIDs are concatenating into one big string. How do I just get the List Item that was selected?

Image

This is my UI:
Image

and the breadcrumbs at the top.
Image

and this is the code i'm using:
Image

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Getting relative values from Collapsible UI component

After doing some more testing of this it sort of works. I have 4 items being returned to the collapsibles with first 2 being false and last 2 being true. The first false has no color and the next false and true both have green. The last true is then red so its setting the next item rather than the current item in the mapping. How can I resolve this and set current item?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting relative values from Collapsible UI component

Hi Rox, you should add handler to mobilecollapsblock_85 instead of listUserId.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting relative values from Collapsible UI component

Hi Aeneas,

Let's output data type and the data itself. Add the following code to mapping:prealert("type=" + typeof value);
alert("value=" + value);/preThen could you please attach screenshots of these messages?

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Getting relative values from Collapsible UI component

I'm getting output of type=Boolean and value=false for first 2 and Boolean and true for second 2 as expected however its setting the next items colour. See screenshot attached. Also I actually want to set the collapsible header label colour if message is unread but that doesn't seem to change. This is called lblMsgHdr in the code

Image

Rox
Posts: 0
Joined: Mon Jun 23, 2014 5:23 am

Getting relative values from Collapsible UI component

yes! Thank you so much!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting relative values from Collapsible UI component

Hi Aeneas,

Could you please post a public link to your app and tell how you reproduce it?

Return to “Issues”