Article Details
Id:12076
Product:finPOWER Connect
Type:NEW
Version:2.01.01
Opened:21/07/2014
Closed:22/07/2014
Released:31/07/2014
Job: J013657

Page Sets; Script can now validate Page Objects in a similar way to the OK or Finish button being clicked

A new method of the Page Set Handler allows Page Set Scripts to validate Page Objects, e.g., ensure mandatory Page Objects have a value entered and Dates and Numbers fall within the maximum and minimum values if defined.

If an invalid Page Object is found, a beep will sound and the Page Object will recieve input focus. If necessary, the current Page (for non-wizard type Page Sets) will be changed.

A new method, psh.ValidatePageObjects() achieves this. This method can validate all pages or just the current page, e.g.:

Public Sub cmdTest_Click(sender As Object, e As finPageObjectClickEventArgs) Handles cmdTest.Click If Not psh.ValidatePageObjects(False) Then mUI.MsgBox("Invalid!") End If End Sub </clode> NOTE: For Wizards, only the current Page will be validated.