Using a Proc Dialog in an application
After you have specified the function called by the Proc Dialog part, you can use it in your application just as you would any other part.
The record passed between the VA Smalltalk application and the remote server appears as an attribute on the public interface of the Proc Dialog part. Before the proc dialog is run, the necessary input values should be set using attribute-to-attribute or event-to-attribute connections.
To access the fields of the record, tear off the attribute representing the record. The record then appears as a stand-alone part on the free-form surface, and its fields appear as attributes on its public interface. You can now make connections to these attributes in order to set the values of input fields or retrieve the values of output fields.
To run the proc dialog, make an event-to-attribute connection to the execute action on the Proc Dialog part's public interface. When the execute action is triggered, the input values, which are determined by the connections to the part's attributes are passed to the server.
After the function is complete, connections to the attributes representing output fields can retrieve the results of the function call.
Last modified date: 01/29/2015