YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Scrolling through Displays in Processbook using VBA Options · View
Polux
#1 Posted : Tuesday, May 04, 2010 1:43:59 PM
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.

Sponsor  
 

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.
Polux
#2 Posted : Tuesday, May 04, 2010 1:56:34 PM
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
Polux
#3 Posted : Friday, May 07, 2010 8:17:41 PM
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
RJK Solutions
#4 Posted : Wednesday, May 12, 2010 11:39:51 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Hi Pulox,

As you found out, it is possible Smile

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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.