- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 09:23 AM
Hello,
We made a small change to the columns list within Time sheet Portal. However, we would like to have the first field (Project number) to be a hyperlink. Currently, it shows the "State" value in first column when you place the cursor on "three dots".
"Time Card Grid" widget columns only have task number, description and category. Please find screenshots below..
Any suggestions about how to get task number as first column and make it hyperlink or it can still be the second column but can it be hyperlink to the project record. Any help is greatly appreciated.
Thanks,
Sunny Joel
Solved! Go to Solution.
- Labels:
-
Time Card Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 11:26 AM
Hey Sunny,
First off, I would never recommend editing any OOB widgets. If you'd like to make customizations to a widget, you should clone that widget and then customize from there. The reason being, so you can always revert/reference the OOB version, and more importantly, once you go to upgrade to future versions of ServiceNow, there will be collisions and you will have to decide on what/how to merge. This is actually a perfect case, because in Madrid, the functionality you're hoping for is added into the Time Sheet Portal:
Disclaimers aside, the way you'll want to handle this is by adding an ng-href in whichever tag is surrounding that Task Number in your HTML. I don't have a London instance available to me at the moment, but there should be an ng-repeat that creates all of the time entries and you can use the variables created there from the data object to create your dynamic link.
For example, in the Madrid version:
The ng-repeat defines each key in the data.list object as "item". And then we can use values from the data.list to create our dynamic link in the ng-href
Full ng-href:
ng-href="/{{::item['task.sys_class_name'].value}}.do?sys_id={{::item['task.sys_id'].value}}">
The code in the London version may very well be the same, but basically look to find what values are coming in from the data object that you can use to dynamically build your list.
Let me know if you need further help, I'd probably need you to export the widget to XML so I could upload it and see what's exactly going on.
If my answer was helpful or answered your question, please mark it as 'Helpful' or 'Correct'
Thanks!
Josh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 11:26 AM
Hey Sunny,
First off, I would never recommend editing any OOB widgets. If you'd like to make customizations to a widget, you should clone that widget and then customize from there. The reason being, so you can always revert/reference the OOB version, and more importantly, once you go to upgrade to future versions of ServiceNow, there will be collisions and you will have to decide on what/how to merge. This is actually a perfect case, because in Madrid, the functionality you're hoping for is added into the Time Sheet Portal:
Disclaimers aside, the way you'll want to handle this is by adding an ng-href in whichever tag is surrounding that Task Number in your HTML. I don't have a London instance available to me at the moment, but there should be an ng-repeat that creates all of the time entries and you can use the variables created there from the data object to create your dynamic link.
For example, in the Madrid version:
The ng-repeat defines each key in the data.list object as "item". And then we can use values from the data.list to create our dynamic link in the ng-href
Full ng-href:
ng-href="/{{::item['task.sys_class_name'].value}}.do?sys_id={{::item['task.sys_id'].value}}">
The code in the London version may very well be the same, but basically look to find what values are coming in from the data object that you can use to dynamically build your list.
Let me know if you need further help, I'd probably need you to export the widget to XML so I could upload it and see what's exactly going on.
If my answer was helpful or answered your question, please mark it as 'Helpful' or 'Correct'
Thanks!
Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 11:55 AM
Hello Josh.
Thank you very much for the detailed explanation.
I'll take your suggestion about not making the change as we're planning to upgrade the version but will test it in DEV.
Greatly appreciated.
Thanks!
Sunny