- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
In Ui builder can we get the tabs configured as the image showed above ?
The requirement is to show all the child tasks as tabs for the individual to work simultaneously even related list to show as this instead of tabs inside of the record. How can i achieve that.
I appreciate your help. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Kachu ,
To achieve this you need to do something from the UI Builder,
1.Open that page in UI Builder. If that page is read-only duplicate that page and inactivate the original page.
Here mention table Name as Your Table Name.
2.From UI Builder Page, you need to add a data resource to get all the child tasks of the currently opened record.
so, there is a data resource called Look up Multiple Records , add that and give table name as your current opened table name and give condition as parent is current opened form(how to get the sys_id of the current opened form is the whenever we are giving conditions there we will observe the dynamic bind symbol from the select props.sys_id.
3.Through that data broker script you will get all the child tasks, you will need to create one client script in ui builder, add the script like this..
/**
* @param {params} params
* @param {api} params.api
* @param {any} params.event
* @param {any} params.imports
* @param {ApiHelpers} params.helpers
*/
function handler({api, event, helpers, imports}) {
var results=api.data.look_up_multiple_records_1.results;
results.forEach(function(result){
result.id=result._row_data.uniqueValue;
result.label=result._row_data.displayValue;
});
api.data.look_up_multiple_records_1.results=results;
}
4.There are events for the data resources , in those there is an event called Data fetch Succeeded call the above client client here (Here look up multitple records 1 data resource is the resource which we we can used to get the child records)
5.One more final Step, in ui builder page on the left side we will see what are the components used in that page,
on left side scroll down until you find like below:
on the right side ,click on add then select the Use a repeater and then give name of the tab and bind data like this
6.In the left side ,scroll down until you find the tab u created , in those add form component
now on the right side bind the sys_id for the form component dynamically like below,
Now save the page and open the page in the workspace now you will all the child tasks as separate tabs.
If my answer give solution to your question, mark it as helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @Kachu,
------------------------------------------------------------------------------------------------------------------------------------------------------
You can use chrome_tab UX Page property in you UX Application to achieve this.
Refer this document for help -> Workspace App Shell UX Page Properties - ServiceNow Community
Let me know if you need further help
-----------------------------------------------------------------------------------------------------------------------------------------------
Please mark my response helpful and accept as solution
Thanks & Regards
Mayank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
agent will work on parent task and child tasks will be shown as Related Records
When agent clicks Child task it opens child record in new tab
that happens OOTB already
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
HI Ankur, I don't want them as related list i need to open the tabs by default with child records. OOTb functionality i have already implemented it. The requirement is keep open child records as well when the incident record is opened. under the tabs not as related list.
