@Karthick: PI ProcessBook doesn't offer this functionality out-of-the-box. Generally, this type of work flow is achieved via Microsoft SharePoint and PI Web Parts. Maybe this could be addressed with a custom add-in that would give a "better" feedback to the user. If I had to do this with PI ProcessBook, I would implement a logic in a custom add-in that would intercept a click action (from a button or an hyperlink) and show the friendly version of the message. You can find the add-in templates under the Download Center section.
How about relying on PI point data security? A user that wouldn't have read access to particular tags would see "No Data".
Thanks for the reply Beck, We thought of it, but the User will be still able to see the Graphics (the Process Flow), only the value will show no data.Our objective is to also hide the graphics Flow from some users
maybe you can use the tagsecurity as a kind of workarround. Why don't try to link the object visibility of the link in the overview graphic to the tagsecurity.
e.g. you have a tag for display A, B, C and D with different tag security.
in the overview graphic you check if you have access to the tag of display A and depending on the return value you set the link visible or not. the same you do for the other displays.
with kind regards
Thank you for sharing your idea. Similar was running through my head yesterday but somehow I missed posting.
If you are already using VBA and need to rely on Windows Security (i.e. you don't want people to be able to manually browse to the directories and open the files), can you use the FileSystemObject classes to test access to the files first? You can then capture the error and display a more informative message to the user.
You can add the "Microsoft Scripting Runtime" to your display's VBA project's references list to access this class.
Dim fso As FileSystemObject Set fso = New FileSystemObject If fso.FileExists("C:\Users\Eea\NoAccess\test.txt") Then Debug.Print "Exists" Else Debug.Print "Does not exist or no access" End If
Hi Guys, Thank you all for sharing your Ideas . I tried from all perspective, and finally implemented what Ashley Ee suggested, I wrote macro on Display Open even, which will check all buttons, see its link , then depending on users privilege, Enable or disable it.
Here's the code:
Private Sub Display_Open()
Dim pbSymbols As Symbols
Dim pbSymbol As Symbol
Dim NavButton As Button
Dim NavButtonDef As ButtonDefinition
Dim PDIpath As String
Dim PDIFile As FileSystemObject
Set pbSymbols = ThisDisplay.Symbols
Set PDIFile = New FileSystemObject
For Each pbSymbol In pbSymbols
If pbSymbol.Type = 9 Then 'Type 9 indicates button
Set NavButton = pbSymbol
Set NavButtonDef = NavButton.GetDefinition()
PDIpath = NavButtonDef.Action
PDIpath = Replace(PDIpath, """", "", 1)
If PDIFile.FileExists(PDIpath) = True Then
NavButton.Enabled = True
'Deavtivate the link
NavButton.Enabled = False
Once again, Thank you all :)
Thank you for sharing your solution.
Thanks for the reply Hamel, We are planing to host the Overview Graphics Page in the Citrix Server, So We thought we'll relay on Process Book functionality along with Windows security for individual page security, I'll try out the addin option and let you know,