Assigning number into label
Posted: Sat Aug 17, 2013 5:41 am
by Priyanka Patel
Hi,
I have only just started using Appery. I have a number column in a collection in my Appery database. I want to assign this number to a label but the label only accepts text.
How or where do I even add custom javascript to do this. Also do I need to parse the number in the text label field?
Assigning number into label
Posted: Sat Aug 17, 2013 5:58 am
by Igor
Hi,
Please take a look at the docs.
http://docs.appery.io/documentation/u...
http://docs.appery.io/tutorials/build...
[quote:]
Also do I need to parse the number in the text label field?
[/quote]
No you don't need to do this.
Assigning number into label
Posted: Sat Aug 17, 2013 8:55 am
by Priyanka Patel
The documentation simply shows how to map fields from the database to the local variables.
I didn't find any help on how to assign a NUMBER column to a TEXT label.
Cheers
Assigning number into label
Posted: Sat Aug 17, 2013 10:02 am
by Igor
Please do next steps:
Add "mobilegrid" component. Set "Rows"=1 "Cols"=1.
Put label into "mobilegrid" component.
Map service response field to label component.
See my screenshots
Let me know if it works for you.
Assigning number into label
Posted: Sat Aug 17, 2013 10:25 am
by Priyanka Patel
Hi
Thanks for your help.
Figured out that I was mapping the fields correctly but i updated the database. so had to deleted and re-create the services.