- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 01:22 PM - edited 04-24-2023 01:23 PM
Hello,
I am working on our portal preparing for the Utah upgrade and I noticed we currently use the HRJ widgets on our HR Case overview page, but there are also HRM widgets that seem to do the same thing but have a better UI. We are using the EC Theme.
What is the difference between these widgets? Is it better to use one over the other?
Solved! Go to Solution.
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 11:58 PM
Hi @cwillard ,
I trust you are doing great.
Please find the diffrence as given below :
Feature HRM Widget HRJ Widget
Widget Type | AngularJS | Jelly |
Data Sources | ServiceNow tables | XML files |
User Interface | Modern and intuitive | Limited customization |
Configuration | Limited | Highly configurable |
Performance | Slower due to AJAX | Faster due to caching |
Integration | Limited | Highly integrated |
Code Example | <sp-widget widget="hrm-case-list"></sp-widget> | <j:jelly xmlns:j="jelly:core">...</j:jelly> |
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 10:50 PM
Hi @cwillard ,
Technically, both works together or you can say HRJ can be used inside HRM.
In short, you can by creating an Employee form. By creating a new HR Task of HR Task type "Collect Employee input" you can select the Employee form you want:
That will then be presented to the assigned to in the HRM To-do widget.
Technical longer explanation:
It is loaded in the to-do app via:
- HRM To-do contains the "To-dos task Line Item"-widget
- It will get the tasks that are to-do and their mapping to widget via the "todoPageUtils"-script include.
- The "todoPageUtils"-script include contains the function "_getWidgetMappings" which gets the mapping from the "sn_hr_sp_todos_widget_mapping"-table.
- In that table we find entries for HR Task:
- "HRM Task Activity"-widget calls "hr_TaskTicket"-script include. We are looking for the collect_information as that is the one containing a survey:
if (gr.hr_task_type == 'collect_Information'){
task.employee_form = {};
task.employee_form.id = gr.getValue('employee_form');
task.employee_form.form_definition = gr.getElement('employee_form.form_definition');
task.employee_form.survey_instance = gr.getValue('survey_instance');
task.employee_form.table_Name = gr.getElement('employee_form.table')+'';
task.employee_form.condition = gr.getElement('employee_form.condition')+'';
}
- The "HRM Task Activity"-widget in line 21 gets the widget for the specific task:
data.widget = $sp.getWidget(getTaskWidgetId('hrj-task-'), taskOptions);
if(!data.widget.sys_id)
data.widget = $sp.getWidget(getTaskWidgetId('hr-task-'), taskOptions);
To learn more , read the thread : https://www.servicenow.com/community/hrsd-forum/hrj-task-take-survey-widget/m-p/1283847
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 11:58 PM
Hi @cwillard ,
I trust you are doing great.
Please find the diffrence as given below :
Feature HRM Widget HRJ Widget
Widget Type | AngularJS | Jelly |
Data Sources | ServiceNow tables | XML files |
User Interface | Modern and intuitive | Limited customization |
Configuration | Limited | Highly configurable |
Performance | Slower due to AJAX | Faster due to caching |
Integration | Limited | Highly integrated |
Code Example | <sp-widget widget="hrm-case-list"></sp-widget> | <j:jelly xmlns:j="jelly:core">...</j:jelly> |
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi