how to send data from workflow to from control?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
pls-sapien
Posts: 31
Last visit: Tue Dec 19, 2023 12:55 am

how to send data from workflow to from control?

Post by pls-sapien »

Hello all,

im trying to build a form that will display data returned from a parallel workflow.

ive attached a simple form with a workflow but i cant get the workflow to write to the richtextbox...

i think it has to do with runspaces but i do not have the proper knowledge.
thanks,
Sean
Attachments
workflow.Export.txt
(5.92 KiB) Downloaded 135 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to send data from workflow to from control?

Post by jvierra »

You can attach the PSF file. Attaching a TXT file is not helpful.

To manage results from a workflow in a form run the workflow as a job using the "Job Tracker" control.
User avatar
pls-sapien
Posts: 31
Last visit: Tue Dec 19, 2023 12:55 am

Re: how to send data from workflow to from control?

Post by pls-sapien »

Hi Jvierra,
sure here it is
ahh i think i understand what you mean, use the job tracker and start a job of a workflow.
sounds very complicated :)
thank you
Sean
Attachments
workflow.psf
(16.29 KiB) Downloaded 140 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to send data from workflow to from control?

Post by jvierra »

No. Just place the workflow in the jobscript and collect the output in the update script.

Look at the links here to learn how to use the control set.
https://info.sapien.com/index.php/guis/ ... sive-forms
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how to send data from workflow to from control?

Post by jvierra »

Also note that you cannot access the form from inside of a workflow. You can only output objects.

A workflow will block a form until it completes unless it is run as a job.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked