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

Search funtion within PIW's? Options · View
kgramly
#1 Posted : Wednesday, December 22, 2010 5:33:33 PM
Rank: Newbie
Groups: Member

Joined: 2/16/2010
Posts: 9
Location: Wyoming
This might be slightly off the wall, but I was wondering if there was a way a userform could be created where the user could input text, like an equipment number, and a search could be run within a PIW to find all/any displays in which the text appears?
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.
RJK Solutions
#2 Posted : Wednesday, December 29, 2010 4:09:51 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello,

I see no reason why you couldn't do this.
You would need to:

- Access the PIW object, and parse each link.
- For each link parsed, check the text of the link.
- If there is a link to a display or an embedded display, open the display.
- If the link is a link to a PIW, repeat the 1st step iteratively.
- Parse the display symbols to check for text. (examples already posted on here).

When parsing the symbols you would need to check for contents of some symbols, the name of multistate data points of symbols, the name of data points (PI Tags, AF Data References, Datasets etc).

Principal Consultant
Real-Time Data Management @ Wipro Technologies
kgramly
#3 Posted : Monday, January 17, 2011 6:27:15 PM
Rank: Newbie
Groups: Member

Joined: 2/16/2010
Posts: 9
Location: Wyoming
Thanks for the reply, however I'm still relatively new to VBA, is there any way you could explain this in a little more detail? Also, my site's PIW's have many displays with each display averaging 3-6 buttons linking to other local displays. It sounds like this won't be a problem if the code is set to iteratively check each one, is this correct? Thank you.
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.