ArcFM Desktop Developer Guide
Execute Method (IMMPxFilter)


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

This method is called when the filter's button is clicked by the user. The code should return an IMMDynamicList object. The code in the Execute method should follow these steps:

  • Create new dynamic list

  • Initialize new top level node

  • Assign a build object to the new list

  • Tell the list to build

  • Return list

Syntax
'Declaration
 
Function Execute() As ID8ListItem
'Usage
 
Dim instance As IMMPxFilter
Dim value As ID8ListItem
 
value = instance.Execute()
ID8ListItem Execute()

Return Value

Example
The following code sample demonstrates how the IMMPxFilter::Execute method may be implemented.
Visual Basic Copy Code
Private Function IMMPxFilter_Execute() As mmGeodatabase.ID8ListItem
    Const k_sFunction = mk_sModule & "::" & "IMMPxFilter_Execute"

    Dim pDynoList As IMMDynamicList
    Set pDynoList = New MMPxNodeList

    Dim pBuilder As clsMyBuilder
    Set pBuilder = New clsMyBuilder

    Set pBuilder.PxApplication = m_pPxApp
    Set pDynoList.BuildObject = pBuilder

    Dim pNodeEdit As IMMPxNodeEdit
    Set pNodeEdit = pDynoList
    pNodeEdit.DisplayName = IMMPxFilter_Name

    Dim pNodeEdit2 As IMMPxNodeEdit2
    Set pNodeEdit2 = pNodeEdit
    pNodeEdit2.IsPxTopLevel = True

    Dim lNodeTypeID As Long
    lNodeTypeID = m_pPxApp.Helper.GetNodeTypeID(gk_sAllWRNodeName)

    node Type ID, name And ID
    pNodeEdit.Initialize lNodeTypeID, gk_sAllWRNodeName, 0

    Dim pPxAppEx As IMMPxApplicationEx
    Set pPxAppEx = m_pPxApp
    pPxAppEx.HydrateNodeFromDB pNodeEdit

    pDynoList.Build False
    Set IMMPxFilter_Execute = pDynoList
End Function
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMPxFilter Interface
IMMPxFilter Members

 

 


Send Comment