AnsweredAssumed Answered

Problem passing field contents containing muiltiple paragraphs to script.

Question asked by TonyDatabase on Jan 30, 2012
Latest reply on Jan 30, 2012 by TonyDatabase

Title

Problem passing field contents containing muiltiple paragraphs to script.

Post

I am not sure what I am doing wrong but I am trying pass the contents of a field to a script. The field is text with multiple paragraph returns inside. When I get the text directly with get ( ActiveFieldContents) the script runs fine but when I change the script to work with passed parameters the text get clipped at the first paragraph. I am passing the parameters like so:  List ( Get ( ActiveFieldTableName ) ; Get ( ActiveFieldName ) ;  Get ( ActiveFieldContents ) ) and I am calling them in the script with Set variable [$LocalVar: GetAsText ( ( GetValue ( Get ( ScriptParameter ) ; 1 ) ) ),  Set variable [$LocalVar: GetAsText ( ( GetValue ( Get ( ScriptParameter ) ; 2 ) ) ),  etc. I have the field contents as the last parameter in case it is empty. I could substitute the ∏s with a placeholder but that seems like more work then it is worth. I could use a global var too but I would like to figure this one out with parameters as it is cleaner. Please help, I am probably missing something obvious here.

Outcomes