Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

Can you show me an example for 'calculate the parameter...'. Not sure how to create your solution.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

can search results load in listview?

Hello!
1) On first screen on click on search wines button add two events: Set local storage variable--Bind to component--Input and Navigate to page (navigation to page with list)
2) On page with list invoke service to call DB using saved in localStorage value for mapping to request parameter where. Then follow tutorial http://docs.appery.io/tutorials/build... (but on click on list item not delete element as shown in tutorial, instead save _id into localStorage and navigate to Results page)
3) on Results page invoke service for DB on page Load event using saved into localStorage _id as the value for mapping to request parameter.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

Maryna, I already have the event for the Search Wines button as follows:
Click 1. Invoke service Datasource: wine_query. Should I remove this event first? and then create the page with the list?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

Stuck on step 1 but I created the WineList page. how do I set up the list component?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

How do I bind the component if there's not an option to bind it to? Screenshots of what I have:

Image

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

can search results load in listview?

Scott,

Select "Bind to component" and Target component = your Input component.

Invoke service Datasource: wine_query - you can leave it on the first page and create a page with list.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

When I check Bind to Component after selecting set Local Storage variable, the target component options just list what is on that page. I'm not sure what to put for Variable name and there's nothing to add to the property name so I get an error when I click add event.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

Nevermind, I got the bind to component. Now I need to map

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

Now I need help with Maryna's step 2 above:

2) On page with list invoke service to call DB using saved in localStorage value for mapping to request parameter where. Then follow tutorial http://docs.appery.io/tutorials/build... (but on click on list item not delete element as shown in tutorial, instead save _id into localStorage and navigate to Results page)

Do I use allwines3_list_service or query_service?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

can search results load in listview?

How do I map the WineList page for Data/response? Screenshots for request mapping and the Design view.

Image

Image

Return to “Issues”