Mike Maughan
Posts: 0
Joined: Wed Feb 19, 2014 10:55 pm

How to access Appery component properties with javascript?

Thanks for your help!

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

How to access Appery component properties with javascript?

hi evgene.

i have same issue here. i have one grid component and its bind with database. so list of records will be displayed. in grid component there are two buttons. if there are 10 records in database then those two buttons will repeat 10 times.

so its id will changed after bind with database. i try your code that you mention here.

$("[dsid=walkthroughitem_title"+i+"]").css("color", "#00ff00");

when i used that code it gives me an error(" i is undefine") and i used that code in success mapping of service where the array parameter bind with grid and i put that code on js("mobilegrid_12") but it doesn't work.

Please guide me here what i need to do?

Thanks.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to access Appery component properties with javascript?

Hello Saurabh,

Do you want to add this color to all walkthroughitem_title components? It is better to set it on the JS from the mapping, using variable element, e.g.:
preelement.css("color", "#00ff00"); /pre

suresh
Posts: 0
Joined: Tue Apr 18, 2017 10:14 am

How to access Appery component properties with javascript?

Link seems unavailable

suresh
Posts: 0
Joined: Tue Apr 18, 2017 10:14 am

How to access Appery component properties with javascript?

Link seems unavailable

Return to “Issues”