- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2018 01:12 PM
I am looking into adding a confirm() dialogue when the 'Approve' action is selected on an approval. My goal is to verify that the approver is aware of the costs that are associated with a specific item. Due to the inconsistency of price for the catalog item, it is not including on the item and appears to be cost free when viewing the cart.
I'm curious if anybody has a better suggestion rather than having a confirm pop-up added to the approve UI action. This seems clunky to me and if a similar issue is come across in the future, having a spam of pop-ups seems like bad practice.
If anybody has run into a similar issue or has any suggestions, all input is appreciated.
Regards,
Ryan
Solved! Go to Solution.
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 09:33 AM
Adding it to the approval action is really the only way to go. Although I would suggest cloning the out of the box UI action first, inactivate the OOB one, and then update your clone of it. This way you won't have upgrade issues to deal with.
In regards to making this easy to maintain the UI action, is it just 1 item or could it be multiple over time? If multiple, you could create an attribute on the catalog item table to designate it requires confirmation and use it when you are querying the sc_req_item table looking to see if its associated item is designated for confirmation. Otherwise yes you will be querying sc_req_item where item = SysID
Since confirm() is client side and you need to query server side for the records, its best to do this with a display business rule that will pass a flag to the client script to confirm. Here is more details on display business rules:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 08:33 AM
Hi Michael,
That is something that we had not considered. Although many users do approve via email, I can not think of a better option than having a confirmation dialog when approving. We'll have to accept the fact that approvals through email will not have to confirm.
Would you suggest adding it to the Approve UI action on the approval? This would require me to look through all of the items on the request and if the particular item that needs confirmation is present, display the confirmation dialogue.
Know an easier way off the top of your head? If not, I am all for it.
Thank you much,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 09:33 AM
Adding it to the approval action is really the only way to go. Although I would suggest cloning the out of the box UI action first, inactivate the OOB one, and then update your clone of it. This way you won't have upgrade issues to deal with.
In regards to making this easy to maintain the UI action, is it just 1 item or could it be multiple over time? If multiple, you could create an attribute on the catalog item table to designate it requires confirmation and use it when you are querying the sc_req_item table looking to see if its associated item is designated for confirmation. Otherwise yes you will be querying sc_req_item where item = SysID
Since confirm() is client side and you need to query server side for the records, its best to do this with a display business rule that will pass a flag to the client script to confirm. Here is more details on display business rules:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 09:44 AM
Thanks for all the info Michael. I'm going to make the updates you described.
This is a temporary fix as we are working to standardize the price in the future. If by chance another item does require the same process, I'll keep in mind adding an attribute to the sc_req_item table.
Appreciate all the detail,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 09:56 AM
No worries happy to help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 12:34 PM