Set alternate default view

anthropic
Kilo Contributor

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.

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

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


Thanks Sachin, I will see if I can make that work and reply back here again


Kalaiarasan Pus
Giga Sage

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.


Thank you kalai that isn't something I was aware of, I will look into it, I appreciate your response