I want to be able to set a value for a computed field on my datawindow through a script in the window. I have to check to see if specific columns( about 15 in the dw) are equal to a certain value. If it is, I want to set the computed field to a certain value. The reason I don't want to do this in the computed object expression box in the dwo, is because I have 15 fields to check. This would be a combersome if statement.
How come the setitem for the computed field is not working? Can I do a setitem on a computed field? And, if so, what is the correct syntax?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.