Page 1 of 1

Hash Variables in Default Value SQL for Lookup

Posted: Wed Feb 13, 2013 11:18 am
by ruiascensao
Hi,
I'm using Hash Variables in Default Value SQL:

Code: Select all

SELECT IF('#dec_site#'='site1', '1511a0e757cc37', '511a0e4fccb19') FROM location
But does not work.
Can I use Hash Variables? Is something wrong with my code?

Thank you.

Re: Hash Variables in Default Value SQL for Lookup

Posted: Thu Feb 14, 2013 1:21 am
by admin
Rui,

You don't need from location

Code: Select all

SELECT IF('#dec_site#'='site1', '1511a0e757cc37', '511a0e4fccb19') 

Steven