BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions

OnHide method

No code is required in the implementation of the OnHide method. However, this method can be used to respond to the user switching to another page.

When properties are used on multiple pages, it may be necessary to save changes in order to display them correctly on the other page. Both pages should use the OnHide method and OnShow method to synchronize the property values that is displayed.

See About the AMMPageSample sample project for an example of using OnHide and OnShow.

Example
Private Sub IAMExtensionPage2_OnHide()
    On Error GoTo Error_handler
    
    If Not m_Designer Is Nothing Then
        ' Save value for Drawing Number
        ' Note : The value set with SetPropertyValue is not stored
        ' in the vault until the user clicks Apply or OK.
        m_Designer.SetPropertyValue "", "DrawingNumber_BSTR",  ammDrawingNumber_BSTR.Text
    End If
    
    Exit Sub
Error_handler:
    MsgBox caption & " OnHide: " & Err.Description
End Sub

Copyright © 2000-2012 BlueCielo ECM Solutions

www.bluecieloecm.com