How Can I Check If Data Exists in DIAdem Data Portal Using a Script?

Updated Aug 10, 2025

Environment

Software

  • DIAdem

This article overlines steps to verify whether data exists in DIAdem Data Portal by checking the presence of channel groups using a script.

To check for the presence of data, use the following steps:

  1. Go to the SCRIPT tab to start coding.
  2. Insert the following script to your code.
    ' Check if DataPortal has any data
    If Data.Root.ChannelGroups.Count > 0 Then
    Call MsgBoxDisp("Data is present in the DataPortal", "Information")
    Else
    Call MsgBoxDisp("No data found in the DataPortal", "Information")
    End If
  3. Run the script.
     

If one or more channel groups are found in the Data Portal, a message bow will display as follows:
Data is present in the Data Portal

If no channel groups are found, the message box will display the following:
No data found in the Data Portal