CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Local Storage Variable not working on where database query.

Truing to fill the "where" in a database query.

The database collection columns is LeadID
I replace the localStorage.LeadID('text') for the actual LeadID number to test and it works. I need to use the local storage variable instead. The local variable is working, I can see it on the Browser tools with its value.

This is what I am entering in the where field

{'LeadID':'localStorage.LeadID('text')'}

HELP!!!!!! Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Local Storage Variable not working on where database query.

Hello -

Just use mapping binding from your Storage value "LeadID" to where field on the right side.

CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Local Storage Variable not working on where database query.

That does not work :(

How do I change the status of my question to unanswered?

CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Local Storage Variable not working on where database query.

This did not solve the issue, can you mark it as unanswered to see if I can get more help? thanks.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Local Storage Variable not working on where database query.

Hello,

Text, which you use on the screenshot above is sent to the server as a plain text.
1) Remove all that text from the mapping
2) Add mapping arrow from the storage variable LeadID to the parameter "where"
3) Add JS code below to that mapping
prereturn {LeadID: value};/pre

Image

Return to “Issues”