Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

Cheers Marina,
I tried that in test, here is the result, successful but no entries, there are over fifty companies in "newcastle upon tyne"

also cant use the above with select menu

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

retrieving data from collection

1) Are you sure that there is a record NEWCASLTE UPON TYNE in DB in field Town?
Make a request with empty "where" parameter and check response. As we can see from the screenshot there is ALNWICK record in Town field. Try to send request with where code{"Town": "ALNWICK"}/code
Does this request work?

2) To use selected value in Select add JS in mapping codereturn '{"Town": "' + value + '"}';/code

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

Thank you Marina

{"Town": "ALNWICK"} works in test, but selectmenu will not allow entry of

{"Town": "ALNWICK"}

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

retrieving data from collection

In value should be ALNWICK and this code codereturn '{"Town": "' + value + '"}';/code add in JS in mapping to request parameter where

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

retrieving data from collection

As always Marina,
thx very much, works great!

Return to “Issues”