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

Autosave ProcessBook Options · View
usanz09
#1 Posted : Wednesday, August 25, 2010 2:50:20 PM
Rank: Newbie
Groups: Member

Joined: 8/25/2010
Posts: 1
Location: Mexico
Hi everyone.

I need a little help i am searching if there is a way with programming to make and autosave in the processbook, because the application it suppose to dont give the save message to the user. I hope someone can help me.
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, August 25, 2010 8:33:29 PM
Rank: Administration

Groups: Administration

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

If the Display does not have the modified flag set (display name will have a * with it) then ProcessBook won't prompt to save the display. Programmatically you can set the modified property, i.e. ThisDisplay.Modified = False (or True, which ever way you want to configure it).

If you want to prompt even if there are no changes to a display (not sure why you would want this) then you could add the following code to the "Display_BeforeClose" and you will be prompted to save.

Code:

Private Sub Display_BeforeClose(bCancelDefault As Boolean)
ThisDisplay.Modified = True
End Sub


If you wanted to always save the display then you could:

Code:

Private Sub Display_BeforeClose(bCancelDefault As Boolean)
If ThisDisplay.Modified Then ThisDisplay.Save
End Sub
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.