Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

Querying two collections on one MobileListItem

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

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

Querying two collections on one MobileListItem

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

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

Querying two collections on one MobileListItem

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Querying two collections on one MobileListItem

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)

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

Querying two collections on one MobileListItem

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?

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

Querying two collections on one MobileListItem

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

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

Querying two collections on one MobileListItem

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?

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

Querying two collections on one MobileListItem

Hi Peter,

Could you please post a public app link?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Querying two collections on one MobileListItem

Hello Peter,

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

Return to “Issues”