Record of when printed
  • Anthony

    Record of when printed

    by Anthony » Tue Feb 04, 2014 1:26 pm

    How can I script something to record a date when a job was last printed?
  • COBS Tech Support
    Posts: 660
    Joined: Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Wed Feb 05, 2014 4:45 pm

    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: Select all

    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.

Who is online

Users browsing this forum: No registered users and 0 guests