Hello,
I'm still green to to OScript, so I'm not sure if what I'm asking is possible.
What I'm doing:
I have a dashboard-style Webreport that lists all instances of a workflow that are on a particular step. These workflow instances are grouped into to two tables based on the value of one of the workflow's attributes (set to string 'FALSE' by default when the workflow is initiated). The top table lists all of the instances that have the attribute set to the default, and the bottom table lists all instances that have the attribute set to 'TRUE'.
What I'm trying to do:
Each column of the first table has an HTML button (Add to work package) that runs a sub-webreport, feeding in the SubWork and task ID of the workflow instance as parameters. I want this sub-webreport to grab the workflow instance and change the value of the workflow attribute to 'TRUE', so that it will end up in the second table (after a page refresh or ajax call).
I can't use the SETWFATTR action sub-tag because it will only work if I'm using it within a webreport step or have the destination set to workflow.
If there is a way to change a workflow attribute from outside of the workflow instance using OScript, I could use the [LL_WEBREPORT_STARTSCRIPT /] tag. Has anyone had to do something similar?