Venus Library - Vector Custom Dialogue

I want to expand my user interface to include an option for de-selection of samples at runtime,
I see from the Help file for Vector Custom Dialogues there is a " WorklistDialogShow" which visually looks well aligned with my needs,

However, I don’t see an example for this method in the provided folders ("C:\Program Files (x86)\HAMILTON\Methods\Library Demo Methods\VectorCustomDialogs")

I wanted to see if this was missing for a reason or something wrong on my installation,

I installed ASW Vector Custom Dialogs V1.1.4.exe

Thanks,
Daniel

Hi @Optimize ,

It appears those examples were missed when the installer was put together.

The Worklist option is great for this example that you mentioned. See below a simple example:

Code

Dialog

Results

There are several functions that are marked as WorklistDialog that are specific to these functions.

There are also global variables that are also specific to these functions.

You need to specify the columns first using the SetColumns function and feeding in an array of column headers. Keep note of the number of items you include, as your AddRow arrays need to have the same number of times.

You can specify whether the worklist is editable or not, as well as what the starting status/selection is if you want to pre-make decisions for the user.

If you want to show the user a number, make sure to convert it to a string first, as the library only accepts array of strings for its values.

The ID that you set to each row, needs to be unique and an integer. I typically use the loop counter for the loop I use to make the dialog. The ids that are in the output arrays correspond to this value which allows you to tie that ID back to source data so you can add/remove sequence positions or values down the line.

1 Like

thanks for the info,

is it possible to automatically assign “exclude” flag into the UI or is this the design of the UI screen for the user to handle this ??

Hi @Optimize ,

That would be set on the WorklistDialogAddRow command on what the default would be:

In my example, I used Process, but it could have been set to Exclude so that the user has to select something to be processed.