eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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

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

More Detail on using the select menu

Hi,

Pelase take a look on the screen shot:

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

Regards.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

Added and and no luck. Image

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

Have you had a chance to look at this?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

More Detail on using the select menu

Hello,

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

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

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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);

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

More Detail on using the select menu

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

More Detail on using the select menu

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.

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

More Detail on using the select menu

Hello,

Nope, that's not good.

Here is right code for you:

pre

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

return bookId;

/pre

Regards.

Return to “Issues”