Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Additional user parameters

Hi Matt,

Here is solution for you:

1 Open "Phases" page.

2 Navigate to "data" tab.

3 Find there "list_Phase" datasource and click "Edit Mapping".

4 Find here "where" request parameter and click "Add JS"/"Edit JS".

5 Currently you have here following code:

pre

var locProj = localStorage.getItem("_projectNameForNav");
return '{"$and": [{"accountID":"'+value+'"},{"projectName":"'+locProj+'"}]}';

/pre

6 you need to replace it with code below:

pre

var parentId = localStorage.getItem("parentId");
var whereObject = {"projectID": {"collName":"Projects", "id": parentId} };

return JSON.stringify(whereObject);

/pre

That's all. Now when you click on "project" you will be redirected to "Phases" page with "Phase" items belong to this clicked project.

Regards.

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Additional user parameters

HI Yurii,
thank you for the reply. My problem is actually not with the "Phases" page, those services are working for me. On the "Contacts" page, when you click existing it should load a list from my "Contacts" DB collection. The list service for my "Contacts" database collection is not returning any results when I use a pointer query. I tested the query in the database and it works but the same query will not work for the service. Image Image
This should have returned 3 results similar to the query performed in the DB.
Image Image Image

This "Contacts" list service is also not working when I invoke it on my "ContactDetails" Page.

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Additional user parameters

Well it turns out that my list service for the DB Collection "Contacts" will not return any results even if I open query the collection without anything in the 'where'. It says test successful but doesn't give any results. I tested another collections list service in the same way and it returned all of the entries from that collection as it was supposed to do.
Do I have to delete this Contacts List Service and start over?
I shared the App, its called ProFlow.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Additional user parameters

Hi Matt,

It seems you have some specific ACL for these contacts.

Because when i tested it in service it have empty result. http://i.imgur.com/WkDhejz.png

Please try to use in your ACL field for some contacts following ACL value:

pre

{"*":{"write":true,"read":true}}

/pre

Also if you can not manage to fix it please share your database and give us it name.

Regards.

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Additional user parameters

Hi Yurii, thank you for the reply.
I did have all the of my ACL's set to blank. I pasted the ACL value that you provided in ACL Fields of that collection and it worked! I'll use that ACL Value for all new DB entries. Thank you for the help!

Return to “Issues”