Make comment mandatory when rejecting an approval on Employee Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 02:45 AM
Hello community,
On the Employee Service Center (/esc) portal, when you click "My Tasks" in the top right, you are taken to the page "hrm_todos_page" which contains a main widget(parent) "HRM Todos Summary" which hosts many other widgets one of them being "Todos Approval Actions" (child).
I cloned the "Todos Approval Actions" widget to make some customizations, but now I am stuck unable to figure out how this "child" widget lets say is called. Sure I see the line where the parent widget calls all of its child widgets based on some value on the HTML Template line 69
<sp-widget widget="todoLine.todoLineWidget"></sp-widget>
But I need to adjust it somehow so this parent widget, calls the newly cloned customized child widget.
Anyone have any idea where I can make this change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 02:56 AM
You just have to change the name of the widget here
<sp-widget widget="<name_of_newly_customized_widget"></sp-widget>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 03:03 AM
This part I understand, but the thing is there is logic already that retrieves the value from somewhere and sets it in that variable in the code I posted above. But I cannot figure out how as the code is entangled.
If I just changed the above line of code to hardcode the widget I want, it would break the entire widgets functionality. That is why I need help figuring out based on what is it getting the toDoLineWidget variable values, and make necessary adjustments there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2022 04:19 AM
Okay so the parent widget is calling "todo-approval" widget which in turn calls the "todo-approval-actions" widget. Now to figure out how to call the cloned "todo-approval" widget