Share via


SaveCurrentFormData Method

The SaveCurrentFormData method saves the data on the current form.

Syntax

object.SaveCurrentFormData

(

i_Navigate As Boolean

)

Parameters

Parameter Description

i_Navigate

TRUE if navigation should behave as usual; FALSE if navigation should stop after saving the form data.

Remarks

This method causes the Forms tool to attempt to save the record. If the Forms tool encounters validation errors, it will not update the record. Your script should test this condition by calling the HasValidationErrors() function, which is described in Public Script Functions, after you have called the SaveCurrentFormData method. If there are validation errors, your script should display a message that requests the user to correct the error. For example, if a form has a required field and it is empty, the SaveCurrentFormData method will encounter a validation error and will not update the record. The HasValidationErrors() function will then return a TRUE value.

This method references the current form. Consequently, it should not be called from within a macro where there is no current form context.

See Also

Reference

IGrooveFormsToolRecord Interface
IGrooveFormsToolUIDelegate Interface
Public Script Functions