콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5100 화면

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?

아바타
취소
베스트 답변

Hi,

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

아바타
취소
작성자

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

작성자

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?

관련 게시물 답글 화면 활동
1
10월 24
69214
2
2월 23
2048
2
12월 23
25705
1
10월 21
9577
2
9월 15
5681