CxFmsHistoryGridCtrl Methods

The CxFmsHistoryGridCtrl object contains the following methods:

Apply

Applies modified settings and builds the FMS History Grid.  This method has the same function as the Apply button on the FMS History Grid control.

Syntax

Apply(SessionPropertiesOnly As Boolean)

Parameters

Parameter

Required

Description

SessionPropertiesOnly

No

If this parameter is set to 1 - Yes (True), only the properties SessionNodeTag, SessionBeginDate, and SessionEndDate will be applied.

Example

The following example applies settings when a button is pressed.

Copy
Apply
Sub ButtonTool_EventClick()
Dim This : Set This = ButtonTool
    FmsHistoryGrid.Apply
End Sub

Back to top

Cancel

Cancels the current task. 

Syntax

Cancel()

Remarks

The following is the list of tasks that can be canceled with this method.

Example

The following example cancels a task when a button is pressed.  This example is taken from FMS History Grid Ctrl.csf found in the APPS SCREXAMP folder.

Copy
Cancel
Sub btnCancel_EventClick()
Dim This : Set This = btnCancel
    FmsHistoryGrid.Cancel
End Sub

Back to top

ChooserGetNodeSelection

Returns the list of Nodes currently selected in the Node chooser.

Syntax

ChooserGetNodeSelection() As Variant

Example

The following example displays a message box showing the list of selected Nodes.

Copy
ChooserGetNodeSelection
Sub ButtonTool1_EventClick()
Dim This : Set This = ButtonTool1
    Dim aryNodes
    aryNodes = FmsHistoryGrid.ChooserGetNodeSelection
     
    Dim i, strMsg
    For i = 0 To UBound(aryNodes)
        strMsg = strMsg & aryNodes(i) & Vbcr
    Next
     
    MsgBox strMsg
End Sub

Back to top

ChooserSetNodeSelection

Sets the selection of one Node in the Node chooser.

Syntax

ChooserSetNodeSelection(Selections As Variant) As Boolean

Parameters

Parameter

Required

Description

Selections

Yes

The Node, in "Node ID" format, to select in the Node chooser.

Example

The following example selects one Node in the Node chooser.

Copy
ChooserSetNodeSelection
Sub ButtonTool1_EventClick()
Dim This : Set This = ButtonTool1
    Dim aryNodes
    Redim aryNodes(0)
     
    aryNodes(0) = "2540"
         
    FmsHistoryGrid.ChooserSetNodeSelection aryNodes
End Sub

Back to top

Refresh

Refreshes the data in the FMS History Grid.  This method has the same function as the Refresh button on the FMS History Grid control.

Syntax

Refresh()

Example

The following example refreshes the Fms History Grid when a button is pressed.

Copy
Refresh
Sub ButtonTool1_EventClick()
Dim This : Set This = ButtonTool1
    FmsHistoryGrid.Refresh
End Sub

Back to top

RetrieveNodes

Populates the Node chooser’s list of Nodes.  This method has the same function as the RetrieveNodes button on the FMS History Grid’s Node chooser.

Syntax

RetrieveNodes()

Remarks

When this method is called, the Node chooser is populated according to the ChooserSiteServiceSelection, ChooserGroupSelection, ChooserNodeCategorySelection, ChooserFilterString, and ChooserFilterType properties.

Example

The following example retrieves Nodes when the View is initialized.

Copy
RetrieveNodes
Sub TheView_EventInitialize()
Dim This : Set This = TheView
    FmsHistoryGrid.RetrieveNodes
End Sub

Back to top

Save

Commits edits to the database.  This method has the same function as the Save button on the FMS History Grid control.

Syntax

Save()

Example

The following example commits edits when a button is pressed.

Copy
Save
Sub ButtonTool1_EventClick()
Dim This : Set This = ButtonTool1
    FmsHistoryGrid.Save
End Sub

  

Back to top