Change view dynamically with business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 06:17 AM
I was wondering if there is a way to change a form view with a display business rule. I have a workflow that creates various tasks and this workflow can be started for various types of requests. Each task type of each request type has its own view, and instead of having to create 100 view rules I would like to have some dynamic way to show the correct view when opening a task. Basically I want a display business rule in which i get 2 fields of the task and create the view name with those, and then I want to load the view. However I'm not sure if and how I can load a view in a business rule. Anyone knows if this is possible? I know about 'switchView' but it only works in client scripts and not in business rules.
Regards, Phil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 06:46 AM
So what is the difference between the views? In general, a large number of views on a table isn't a great practice as it's difficult to manage. It seems like it might be easier to have one view and then show/hide your variables based on the task in the workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2016 06:57 AM
Basically which fields are being displayed, which order and which fields are readonly/mandatory. I know this could be handled with ui policy and client scripts, but like i said, there are 100+ possibilities, and then i have to handle the about 100 possible fields, so managing all of this with some policies is almost impossible and creating all the policies would take ages (and is a quite annoying task). Creating the views however is pretty easy, I can prepare them in an xls and then load and transform it, which will create all views/sections/ui-policies with a script.