Bert Vandenbogaerde
Posts: 0
Joined: Thu Dec 19, 2013 11:10 am

Restaurant menu

I made the tutorial three times yesterday. It has little to do with my issue i am afraid

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

Restaurant menu

Please try this:
1.On list item click save id to localStorage variable

  1. Navigate to detail page
  2. On detail page
  3. add new query service from second DB collection http://docs.appery.io/tutorials/build...
  4. map localStorage variable to where clause in your service
  5. on detail page - Page show event - Invoke query service.
Bert Vandenbogaerde
Posts: 0
Joined: Thu Dec 19, 2013 11:10 am

Restaurant menu

GREAT!!!

This was the answer that i was looking for!

Thank you!

Bert Vandenbogaerde
Posts: 0
Joined: Thu Dec 19, 2013 11:10 am

Restaurant menu

One last question:

I have a column in my database but not all row entries have a value for that column.

When i map the results i want a text saying that there is no value instead of "undefined".

I tried using javascript:

Image

Image

Image

What is wrong about the code?

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

Restaurant menu

Try this:

pre
if (!value) {
//put your code here
}
/pre

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

Restaurant menu

pre
if (!value) {
return 'there is no value';
}
/pre

Bert Vandenbogaerde
Posts: 0
Joined: Thu Dec 19, 2013 11:10 am

Restaurant menu

Thank you Igor!

Great Support!

Return to “Issues”