Page 2 of 3

How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 5:15 pm
by Igor

Hello Marc,

On "LlistaMunicipis" screen:

  • Add new list component to the screen. Set Items=1;

  • Put label to the list component;

  • Map components like on screen shot ;
    Image

  • use this code on where clause "AddJs" prereturn '{"COMARCA":{$regex:"'+value+'"}}';/pre

    All should work on "Alt Camp" item click.


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 5:43 pm
by Marc6388140

I'm sorry, it doesn't work:

Image

Image

Image

Image

Image


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 5:54 pm
by Marc6388140

The request shown by the inspector doesn't look fine. I think the problem is in the code for the "where" clause:

Image


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 6:17 pm
by Marc6388140

I've forced the codethis way to set the where clause to "Alt Camp"

Code: Select all

return '{"COMARCA":"Alt Camp"}'; 

And this is how it should look:

Image

Image

So the problem is in the way the value is formated. A workaround with the $regex function is needed...


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 7:23 pm
by Igor

We have an issue about requests. Please take a look at this topic: https://getsatisfaction.com/apperyio/...


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 7:30 pm
by Marc6388140

Oh, I see. How will you let us know that the issue is fixed?


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 7:43 pm
by Igor

We'll post reply to this topic.


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 7:45 pm
by Marc6388140

OK, Thank You all for your patience and support!


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 9:26 pm
by Marc6388140

So, just to clarify, the issue only happens in test mode or it also affects to finished Apps that make requests to Data Bases in the Appery cloud? It is important to know how reliable is the service before sending an App to the store and have "lots" (hopefully) of users disappointed after an update in the server.

Thank You


How to select a value in a list and retrieve data in a new page based on that value?

Posted: Sat Nov 09, 2013 10:47 pm
by maxkatz

The request issue mentioned above has been fixed.