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

Getting relative values from Collapsible UI component

Hi Katya,

Unfortunately the app requires facebook authentication and logon so not that easy. Basically the jscript code in the mapping to the dataset in my screenshot is updating the next item in collapsible rather than the current one it populating. So the find($) command must first find the next item rather than the current item when setting the colour.

Does this make more sense?

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

Getting relative values from Collapsible UI component

Hi Aeneas,

You could try replacing:preApperyio("collapsemessagedetail")/preWith:pre$(this)/pre

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

Getting relative values from Collapsible UI component

Hi Katya doing what you suggested makes none of the labels change color unfortunately.

What I believe is the same issue happens when I write the Read field to a localStorage variable on mapping and then when I use for another label as below it changes the next item not the current item in the collection.

var read=localStorage.getItem("msgRead");
if (read==='false'){
return value +'(NEW)';}
else
{return value;}

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

Getting relative values from Collapsible UI component

Hi Aeneas,

I'm sorry, please replace:preApperyio("collapsemessagedetail")/preWith:pre$(element)/pre
Try debugging your app. Does the program get into this condition?http://devcenter.appery.io/documentat...

It would be better if you could share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

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

Getting relative values from Collapsible UI component

Sorry that doesn't work either. This is what I have in the mapping JS for the Read filed which is true/false.....

if (value===false) {
$(element).find($('div[dsid="lblMsgRead"]')).css("background-color","green");
$(element).find($('div[dsid="lblMsgHdr"]')).css("background-color","green");

}

No colors are changing?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Getting relative values from Collapsible UI component

Hi Aeneas,

Please could you share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a? And tell us its name and steps how we can reproduce your problem.

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

Getting relative values from Collapsible UI component

Hi Aeneas,

Did you get it working?

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

Getting relative values from Collapsible UI component

Hi Katya, I found another way to achieve what I needed.

Thanks for your help and follow up.

Aeneas

Return to “Issues”