DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Command to display a certain tab in View

Solved!
Go to solution

Hi,

I have a script which loads a TDV.  This TDV has many tabs.  How can I force a certain tab to be displayed in View?  I have tried this (without success): -

View.Sheets("Home").activate

View.AutoRefresh = true

View.Refresh

call WndShow("View")

'Home' is the name of the sheet I want to be displayed.  The above script selects the 'View' panel, but opens the wrong tab.   I cannot find the commands to open the correct tab.  I use Diadem 2015.   Any help is much appreciated.

Thanks!

Thomas

 

 

 

 

 

 

 

 

0 Kudos
Message 1 of 3
(2,572 Views)
Solution
Accepted by topic author mrme

Hello Thomas,

 

This code works for me:

Call WndOpen("VIEW")
Call View.Sheets("Home").Activate

I tried this in DIAdem 2017 Beta 5, but that should work in earlier versions of DIAdem just as well. Please make sure that the sheet name doesn't include a space or other characters, if I add a space to "Home " (at the beginning or end) the command fails.

 

If you continue to have issues, can you post the VIEW layout for me to test?

 

   Otmar

Otmar D. Foehner
0 Kudos
Message 2 of 3
(2,548 Views)

Hi Otmar,

 

It works.  Thanks for the support!

 

Regards

Thomas

0 Kudos
Message 3 of 3
(2,528 Views)