Views on HR case form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 05:53 AM
Hi experts,
We need to show HR case form with in different views.
If assignment group related to USA group, then show USVIEW with custom fields.
If assignment group is not related to USA group, then show default view.
What is the best approach for this?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 05:59 AM
Hi si21,
you should check out the View Rules:
Create a view rule
Maybe this can provide you the answer you seek.
Best Regards,
Collin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 06:09 AM
Hi @si21 ,
Follow below steps.
1. Navigate to your HR case form and right click on form header, then go configuration and then form layout.
Note: I have taken incident form but in your case you can take HR case form
2. Add your attributes on right side which ever you want to display.
3. create a view rule and apply your logic.
Note: If you wanna apply for all US group then you have to write script to check the assignment group. if it belongs to us group then return true else return false.
Please Mark Correct if this solves your query and also mark Helpful if you find my response worthy based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 06:20 AM
Hi @si21 ,
You can create a view rule record in the sysrule_view table. Here, you can specify conditions such as the table name (e.g., "your table name") and criteria like the assignment group being "USA." You can set the view field to your desired view name, like "USVIEW."
OR
You have the option to check the advanced checkbox to manage access permissions for the view and define the view name under the answer variable.
See example below-
if(gs.getUser().isMemberOf('Group Name'))
answer = ViewName;
else
answer = default;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.
Thank you!
Moin Kazi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~