Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Displaying Data

Lim,

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

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Displaying Data

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Displaying Data

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.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Displaying Data

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!

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Displaying Data

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.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Displaying Data

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Displaying Data

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.

nadiah jabbar
Posts: 0
Joined: Fri Jun 20, 2014 3:42 am

Displaying Data

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Displaying Data

Hi Nadiah,

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

If so how do you do it?

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Displaying Data

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.

Return to “Issues”