Reputation: 2247
We have a QBO workflow comprising the following steps:
In most circumstances, users will:
In a few circumstance, determined by the fields present in Task A, the flow should be:
How does one accomplish this in a qbo3 workflow?
Upvotes: 0
Views: 13
Reputation: 2247
Tasks, by design, will return a user to the referring page upon saving (or cancelling).
To cause a different page to render, use javascript to set the referring page to a different value.
From the Task GUI Designer:
Foo
fieldif (this.value == 'Bar')
qbo3.getObject(this).setReferrer('api/importform/summary?Object={{Object}}
&ObjectID={{ObjectID}}
&Method=RenderEdit
&Template=Task B', this);
Save
Some notes / gotcha's with respect to the javascript snippet above:
qbo3.getObject(this).setReferrer(...)
changes the value of document.referrer
Task
to be renderedObject
and ObjectID
parameters tell qbo3
to render a task on the same parent object as the current task{}
tell setReferrer
to substitute the expressions with matching values in the current task (E.g. Task A
and Task B
should each have the same Object
and ObjectID
XSLT
, the curly braces must be doubled: {{}}
so that XSLT
does not attempt to interpret themXSLT
, the &
must be XML
-compliant; thus the use of &
Upvotes: 0