- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 12:05 PM
Hi good day!
We have a customized widget in our Service Portal (created by previous developer) that shows that active RITM Tickets (sc_req_item table) and active Incidents (incident table) of user (see image below).
Now, I need to add a new ICON that when click, will show all the active SCTASK (sc_task table) of user.
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 03:09 AM
Hi
Sure will try to assist here. In order to understand what's happening here is as below:
1) When you click on the icon, the list is getting displayed which I believe is a Data Driven OOB widget being utilized here where in the Instance of the widget the Table and conditions are defined to show wither Requested Item or Incident data.
2) So now in order to build a similar functionality please try the steps below and show results what are you getting here:
Press Control on Keyboard and then Right click on the Icon for Incident or Requested Item and then select the option shown in Red below i.e. "Widget in Editor"
Now once you open the widget can you share the result here for all three component below:
HTML
Client Controller
Server Script
So what would be happening here is from this widget they must be passing certain parameter to Data Driven widget and then displaying the result in List format, so need to have a look at the code which you need to share here.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 12:45 AM
Hi
Yes, I followed all the changes in the Server Script.
For the Pages Module Part, , I clone the id ="my_requests" in Pages module and then, it also copied the existing Data Table from Instance Definition of the My Requests.
So I went to sp_instance_table and rename them.
I also changed the Table to sc_task and the fields that will appear on the portal
But I have a couple of problems though
1.) If I click the RITM ICON/INCIDENT ICON and it navigates to its respective URL, it shows all the 3 ICONS (RITM, INCIDENT and TASKS) however, if I click the TASKS ICON and navigate to its URL, it only shows 2 ICONS (INCIDENT and TASKS
2.) I tried impersonating a NON-ITIL user and when I checked the TASKS ICON, there's this error that says: 1 row removed by security constraints. This error only appears on TASK, it is working properly for RITM and INCIDENT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 01:37 AM
Hi
Yes, I followed all the changes in the Server Script.
For the Pages Module Part, , I clone the id ="my_requests" in Pages module and then, it also copied the existing Data Table from Instance Definition of the My Requests.
So I went to sp_instance_table and rename them. I also changed the Table to sc_task and the fields that will appear on the portal
But I have a couple of problems though
1.) If I click the RITM ICON/INCIDENT ICON and it navigates to its respective URL, it shows all the 3 ICONS (RITM, INCIDENT and TASKS) however, if I click the TASKS ICON and navigate to its URL, it only shows 2 ICONS (INCIDENT and TASKS)
2.) I tried impersonating a NON-ITIL user and when I checked the TASKS ICON, there's this error that says: 1 row removed by security constraints. This error only appears on TASK, it is working properly for RITM and INCIDENT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 04:40 AM
List of record which are shown is based on the below lines of code in Server Script:
var CatQuery = "active=true" + "^ORopened_by=" + gs.getUserID();
var tableCatTask = "sc_task";
Modify your query accordingly and modify it as you need to see the list of records you need.
Currently the condition just says it will display according to below conditions:
1) Active records
2) AND records opened by current logged in user.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 04:56 AM
Hi
are they not dependent on this line of code???
cat = {id: 7, label:CATTaskLabel, icon: 'fa fa-ticket',link:catalog_link,'count':CatCount, page :'New Page Name',visible:data.currentPage=='my_tickets'||data.currentPage=='my_requests'};
categories.push(cat);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 05:08 AM
Hi @shloke04 I forgot to mentioned, for the ACL part, all of our NON-ITIL users contains role snc_internal.
So what I did, I created an ACL in the SC_TASK table and added the role snc_internal.
The error: 1 row removed by security constraints is GONE but the users still don't see any records.