How to set up Action choices in dropdown for RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 07:59 PM
Hello All,
I created a widget and mapped in standard ticket actions of sc_req_item. The Widget is showing.
We want show the options as it is available for incident but for me its showing side by side.
Please check the attached screenshot.
After we clicking on actions, it showing the close option. This is OOB functionality.
Similarly i created a new widget, but in that options are showing side by side without clicking on actions button.
Custom Widget details.
HTML Body:
<div ng-if="data.showRITMCancelButton">
<button type="button" id="actions-button" class="btn btn-default dropdown-toggle action-btn" data-toggle="dropdown" style="width : 100%" aria-haspopup="true" ng-init="setFocusOnActionButtons()">
${Actions}
<span class="fa fa-caret-down"></span>
</button>
<button type="button"
name="reject"
ng-click="c.uiAction('cancelRequestItem')">
${Cancel Request} </button>
<button type="button"
name="reject"
ng-click="c.uiAction('ReopenRequestItem')">
${Reopen Request}</button>
</div>
Server Side Script:
Thanks,
Sattar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 09:31 PM
Hi @sattar3
Modify your HTML body to include the Reopen button if the 'showRITMReopenButton' flag is set to true:
<div ng-if="data.showRITMCancelButton">
<button type="button" id="actions-button" class="btn btn-default dropdown-toggle action-btn" data-toggle="dropdown" style="width : 100%" aria-haspopup="true" ng-init="setFocusOnActionButtons()">
${Actions}
<span class="fa fa-caret-down"></span>
</button>
<button type="button" name="reject" ng-click="c.uiAction('cancelRequestItem')">
${Cancel Request}
</button>
<button type="button" ng-if="data.showRITMReopenButton" name="reopen" ng-click="c.uiAction('ReopenRequestItem')">
${Reopen Request}
</button>
</div>
Note: Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning
Thanks & Regards
Deepak Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 12:32 AM
@Deepak Shaerma Thanks for the reply.
Buttons are showing but Reopen Button is not showing if the RITM state is Closed complete.
This is the server side script I'm using, could you please correct if did anything wrong in the script?
Based on function showRITMReopenButton it is showing Cancel Button but not showing Reopen button based on function showRITMReopenButton
Server Side Script:
HTML Body:
<div ng-if="data.showRITMCancelButton">
<button type="button" id="actions-button" class="btn btn-default dropdown-toggle action-btn" data-toggle="dropdown" style="width : 100%" aria-haspopup="true" ng-init="setFocusOnActionButtons()">
${Actions}
<span class="fa fa-caret-down"></span>
</button>
<button type="button" name="reject" ng-click="c.uiAction('cancelRequestItem')">
${Cancel Request}
</button>
<button type="button" ng-if="data.showRITMReopenButton" name="reopen" ng-click="c.uiAction('ReopenRequestItem')">
${Reopen Request}
</button>
</div>
Thanks,
Sattar