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

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

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.

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

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

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

Image

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

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

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...

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

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

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

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

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

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

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

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

We'll post reply to this topic.

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

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

OK, Thank You all for your patience and support!

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

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

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

The request issue mentioned above has been fixed.

Return to “Issues”