DIAdem Help

Property: OnInteractionLoading for Events <Navigator>

  • Updated2024-09-12
  • 2 minute(s) read

Property: OnInteractionLoading for Events <Navigator>

Specifies the name of the user command that DIAdem executes before executing a command which was called when data was dragged and dropped into the Data Portal.

Object.OnInteractionLoading
ObjectEvents <Navigator>
Object with this property
Object.OnInteractionLoadingString with read and write access

The following command executes the user command MyInteractionLoading if you drag and drop data into the Data Portal. After loading the data into the Data Portal, DIAdem executes the user command MyInteractionLoaded which starts the Report wizard:

Call AddUserCommandToEvent("Navigator.Events.OnInteractionLoading","MyInteractionLoading")
Call AddUserCommandToEvent("Navigator.Events.OnInteractionLoaded","MyInteractionLoaded")
  
Sub MyInteractionLoading ()
  Select Case MsgBoxDisp("Delete Data Portal before loading new data?","MB_YESNO",,2)
    Case "IDYes"
      Data.Root.Clear
    Case "IDNo"
      Call MsgBoxDisp("New data will be appended to existing data." & VBCrLf, "MB_NOBUTTON", "MsgTypeNoteNoIcon",, 3, TRUE)
    Case  "IDCancel"
      Call MsgBoxDisp("Cancelled by user", "MB_NOBUTTON", "MsgTypeWarning",, 3)
  End Select
End Sub 'MyInteractionLoading

Sub MyInteractionLoaded ()
  Call MsgBoxDisp("Open Report Wizard")
  Call WndOpen ("REPORT")
  Call WizardStart("WizChart","","PORTAL")
End Sub 'MyInteractionLoaded
Note  Use the AddUserCommandToEvent command to assign several user commands to one event. Use the RemoveUserCommandFromEvent command to delete a single user command from a list of user commands which you assigned to an event. Assign an empty string to an event so that the event is no longer assigned to a user command.

Log in to get a better experience