Normal Topic Making a File Read Only after signing (Read 417 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Making a File Read Only after signing
Mar 17th, 2012 at 6:46pm
Print Post Print Post  
It is important to make a file ReadOnly after electronically signing it. Because if anything inadvertently changed, the signature will go away and document becomes invalid and loses its significance.

Making File Read Only from command line is easy.

attrib +R FileName

However, after giving name, I open up the file either in MS Word or Adobe Acrobat (depending upon the type of file) and at that point a client signs.  After signing the document file, I have to make it ReadOnly, but by that time, all the sbasic code will have run through. Only exception is that if I put @AskUser ( ) and then run the command to convert the file to Readonly...only after getting the input YES.  This is a little interruptive. Is there a way to achieve this without any need for input of the user while making file Readonly after it is duly signed by a client?
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Making a File Read Only after signing
Reply #1 - Mar 17th, 2012 at 8:38pm
Print Post Print Post  
Can you put code in CloseForm that runs if signature exists?  The code could shell the attrib command.  (Might not work because doc may be locked while still closing). 

Might be able to do if Sesame opens Word, then waits till Word is closed. 

Or/And might be able to that with vBasic when CloseDocument triggers in Word document itself having nothing to do with Sesame
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Making a File Read Only after signing
Reply #2 - Mar 17th, 2012 at 10:54pm
Print Post Print Post  
Quote:
Can you put code in CloseForm that runs if signature exists?  The code could shell the attrib command.  (Might not work because doc may be locked while still closing).


There is no way to determine if SignatureExists.  Well, there is one!! I close the file anyway and also know the name of the file. May be have a static variable vSignedDocumentIndicator and run the attrib command on saving the record. It is doable but so many routines to run on Form Exit command, all the posting, values checking, Data Integrity check and what not. It seems like more and more house-keeping  chores are added on form Exit Event and every little chore adds time that we sense when we hit F10. Thanks.
  
Back to top
 
IP Logged