- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 02:43 AM
Hi,
Is there a way to open time sheet portal in an iframe in the sc_task record .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 02:53 AM
Hi,
yes possible
1) create UI macro and use iframe to show the URL
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<iframe id="timesheet" src="/tsp" scrolling="no" style="height:500px; width:50%"></iframe>
</j:jelly>
2) then create formatter and link the macro to that & add it on sc task form by configuring the form layout
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 02:53 AM
Hi,
yes possible
1) create UI macro and use iframe to show the URL
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<iframe id="timesheet" src="/tsp" scrolling="no" style="height:500px; width:50%"></iframe>
</j:jelly>
2) then create formatter and link the macro to that & add it on sc task form by configuring the form layout
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 04:04 AM
I am getting page not found error.
Also, can the user be able to submit the timesheet in this iframe .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 04:31 AM
Hi,
you are creating UI macro in which scope? global or other
please share the UI macro script and screenshot and also the formatter configuration
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 05:29 AM
Its working thank you so much . Is there a way to have a link type/button type field/checkbox type field upon clicking will open the timesheet iframe.