I've try with single and double..
I've try with single and double..
Ok, I've create a simple APP, Javascript, based on SouthWind
I've a section, based on Orders table
I've created a index on customers table
Index on customerid tag customerid
on the customer formfield I've add a validation:
keylookup('southwind!customers', 'customerid', "'{}'", 'true', 'false')!='false'
this work on App Builder but not on Web Preview.
but work on app inspector if I put a value
keylookup('southwind!customers', 'customerid', "WILMK", 'true', 'false')!='false'
I've try with single and double quotes
it's impossible to save the edited records.
Hi Fabio,
There are too many quotes around the {}. It should be:
Regards,Code:keylookup('southwind!customers', 'customerid', '{}', 'true', 'false')!='false'
Yvonne
Can I use:
Lianja.evaluate("mylib::mylibproc('{}')") ?
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Yes I have a good idea what validation is used for.
What I was trying to explain to you is that Lianja.evaluate() has no clue what {} is.
When you specify {} in the validation expression for a formitem, the framework knows what formitem is associated with {} and it can then substitute the current input text value.
{} is primarily used to substitute the current value associated with a UI element. In certain cases e,g Data Mapping on the server it is used to substitute current table.column value.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Hi Yvonne,
your sample don't work on web preview.
Ok Fabio.
you need to double the single quotes around the {} as keylookup() is a built-in function that will proxy a call to keylookup on the server.
You are not enclosing {} in quotes to the server.
‘\’{}’\’
That should properly enclose the value substituted for {} and it will be sent as ‘WILMK’
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks