1
0
-1

Hi,

I have a form field that contains data need by a service after the form has been submitted. I want to avoid this data being stored in the Form XML in TM. How is this best achieved?

Cheers,
Dan.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Dan,

      You could make sure the data field is never included in the form XML in the first place, that way it would never appear in any transaction history.

      Instead, you could call a dynamic data service from the form to store the field in a property, which you could later retrieve in the Groovy service that needs it.

      I haven't tried this.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hey Dan, this is a common requirement that is satisfied by storing the data in a transaction property. If this data is captured in the form UI then you will need to perform a dynamic data call to a Groovy service on the server that will accept this information and add a transaction property using the following API:

        TxnUpdater#setProperty-java.lang.String-java.lang.String-.

        This information can then be used by the post-submit service using the following API:

        PropertyQuery

          CommentAdd your comment...