DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically capturing user actions in report window

Solved!
Go to solution

Hi,

I'm trying to build an interface that allows a user to run a deeper analysis based on what he sees on a report, and for that I need to be able to get the information of which element of my report the user is clicking on. I have looked pretty much everywhere, from the Diadem help to forums to the wider internet, and was surprised to find absolutely nothing on the subject. So I am wondering if it is at all feasible, and if it is, what am I missing?

 

Many thanks in advance for any information you might provide

0 Kudos
Message 1 of 3
(4,148 Views)
Solution
Accepted by topic author MaxLek

Hello MaxLek,

 

It is possible to get the information about the selected objects in REPORT. Here is an example.

 

dim iLoop, oCurrSelection
set oCurrSelection = Report.SelectedObjects

for iLoop = 1 to oCurrSelection.Count
  select case oCurrSelection(iLoop).ObjectType
    case 0
      msgbox "2D-Axis"
    case 1
      msgbox "2D-Table"
    case 2
      msgbox "Polar"
    case 3
      msgbox "3D-Axis"
    case 4
      msgbox "3D-Table"
    case else
      msgbox "all other"
  end select
next

Hope this helps.

 

Greetings

Walter

0 Kudos
Message 2 of 3
(4,143 Views)

That's perfect, thanks so much Walter

 

regards,

 

Max

0 Kudos
Message 3 of 3
(4,139 Views)