Page 3 of 7

Displaying Data

Posted: Tue Jul 08, 2014 5:12 am
by Yurii Orishchuk

Lim,

Please specify steps how we can get goal page from start page of your app?

Regards.


Displaying Data

Posted: Tue Jul 08, 2014 5:22 am
by Lim Samantha

Please do run from startScreen.

  1. For a short cut, you can start from RealStep1_Clone_2 , fill in the blanks then,

  2. run at RealStep33_Clone_4 where it display the list u had fill in peviously, and now type in the actual amount, add and it will display the label and saved into the database.


Displaying Data

Posted: Tue Jul 08, 2014 11:39 pm
by Yurii Orishchuk

Hi Lim,

You did not add code provided above.

See details:

http://prntscr.com/40sgp2/direct

You need to use the code given below :

pre

//Set your component names.
var inputName = "actualAmount";
var labelName = "displayActualAmt";
var itemElement = "mobilegrid_319";

var currentElement = jQuery(this);

//Note: you should replace "yourItemElement" with name of component which is you iterate with mapping.
var currentItem = currentElement.closest('[name="' + itemElement + '"]');

//Get value from input
var bananaValue = currentItem.find('[name="' + inputName + '"]').val();

currentItem.find('[name="' + labelName + '"]').text(bananaValue);

/pre

Regards.


Displaying Data

Posted: Wed Jul 09, 2014 2:53 am
by Lim Samantha

Hi thanks im able to display it now.
However, it is not saved into database.
I would like to save the actual amount and the total amount into database.
I've created two database, one for each.

Thanks!


Displaying Data

Posted: Wed Jul 09, 2014 4:38 am
by Yurii Orishchuk

Lim,

Now you need to make update processing.

Please follow these tutorials to understand how to do it:

http://devcenter.appery.io/tutorials/...

http://devcenter.appery.io/tutorials/...

Regards.


Displaying Data

Posted: Wed Jul 09, 2014 5:57 am
by Lim Samantha

Hi thanks.
I am able to save in the database now. However, it does not appear in my label anymore after saving in the database

After i type in my actual amount, it is save into database but not display at the label.
Image


Displaying Data

Posted: Thu Jul 10, 2014 12:38 am
by Yurii Orishchuk

Hi Lim,

Please specify: do you reload this list after you save to DB?

If so - you need to populate this info in list service mapping.

If not - please try solution above to get it work.

Regards.


Displaying Data

Posted: Thu Jul 10, 2014 1:46 am
by nadiah jabbar

hello.
This is the list service mapping that we have done.
however, the amount is still not display at the label.
Image


Displaying Data

Posted: Thu Jul 10, 2014 9:45 pm
by Yurii Orishchuk

Hi Nadiah,

Please specify: do you invoke this list service after invoking update service?

If so how do you do it?

Regards.


Displaying Data

Posted: Sat Jul 12, 2014 2:53 pm
by Lim Samantha

Hi so sorry, not very sure what you meant.

Here is our application.
Please do run from RealStepp33_Clone_4
http://appery.io/app/project/8ede79da...

Our aim is to display the amount on the label after we added in.

http://appery.io/app/mobile-frame?src...

Thank you.