Duzzit Outputs

The Duzzit Resuts panel is where you can configure outputs. An output value is a value populated by the duzzit when it executes. For example, a duzzit might have a text output called “Message”, which is populated when the duzzit runs:

To add an output value, click on the “(add)” link next to Output Values:

You need to specify a name for the value. You also need to choose a data type for the output. Data type choices include the following:

  • text
  • number
  • decimal
  • date
  • true/false
  • list

The list type allows you to group outputs together. It also supports the notion of listing multiple sets of output data within the main output. For example, you might be working with a duzzit that returns company information, and within that company returns a list of contacts at that company.

Other output settings include:

  • Default Value: You can optionally define a default value, which will be used if the duzzit logic does not set the output.
  • Store the Output Value: Storing the output value preserves this value after the duzzit runs, allowing you to see the value in the duzzit run history.
  • Do not show in Duzzit Results: If this is checked, the value of this output will not appear in the duzzit results. Typically this is used if you are using an output value as a temporary variable within the duzzit.
  • Treat as Global Scope: This is an advanced setting for duzzits using driving sources. If you’re not using driving sources (e.g. running against SQL table rows), don’t use this.
  • Display in editor as Textarea: Sometimes it is convenient to set an output value using a text area. This makes it easier to merge data and create sophisticated messages.
  • Order: You can optionally define a numeric order for your outputs. They will be listed following this ordering.

The “Position-based text file download” setting is a special setting for cases in which the duzzit is being used to generate a positional text file (e.g. create a file suitable for loading data into a payroll system). If selected, two additional fields are available:

This says that the output named “Sample” should be placed in positions 10 through 20 of the output file. If the data for this variable is less than the length allotted to it (from positions 10 through 20), the data should be 0 filled to the right.

Settings include:

  • Left Justified, 0 Fill: Start the output at the “from position”, and fill if necessary with 0s.
  • Left Justified, Space Fill: Start the output at the “from position”, and fill if necessary with spaces.
  • Right Justified, 0 Fill: End the output at the “to position”, and fill if necessary at the beginning with 0s.
  • Rightt Justified, Space Fill: End the output at the “to position”, and fill if necessary at the beginning with spaces.

For an example of how these settings are used when downloading a file, see Downloading Duzzit Results.

Comments are closed.