CxFmsReportCtrl Methods
The CxFmsReportCtrl object contains the following methods:
Apply
Applies modified settings and builds the FMS Report control. This method has the same function as the Apply button on the FMS Reports control.
Syntax
Apply(SessionPropertiesOnly As Boolean)
Parameters
| Parameter |
Required |
Description |
|---|---|---|
|
SessionPropertiesOnly |
No |
If this parameter is set to 1-Yes (True), only the property SessionNodeTag will be applied. |
Example
The following example applies settings when a button is pressed.
|
Sub ButtonTool_EventClick() Dim This : Set This = ButtonTool FmsReport.Apply End Sub |
Cancel
Cancels the current task.
Syntax
Cancel()
Remarks
The following is the list of tasks that can be canceled with this method.
- Building or refreshing the FMS Report control
Example
The following example cancels a task when a button is pressed. This example is taken from FMS Report Ctrl.csf found in the APPS SCREXAMP folder.
|
Sub btnCancel_EventClick() Dim This : Set This = btnCancel FmsReport.Cancel End Sub |
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.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 Dim aryNodes aryNodes = FmsReport.ChooserGetNodeSelection
Dim i, strMsg For i = 0 To UBound(aryNodes) strMsg = strMsg & aryNodes(i) & Vbcr Next
MsgBox strMsg End Sub |
ChooserSetNodeSelection
Sets the selection of Nodes in the Node chooser.
Syntax
ChooserSetNodeSelection(Selections As Variant) As Boolean
Parameters
| Parameter |
Required |
Description |
|---|---|---|
|
Selections |
Yes |
The list of Nodes, in "Node ID" format, to select in the Node chooser. |
Example
The following example selects one Node in the Node chooser.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 Dim aryNodes Redim aryNodes(0)
aryNodes(0) = "2540"
FmsReport.ChooserSetNodeSelection aryNodes End Sub |
Refresh
Refreshes the data in the FMS Report control. This method has the same function as the Refresh button on the FMS Reports control.
Syntax
Refresh()
Example
The following example refreshes the CygNet FMS Report control when a button is pressed.
|
Sub ButtonTool1_EventClick() Dim This : Set This = ButtonTool1 FmsReport.Refresh End Sub |
RetrieveNodes
Populates the Node chooser’s list of Nodes. This method has the same function as the Retrieve Nodes button on the FMS Reports control’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.
|
Sub TheView_EventInitialize() Dim This : Set This = TheView FmsReport.RetrieveNodes End Sub |


