|
|
Rank: Newbie Groups: Member
Joined: 5/4/2010 Posts: 3 Location: Dominican Republic
|
Hello
I'm bulding a new processbook with a set of displays that I want to scroll using some VBA code. The probem is that I don't know how to get a reference of those Displays in a module, and I don't see them in the project explorer either.
I saw one of your topics where you get a reference in a Procedure, but I need to do the opposite. I need to create an instance from my code, to open the Display, and after a short time, close it and open another one.
All the Displays are in a Processbook (piw) file.
Is that Possible?
Your Comments.
Thanks in advance.
|
|
|
|
|
OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System. We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ or contact OSIsoft vCampus for more details.
|
|
|
Rank: Newbie Groups: Member
Joined: 5/4/2010 Posts: 3 Location: Dominican Republic
|
Hello
I saw another post where you got the scrolling thing going on, but you forgot to add an example when the Displays are part of a processbook workbook in order to access them.
Regards
|
|
|
Rank: Newbie Groups: Member
Joined: 5/4/2010 Posts: 3 Location: Dominican Republic
|
Hi
Just got the way to do it, using the Entries class, and the Execute Method.
Regards
|
|
|
Rank: Administration
 Groups: Administration
Joined: 6/20/2008 Posts: 612 Location: Cheshire, United Kingdom.
|
Hi Pulox, As you found out, it is possible Very brief example when looking at Entries in a PIW to ensure it is an embedded display: Code: Dim oEntry As PBObjLib.Entry For Each oEntry In ActiveProcBook.Entries If oEntry.Type = pbEntryPDIEmbeddedInLocalPIW Then oEntry.Execute True End If Next
I presume you are calling your code to parse the PIW from another display file? What have you used as a timer? Cheers, Rhys. Principal Consultant Real-Time Data Management @ Wipro Technologies
|
|
|
|
Guest
|