Service Portal - My Request Widget new tabs (Submitted Request and Drafts) in Washington DC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2024 09:09 PM
Hello everyone ,
Recently we have upgraded our instance to Washington and noticed few changes to "My Requests" widget in Service Portal.
New tabs are added called "Submitted Request" and "Drafts". Please find the image below
When i clone the same OOTB "My Requests" widget and trying to use that in our custom portal , I am not able to get the two new tabs(Submitted Request , Drafts) , but everything else is reflected.
Could you please help us to find out on what i am missing to bring the new tabs on to the cloned widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 12:49 AM - edited 05-09-2024 01:11 AM
Hello @Maruthi Ram,
I had similar issue and I found out that the problem (or missing thing) may be related to this code in the Server script:
data.hide_draft_tab = (gs.getProperty('glide.sc.disable.save_as_draft') == 'true') || (gs.getProperty('glide.sc.enable.save_as_draft.portal.' + $sp.getPortalRecord().getValue("url_suffix")) != 'true');
So when you have cloned the OOTB widget and put it in your own portal, you probably need to add a sys_property in the form:
glide.sc.enable.save_as_draft.portal.<portal_url_suffix> and set it to true. You can probably find an example of such use in sys_properties if you search for glide.sc.enable.save_as_draft.portal.
Just one note. If you have used the OOTB "My Requests" widget somewhere in your portal, it will probably also have these tabs then. So if you don't want them for that OOTB version, it might be probably better to rewrite this part of the code in the Server script in your cloned version so it will be related to some custom sys_property and not to "glide.sc.enable.save_as_draft.portal.".
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:00 AM
Hey,
Was your issue resolved?
I have added property too but still doesn't seem to work.
Please let me know.
Thanks
Vishwa