I'm writing XP-VAPI scripts in HP ALM and some objects of the OTA-API use a construct which looks like this:
object.Field('nameOfField') = newValue;
Obviously this is not valid in Javascript. But because I use an IDE that checks the syntax according to ECMA standards this is shown as a syntax error. So I wonder is there a way to do this assignment with a proper Javascript syntax? I tried the following variants with no success:
CurrentRun.Field("RN_USER_13").value = 'pfusch';
CurrentRun.Field.RN_USER_13 = 'pfusch';
CurrentRun.Field["RN_USER_13"] = 'pfusch';
CurrentRun["RN_USER_13"] = 'pfusch';
CurrentRun.RN_USER_13 = 'pfusch';