Regulatory Change Management, Applicable button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Saturday
Hello
Within the compliance workspace, there is a module for Regulatory Change Management.
A coordinator with the role sn_grc_reg_change.manager or user is able to mark a New Regulatory Alert as Not-Applicable (state 3 within the sn_grc_reg_change_regulatory_feed table).
But to do so, the reason and mandatory are mandatory. There are no ui policies or data policies, no client scripts and no business rules governing this behavior that I could find.
I found a component in UI Builder-> compliance workspace experience that deals with the comments text area and reason fields and one more field called feed. I commented the client script code that makes the submit button disabled. And also make the comments text area optional. But when I submit, I still can't complete the operation.
There is one more spot I am missing and I don't know where the comments are being made mandatory. Can anyone help, please. It is rather urgent!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Saturday - last edited Saturday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
The reason is this rest data broker used by the submit button.
/nav_to.do?uri=sys_ux_data_broker_rest.do?sys_id=d0f586ae079120103a2990a30ad
The api end point is:
/api/sn_grc_workspace/regulatory_management_workspace_services/not_applicable_feed/{{sysId}}/{{comments}}/{{reason}}/{{duplicateFeed}}
With comments being empty the empty param in the path seems to be throwing an error somewhere before it even reaches the api script. You'd need to send a placeholder comment or edit the data broker and api to use a request body for the comment instead
Simplest way is to edit the inline script on the submit button execute data resource handler
/**
* @param {params} params
* @param {api} params.api
* @param {any} params.event
* @param {any} params.imports
*/
function evaluateEvent({
api,
event
}) {
if (api.state.disableSubmit) {
return {};
}
return {
sysId: api.context.props.sysId,
comments: api.state.comments || "NA",
reason: api.state.reason.id,
duplicateFeed: api.state.selectedDuplicateFeed
? api.state.selectedDuplicateFeed.id
: 0
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Thanks @lauri457
With some help, I figured out the REST Data broker, the disable submit and everything else I needed to make comments and reason optional.
We implemented setting duplicates with state 3 as well using the same component. Added a check box, added an extra parameter to the REST API and inside the UX REST Data Broker.
It was fun!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
