# Execute a wizard programmatically, show the wizard window

**URL:** https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062
**Category:** Developer
**Created:** [March 7, 2022, 10:22pm UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062 "2022-03-07T22:22:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [March 7, 2022, 10:22pm UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062/1 "2022-03-07T22:22:11Z")

</div>

When a workflow is done, I want to call a wizard to help the user do some final stuff. I know you can programmatically call a wizard with different values. But I also want to show the wizard to the user, so the user can fill some fields.

Is this possible or should I completely move to a wizard?

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [March 7, 2022, 11:06pm UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062/2 "2022-03-07T23:06:03Z")

</div>

I think this won’t be possible because starting the wizard should come from the client. So I have to look for another way.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 8, 2022, 8:27am UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062/3 "2022-03-08T08:27:04Z")

</div>

You can use the [`ModelView.button_action`](https://docs.tryton.org/projects/server/en/latest/ref/models/models.html#trytond.model.ModelView.button_action) decorator to launch an action that is a wizard. This button method can also be a [`Workflow.transition`](https://docs.tryton.org/projects/server/en/latest/ref/models/models.html#trytond.model.Workflow.transition).

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [March 8, 2022, 11:01am UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062/4 "2022-03-08T11:01:09Z")

</div>

Yes I understand that and I’m using that already. But now I want to programmatically start a wizard and show it to the user. But this cannot be done because it’s all on the server side and the client doesn’t know. So the server have to signal the client to show a wizard / execute a command.

The only solution is to rework the workflow.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [April 7, 2022, 11:01am UTC](https://discuss.tryton.org/t/execute-a-wizard-programmatically-show-the-wizard-window/5062/5 "2022-04-07T11:01:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
