Page 6 of 13

More Detail on using the select menu

Posted: Thu Aug 14, 2014 5:05 am
by eascards

Did I get off track here somehow? I tend to do that! This is for when I go to the search page, it only searches through the book selected on the previous page.

This is the JS for the query service 'where' parameter. Image

This is the LSV that seems to be working correctly. Image


More Detail on using the select menu

Posted: Thu Aug 14, 2014 11:24 pm
by Yurii Orishchuk

Hi,

Pelase take a look on the screen shot:

http://prntscr.com/4cwchq/direct

Regards.


More Detail on using the select menu

Posted: Fri Aug 15, 2014 6:38 am
by eascards

Added and and no luck. Image


More Detail on using the select menu

Posted: Sun Aug 17, 2014 1:47 am
by eascards

Have you had a chance to look at this?


More Detail on using the select menu

Posted: Sun Aug 17, 2014 2:19 am
by Alena Prykhodko

Hello,

As soon as we have updates, we'll get back to you. This will take some time.


More Detail on using the select menu

Posted: Mon Aug 18, 2014 3:48 am
by Yurii Orishchuk

Hi Eascards,

You don't need to use here JSON.stringify. Cause of returned object just an ID. http://prntscr.com/4dwlj1/direct

So use:

pre

return bookId;

/pre

Regards.


More Detail on using the select menu

Posted: Mon Aug 18, 2014 3:02 pm
by eascards

So since I want the calf to show up, should I add this code right before return bookid or how should I do that. This is the code that I used before implementing the LVS.

var whereObject = {"calv_id": {"$regex": value, "$options": "i"}};
return JSON.stringify(whereObject);


More Detail on using the select menu

Posted: Tue Aug 19, 2014 12:27 am
by Yurii Orishchuk

Hi Eascards,

pre

var whereObject = {"calv_id": {"$regex": value, "$options": "i"}};
return JSON.stringify(whereObject);

/pre

The code above correct for "where" parameter where you need to pass json string.

But right code for "_id" parameter should return only string with ID.

Regards.


More Detail on using the select menu

Posted: Tue Aug 19, 2014 2:47 am
by eascards

So this is what I changed it to. I'm not sure if that is what you meant though. Image

Didn't return the calf information.


More Detail on using the select menu

Posted: Tue Aug 19, 2014 5:00 am
by Yurii Orishchuk

Hello,

Nope, that's not good.

Here is right code for you:

pre

var bookId = localStorage.getItem("bookid");

return bookId;

/pre

Regards.