AnsweredAssumed Answered

get ( ActiveFieldName) not working

Question asked by strngr12 on Apr 24, 2012
Latest reply on Apr 24, 2012 by Stephen Huston

Can anyone tell me why this may not work? The third line doesn't set the variable $firstField. My script just jumps over this part like it's not there.

 

Go to Layout [ “Data Entry” (Code Book) ]

Go to Record/Request/Page[ First ]

Go to Field [ ]

Set Variable [ $firstField; Value:Get ( ActiveFieldName ) ]

Loop

Exit Loop If [ $currentField = $activeField ]

Set Variable [ $currentField; Value:Get ( ActiveFieldName ) ]

Perform Script [ “sanitize for XML”; Parameter: $currentField ]

Set Variable [ $currentField; Value:Get ( ScriptResult ) ]

Set Variable [ $fieldData; Value:Get ( ActiveFieldContents ) ]

Perform Script [ “sanitize for XML”; Parameter: $fieldData ]

Set Variable [ $fieldData; Value:Get ( ScriptResult ) ]

Set Variable [ $xmlKeyPair; Value:"<" & $attrTag & " key=" & Quote($currentField) & ">"& $fieldData &"</" & $attrTag & ">" ]

Set Variable [ $appendScriptLine; Value:"echo " & Quote(" Perform AppleScript [ Calculated AppleScript: "do shell script" & Quote($appendScriptLine) ]

Go to Next Field

Set Variable [ $currentField; Value:Get ( ActiveFieldName ) ]

End Loop

 

Thanks for any help.

Outcomes