Set alternate default view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2017 07:10 PM
I need to set a different default view based on a property in assignment group.
However the default view should still be selectable.
I have a view 'Group A default' and want to select it for assignment group A but not restrict their ability to view the current default.
The only way I can see would be to set the current default as 'standard' and then switch to 'Group A default' if the default view is selected but not if 'standard' was selected. But I want to avoid adding a duplicate of the current default if I can.
Is there any way to detect if the user has specifically changed the view even if it was changed to default from something else?
Update: I give up on allowing to switch back to default... However...
Now I just need to ensure that I can switch based on assignment group, the main issue being there is a business rule that sets assignment group "on display" and if I try a view rule it seems that the assignment group is not set by then. I tried using sys_navigator record to change the view, which worked, but then business rules do not update the assignment group at all.
I should mention we are stuck on Eureka still.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2017 07:17 PM
Hi Marcel,
Please note that that switching views saves all information on form and submit form.
When a user switches views, the selected view is saved as a user preference so the user sees the same view by default when the form opens.
You can use user preference to check which view was changed by user.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2017 12:21 AM
Thanks Sachin, I will see if I can make that work and reply back here again

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2017 12:33 AM
Have you ever looked Navigation handlers (sys_navigator table)? It is much more flexible compared to view rules and you can write any type of advanced server script to control the view. It also has access to current object which the view rule doesn't have.
You can take a look at the scripts that are added OOB for certain tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2017 04:42 PM
Thank you kalai that isn't something I was aware of, I will look into it, I appreciate your response