Hi,
Could you please clarify what value is read from mobileselectmenu_165?
Please add the following JavaScript to parameter 'where': prereturn '{"Book": {"$regex": "A"}}';/pre
Hi,
Could you please clarify what value is read from mobileselectmenu_165?
Please add the following JavaScript to parameter 'where': prereturn '{"Book": {"$regex": "A"}}';/pre
You select what book you want to see in the mobile select menu. I added the code and now it at lease takes the all of the calves away but it still doesn't show the ones that should be there.
Also, I have a regular search page so how can I get it to only search for calves in the book selected on a different page?
Hi Eascards,
Please try this code:
pre
var whereObject = {"Book":{"$regex":"^" + value, "$options":"i"}};
return JSON.stringify(whereObject);
/pre
Regards.
Working great!! Thanks for your help!
How can I get it so that when I open the search page, it only searches through the calves within the book selected on the previous page?
Hi eascards,
You need to store bookId on previous page to the LSV.
See details: http://devcenter.appery.io/tutorials/...
Then use this LSV in this "where" parameter in accordance to your needs.
Regards
eascards,
Ok, no problem, leave current link and just edit your JS inside this "where" parameter.
You need to pass in this object some specific search criteria which is you need with value from LSV.
You can access to this LSV with following code:
pre
var bookid = localStorage.getItem("bookid");
/pre
Then you can use "bookid" js variable.
Regards.
Hello,
You try to define bookid variable after you return value and exit function. Code after return will never execute.