This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Write Progress Message from ScriptExec

Some Tasks in the Jobqueue has nice progress messages on the Job Server Statuspage.

For example that 100 of 1200 items are already processed.

 

If I have a script running I'll only get the Progress message: "Script XYZ running"

 

Is it possible to place own progress messages from my own scripts as well?

  • Hi,

    You can write messages to the jobserver log using this syntax:

    AppData.Instance.RaiseMessage( MsgSeverity.Info,"Generating event for " & sXObjectKey & sMessage)

    HTH, Barry.
  • Please take a look at the Script Samples in the SDK on the product delivery.

    In Modules\QBM\dvd\AddOn\SDK\ScriptSamples\01 Common\03 ScriptBase Methods.vb you will find the method ShowProgress.

    '     Method: ShowProgress
    ' Parameters: message as String
    '    Meaning: Set the current progress message for scripts running in the script component.
    '     Sample:
    ShowProgress("Progress message of the task")

    HtH

  • Hi Markus
    Thanks for this hint. That works well for me.
    Patrick