Page 4 of 4
Getting relative values from Collapsible UI component
Posted: Wed Jun 25, 2014 6:18 am
by Aeneas McBurney
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?
Getting relative values from Collapsible UI component
Posted: Wed Jun 25, 2014 7:39 am
by Kateryna Grynko
Hi Aeneas,
You could try replacing:preApperyio("collapsemessagedetail")/preWith:pre$(this)/pre
Getting relative values from Collapsible UI component
Posted: Wed Jun 25, 2014 9:23 am
by Aeneas McBurney
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;}
Getting relative values from Collapsible UI component
Posted: Wed Jun 25, 2014 10:25 am
by Kateryna Grynko
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.
Getting relative values from Collapsible UI component
Posted: Thu Jun 26, 2014 2:34 am
by Aeneas McBurney
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?
Getting relative values from Collapsible UI component
Posted: Thu Jun 26, 2014 2:42 am
by Illya Stepanov
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.
Getting relative values from Collapsible UI component
Posted: Tue Aug 19, 2014 10:17 am
by Kateryna Grynko
Hi Aeneas,
Did you get it working?
Getting relative values from Collapsible UI component
Posted: Tue Aug 19, 2014 11:17 pm
by Aeneas McBurney
Hi Katya, I found another way to achieve what I needed.
Thanks for your help and follow up.
Aeneas