View Rule

sharukh
Tera Contributor

i have created a new view rule called "SI" View on the demand form for demand manager.so when user with it_demand_manager role opens the demand form then Demand form with "SI" view will open.is there any chance that the user can switch the "SI" view to "default" view.

Thanks 

1 REPLY 1

Riya Verma
Kilo Sage
Kilo Sage

Hi @sharukh ,

Hop you are doing great.

 

To address this, I recommend considering the following approach:

  1.  Ensure that you have correctly configured the "SI" view rule on the demand form. Verify that it is properly associated with the "it_demand_manager" role, granting access to the desired view when users with this role open the demand form.

  2. Implement a View Switcher: In order to enable users to switch between the "SI" view and the "default" view, you can incorporate a view switcher mechanism. This can be achieved by adding a UI action or a UI macro to the demand form.

    a. UI Action: Create a UI action, such as "Switch to Default View," that is visible and accessible only to users with the "it_demand_manager" role. This UI action should trigger a server-side script or a client-side script to switch the current view to the "default" view when clicked by the user.

    b. UI Macro: Alternatively, you can utilize a UI macro that includes a dropdown or toggle button allowing users to switch between views. This UI macro should be added to the demand form, visible only to users with the "it_demand_manager" role. When the user selects the "default" view option, the corresponding server-side or client-side script should be triggered to switch the view accordingly.

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma