Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The default value is an empty list.

Code Block
languagepy
themeConfluence
titleExample
>>> @dynamic_choice_command("primary_choice_field")

...


>>> def primary_choice_command(self, fields):

...


>>>     # Implementation omitted

...


>>>     return ExtensionResult(

...


...         rc = 0,

...


...         message = "Values for choice field: 'primary_choice_field'",

...


...         values = ["Start", "Pause", "Stop", "Build", "Destroy"]

...


...         )


Note

The form of the ExtensionResult constructor when instantiated in the context of Extension Start, is as follows:

Constructor Signature

(rc = 0, message = '', output_fields = None, unv_output = None, call_frame = None, **kwargs)

...

The default value is None.

Code Block
languagepy
themeConfluence
titleExample
>>> def extension_start(self, fields):

...


>>>     # Implementation omitted

...


>>>     return ExtensionResult(

...


...         unv_output = "extension_start() finished successfully",

...


...         rc = 0

...


...         )