View Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-04-2023 12:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-04-2023 01:29 AM
Hi @sharukh ,
Hop you are doing great.
To address this, I recommend considering the following approach:
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.
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.
Regards,
Riya Verma