Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4993 Näkymät

Is it possible to have multiple views/forms in a workflow being displayed depending on the state the workflow is in? If so how can i achieve that?

Avatar
Hylkää
Paras vastaus

Hi,

In your form view you can use the attribute attr={'invisible': [('state', op, value)]}

Avatar
Hylkää
Tekijä

Yes, but i actually wanted to load multiple forms not make some contents invisible since they are hugely different form one another

The probleme is the form view are load with the loading of the action. You may use the fields_view_get to choose the good view. But you must reload the action when your state changed. If you click on the button it is easy, but if your are already on the view and another user change the state, your view can be reloaded

Tekijä

Only one user can change the state at a time so, that isn't a problem. but what happens when the state changes and the user returns or some other users tries to view it, do i use the fields_view_get for the form view or the tree view?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
lokak. 24
69013
2
helmik. 23
1970
2
jouluk. 23
25557
1
lokak. 21
9446
2
syysk. 15
5597