Declaring Parameters
A form has input data that it processes into output data, even though it may not have a user interface. This section discusses the input and output parameters, which are passed to and from the client using the IForm
interface.
The base form implements this interface; therefore your variables need to be declared only with the specific attribute of InputProperty
or Outputproperty
, as follows:
<Global.Proficy.Platform.Samples.Forms.Base.InputProperty("Name", “DisplayName ", "Description")> _
Protected _input As String = "Default Value"
<Global.Proficy.Platform.Samples.Forms.Base.OutputProperty("Name", " DisplayName ", "Description")> _
Protected _output As String
The following is an example of input parameters:
#Region "InputParameters"
<Global.Proficy.Platform.Samples.Forms.Base.InputProperty("QEventIn", "QEvent", "QEvent")> _
Protected QEventIn As String
<Global.Proficy.Platform.Samples.Forms.Base.InputProperty("SelectLabelIn", "SelectLabel", "SelectLabel")> _
Protected SelectLabelIn As String
<Global.Proficy.Platform.Samples.Forms.Base.InputProperty("tblEventsIn", "Table Events", "Table Events")> _
Protected tblEventsIn As DataTable
#End Region
Here is an example of Output Parameters:
#Region "OutputParameters"
<Global.Proficy.Platform.Samples.Forms.Base.OutputProperty _
("SelectedRowsOut", "SelectedEvents", "Events selected using the form.")> _
Protected SelectedEventsOut As DataTable
<Global.Proficy.Platform.Samples.Forms.Base.OutputProperty _
("ActionOut", "Action", "Action")> _
Protected ActionOut As String
#End Region
With the InputProperty
attribute, the variable automatically receives its initial value from the client, if it is bound. With the OutputProperty
attribute, the value of the variable is automatically passed to the Client for binding after the form has been submitted.
The arguments for constructing the attributes are Name, DisplayName, and Description. The Name is used internally (that is, it is never displayed) and it must be unique among both input and output properties. The DisplayName is the name that users see in the Workflow Editor, in the Input and Output pane, and must also be unique. The Description appears in the Workflow Editor under the DisplayName, for example, in tooltips.