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 job-details while adding a task

Hello,

I've got a Background Task Queue, where I add tasks dynamically. During processing the task, I do a job.update for writing details to the task to the table of the queue in the dashboard of the vault app.

But I want to write these details after adding the task to the queue using TaskManager.AddTask. Otherwise the text of the details appear after completing the task... 

Does anybody know how to solve this problem?

Greetings from germany

Michael

Parents
  • Depending on factors such as the transaction processing mode, updates made via "job.update" may not be immediately visible.  In some situations they may not be visible at all until the transaction completes.  There's no real way to update the job data before the job starts processing.

    An alternate approach may be to use the task name.  If you are using the VAF Extensions library then you may want to consider using a task directive class that inherits from TaskDirectiveWithDisplayName (the task directives in the extensions library already do).  You can use this to set a "name" on the task which will be displayed in the table instead of the task ID.  This would give you somewhere to put some content that the user can see before - and whilst - the job is processed.

  • Another question...

    is there any possibility to change the width of the boxes with the information about the background tasks in the dashboard?

    I found the Dashboard class inside the vaf... it seems that I can change these things there. But I do not know how to identify the elements I want to modify.

Reply
  • Another question...

    is there any possibility to change the width of the boxes with the information about the background tasks in the dashboard?

    I found the Dashboard class inside the vaf... it seems that I can change these things there. But I do not know how to identify the elements I want to modify.

Children