Page 2 of 5

can search results load in listview?

Posted: Thu Oct 24, 2013 10:01 pm
by Scott Schechtel6280324

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


can search results load in listview?

Posted: Fri Oct 25, 2013 8:27 am
by Maryna Brodina

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.


can search results load in listview?

Posted: Fri Oct 25, 2013 6:44 pm
by Scott Schechtel6280324

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?


can search results load in listview?

Posted: Fri Oct 25, 2013 7:05 pm
by Scott Schechtel6280324

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


can search results load in listview?

Posted: Fri Oct 25, 2013 7:24 pm
by Scott Schechtel6280324

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

Image

Image


can search results load in listview?

Posted: Fri Oct 25, 2013 8:44 pm
by Kateryna Grynko

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.


can search results load in listview?

Posted: Fri Oct 25, 2013 9:09 pm
by Scott Schechtel6280324

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.


can search results load in listview?

Posted: Fri Oct 25, 2013 9:15 pm
by Scott Schechtel6280324

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


can search results load in listview?

Posted: Fri Oct 25, 2013 9:20 pm
by Scott Schechtel6280324

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?


can search results load in listview?

Posted: Fri Oct 25, 2013 10:06 pm
by Scott Schechtel6280324

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

Image

Image