CAPITAL Office Business Software
CAPITAL Support Forum
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
Record of when printed

 
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation
View previous topic :: View next topic  
Author Message
Anthony
Guest





PostPosted: Tue Feb 04, 2014 1:26 pm    Post subject: Record of when printed Reply with quote

How can I script something to record a date when a job was last printed?
Back to top
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Wed Feb 05, 2014 4:45 pm    Post subject: Reply with quote

You could try the following -

Open the Screen Editor and select Service Manager.

(Screen Editor is found on the icon bar under the "Maintenance" group - click on Maintenance, bottom left corner of the software.)

One the Screen Editor is open, select from the menu Insert|Field

When the Field Object window opens type: Printdate alongside "User Field" and change the "Type" to "Date". You can also optionally select "Always Lock".

Press Save.

Then from the menu select File|Screen Script. Assuming it's empty, paste the following into this window:

Code:

If Mode = 5
  If SCRRead("Printdate") # Today()
     SCRWrite("Printdate", Today())
  Endif
Endif

Return TRUE


The press Save on the toolbar, then select File|Exist and when prompted press Yes to save changes.

Nobody else can have Service Manager open when you do this.

Note: The above changes will copy today's date into the "Printdate" field when you go to print. As mentioned, this doesn't guarantee that the job was printed, only that someone requested printing. Because the print date is changed, the user will be prompted to save changes to the job card afterwards, as the record was changed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB Template by Vereor
Protected by Anti-Spam ACP