ListSelection_UserForm

This node creates a level of user interface to a dynamo script. The form it produces is a basic list selection form, where the user moves items from list A to list B then return the selected elements for further application. The example script below shows how the user form can be used to select elements from the list clicking the >> button will move the selected items from list A to list B. Clicking the << button will move items from list B back to List A. The form will only return the selected items if the complete button is pressed, close or escaping out of the form will not return any items, or complete the run output.

 

Inputs:

run (Boolean) This is a parameter so that the form can be triggered by another activity. The default value is set to false, the form will run when this input is True.

inputValues (List) This is the list which the user is to select from, this will be placed initially in list A.

formTitle (String) – This is the title which will display at the top of the user form. The default value is Form Title.

listATitle (String) – This is the title of list A as shown above the list on the form. The default value is List A.

listBTitle (String) – This is the title of list B as shown above the list on the form. The default value is List B.

buttonTitle (String) – This is the word that is displayed on the complete button. The default value is OK.

listWidth (Integer) – This is the width of each list, the form dynamically changes to the size of the lists. The default value is 200.

listHeight (Integer) – This is the height of each list, the form dynamically changes to the size of the lists. The default value is 300.

Outputs:

completeRun (Boolean) The will return true if the button is pressed, if not it will return false.

selectedItems (List) – This will return a list of the values selected by the user. Should the form be closed without clicking the button or nothing selected this will return an empty list.

First Published in DexysMidnightNodes Version 0.0.3

Found under UI>Form

Leave a Reply

Your email address will not be published. Required fields are marked *