AnsweredAssumed Answered

WebDirect - how to clear a container field with a script

Question asked by user12479 on Feb 6, 2016
Latest reply on Feb 7, 2016 by user19752

Given a WebDirect implementation and a container field that must be cleared with a script (not wanting to rely on right-click in the container field in the browser and then manually selected Clear item from the contextual menu associated with the container field) ...  it is (apparently) a known issue that the Clear script step does not really work in a script executing with WebDirect.  Also, a Cut script step does not cut the contents of the container field.  So, what is the recommended script step(s) to clear a container field with WebDirect ?   Thanks for all insights on this.

 

This sort of script does not clear the container field   ...

 

Show Custom Dialog [ Message: "Are you sure you want to delete the existing document named " & Client_Documents::

Document_FileName; Default Button: “Yes”, Commit: “No”; Button 2: “No”, Commit: “No” ]

If [ Get(LastMessageChoice) = "2" ]

     Exit Script [ ]

End If

Cut [ Client_Documents::Document_Container ] [ Select ]

Commit Records/Requests

Close Popover

Exit Script [ ]

 

At first, tried the Clear script step and this fails, too.

     Clear [ Client_Documents::Document_Container ] [ Select ]

Outcomes