This tutorial is a step-by-step guide for building a two-input, button addition model. The goal of the tutorial is to use an example to teach you how to interrupt the connection between the inputs and the workflow with a button.
Create a New Dashboard.
Create a New Project. Navigate to your Project Editor.
Search for the “button” widget. Drag-and-drop to add the button to your Editor.
Add all the other widgets needed for your model to run with the same search, then drag-and-drop method:
Create the data workflow for your model by connecting each of the widgets, except for the button using the (black) data workflow lines at the bottom of the widgets.
Create an (green) execution workflow that only connects the tops of widgets involved with model inputs.
Create an (green) execution workflow that only connects the tops of widgets involved with the model processing and outputs.
Connect the “next” handle of the button widget to the “prev” handle of the addition widget.
Add each of the yellow widgets (the textinput, button, and textoutput widgets) to the Dashboard you created earlier. To do this:
Navigate to the Dashboard to use the button model. You may need to right-click, enter setup mode and move each of the model components before the model is usable. You may also complete other visual design steps within the Dashboard.
You now have an additional model that runs on a button. You have two input boxes, a button, and an output box. Enter numerical values into the input boxes, press the button, and the model will calculate the sum in the output box. A finished version of the model described here is avaliable in the demo version of ChainBuilder at www.chain-builder.net/demo.