Page 2 of 3

Querying two collections on one MobileListItem

Posted: Sat Jul 19, 2014 2:01 am
by Peter Viglietta

Katya, Evgene and anyone else who can help, I put together a screenshot with all the steps, and the code I've been given thus far. Could someone take a look at this and please provide the JS I need to make this happen? Any help is much appreciated, thanks

Image


Querying two collections on one MobileListItem

Posted: Sun Jul 20, 2014 6:10 pm
by Peter Viglietta

I'm not sure how to try this.. what should I do with the part that says 'some new text probably from data variable'? I'm unsure of the purpose of that part, can you explain please? Thanks


Querying two collections on one MobileListItem

Posted: Sun Jul 20, 2014 6:11 pm
by Peter Viglietta

Can someone take a look at the code in my screenshot and tell me what I'm doing wrong please?


Querying two collections on one MobileListItem

Posted: Tue Jul 22, 2014 2:20 pm
by Evgene Karachevtsev

Hello Peter,

You should decide to do that was advised here:
https://getsatisfaction.com/apperyio/...
or that was advised here:
https://getsatisfaction.com/apperyio/...
This are two approaches to the problem. Recommendation from Katya is easier to implement (because all the code in one place)


Querying two collections on one MobileListItem

Posted: Tue Jul 22, 2014 11:57 pm
by Peter Viglietta

Evgene, I saw these posts, I don't know how to write this code. Katya said I need to create a function that has a variable called 'element' that gets its data from a variable called 'data', or something to that effect? I don't know how to manipulate the code to accomplish that. Can you provide the code I would need to implement?


Querying two collections on one MobileListItem

Posted: Wed Jul 23, 2014 2:54 pm
by Kateryna Grynko

Hi Peter,

Please see the following screenshots.

Here is a Database structure and how to fill Collections:

Image Image

Here are service settings, page structure, mapping, mapping JS code and results:

Image Image Image Image Image


Querying two collections on one MobileListItem

Posted: Thu Jul 24, 2014 5:20 am
by Peter Viglietta

Katya, thanks so much for the response. I tried this and it's still not working. I set it up exactly as you have it in the screenshot and the LastMessage label is still coming up blank.. Could you take a look?


Querying two collections on one MobileListItem

Posted: Thu Jul 24, 2014 7:04 am
by Kateryna Grynko

Hi Peter,

Could you please post a public app link?


Querying two collections on one MobileListItem

Posted: Thu Jul 24, 2014 9:43 pm
by Peter Viglietta

Querying two collections on one MobileListItem

Posted: Fri Jul 25, 2014 8:50 pm
by Evgene Karachevtsev

Hello Peter,

Could you please give us steps for test? What username/password to use, where to click to see the result?