Is there an alternative to eval() where I can evaluate a text input as part of the code? And also, why is it not a best practice to use the eval()?
Discussion posts and replies are publicly visible
No. There isn't any alternative. Also. this is an undocumented function of Appian. As far as reason is concerned about why this is not generally available, lets wait to hear from someone from Appian.
In reverse order:
That answers your specific questions. Taking a step back - what is the actual problem you're trying to solve here?
I want to use it as such:
where ri!pkName is a cdt field which i want to address in updatedictionary()
a!update should get you there.
eval() is evil! It allows an attacker to inject code into your application. Think of a SQL injection attack.
Oh thanks, that was helpful.
© 2022 Appian. All rights reserved.