Priyanka Patel
Posts: 0
Joined: Sat Aug 17, 2013 5:41 am

Assigning number into label

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Assigning number into label

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.

Priyanka Patel
Posts: 0
Joined: Sat Aug 17, 2013 5:41 am

Assigning number into label

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Assigning number into label

Please do next steps:

  1. Add "mobilegrid" component. Set "Rows"=1 "Cols"=1.

  2. Put label into "mobilegrid" component.

  3. Map service response field to label component.
    See my screenshots
    Image Image

    Let me know if it works for you.

Priyanka Patel
Posts: 0
Joined: Sat Aug 17, 2013 5:41 am

Assigning number into label

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.

Return to “Issues”