3 Replies Latest reply on Aug 3, 2017 2:04 PM by philmodjunk

    Global fields.

    argasoft

      Hi!

       

      Sorry for this very basic question, but I can't find out or remember this:

       

      When is the value of a modified global field available in scripts:

      - after entering via setField a value or modifying a field in the calculation formula?

      - after committing the record?

       

      Differences for global field if:

      - calculated and value save

      - calculated and NOT saved

      - with calculated input at definition and first calculation (i.e. blank field) and if "change every-time"

       

      Thanks.
      Arnaldo

        • 1. Re: Global fields.
          coherentkris

          a global field is available from anywhere as soon as the Set field/set field by name script step completes or as soon as a calculation fires.

          Just run your process with the script debugger data viewer open and you will see exactly when your global has changed.

          • 2. Re: Global fields.
            argasoft

            Thanks.

             

            Arnaldo

            • 3. Re: Global fields.
              philmodjunk

              And be aware of single user vs hosted solution uses of global fields.

               

              If user A modifies the value of a global field, the change is not visible to User B and vice versa. For both users, any changes to the global do not persist (as would be the case in a single user (not hosted) solution.) The field's value will revert to the value in the field at the time it was uploaded to the server when the user closes the file.