Hi all,
I'm stumped (or tired).
I'm looping through form.fieldnames and want to update the database record if the value of the field is not an empty string. However, the fieldnames are set dynamically using the record identifier such as:
UID_C823B934-932A-4A3F-935E-0D5B0345A71B
such that everything after the underscore is the uniqueidentifier of the record in SQL Server.
So to get the value of the field I'd generally do:
evaluate("form." & fld)
But because there are hyphens in the fieldname this fails with an invalid expression error. So I have to pass it with delayed evaluation as:
evaluate(de("form." & fld))
Now I'm not getting the value when I do this, just the fieldname again. I thought that DE was just supposed to pass it as a string to avoid the expression evaluation. What am I doing wrong?
All suggestions are much appreciated!
Cheers,
Kris
I'm stumped (or tired).
I'm looping through form.fieldnames and want to update the database record if the value of the field is not an empty string. However, the fieldnames are set dynamically using the record identifier such as:
UID_C823B934-932A-4A3F-935E-0D5B0345A71B
such that everything after the underscore is the uniqueidentifier of the record in SQL Server.
So to get the value of the field I'd generally do:
evaluate("form." & fld)
But because there are hyphens in the fieldname this fails with an invalid expression error. So I have to pass it with delayed evaluation as:
evaluate(de("form." & fld))
Now I'm not getting the value when I do this, just the fieldname again. I thought that DE was just supposed to pass it as a string to avoid the expression evaluation. What am I doing wrong?
All suggestions are much appreciated!
Cheers,
Kris