Page 3 of 4

Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 3:23 am
by Aeneas McBurney

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 3:43 am
by Alena Prykhodko

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 4:25 am
by Aeneas McBurney

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 5:00 am
by Rox

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 9:33 am
by Aeneas McBurney

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?


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 1:28 pm
by Kateryna Grynko

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 1:29 pm
by Kateryna Grynko

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?


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 10:06 pm
by Aeneas McBurney

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


Getting relative values from Collapsible UI component

Posted: Tue Jun 24, 2014 11:51 pm
by Rox

yes! Thank you so much!


Getting relative values from Collapsible UI component

Posted: Wed Jun 25, 2014 5:52 am
by Kateryna Grynko

Hi Aeneas,

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