Form Sections (sys_ui_section) List View impact of Title true/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 03:44 AM
Dear ServiceNow Developer Community,
we saw that the Title property is sometimes true sometimes false for the Sections.
We already investigated a bit, but could not find a difference yet.
Does one of you know, what the impact of this property is?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 03:51 AM
What is your use case here, I am not able to get the full context,
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 03:59 AM - edited 02-14-2024 03:59 AM
This "additional comments" section is shown as the last section for a lot of different tables.
One of our developers stumbled upon this "Title" column in the sys_ui_section Table and he asked me if I can find out for him what the effect is of setting "Title" to either true or false. I did some tests, but could not yet identify a change in behavior nor how the section title is displayed. Furthermore, I could also not yet find out in the ServiceNow documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 07:30 AM
Sections are set in Form and you can make up and down.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 10:41 PM
I'm wondering this same thing. Working on the HealthScan item that lists number of forms with duplicate fields. Have been trying to reproduce those results starting with sys_ui_element and then looking for duplicates fields with the same table and view in sys_ui_section. Searching script includes and business rules, the only code I can find that uses title in in the method getSection in the script include SysSection. True sections should return before false section here. So if there's true and false, with the same table and the same view, the true will get returned first. If there's multiple trues, then just database order, I suppose.
getSection: function() {
this.resolvedView = null;
var list = this._getViewList();
for (var i = 0; i < list.length; i++) {
var viewID = list[i];
var gr = new GlideRecord(this.SYS_UI_SECTION);
gr.addQuery(this.NAME, this.targetTable);
gr.addQuery(this.VIEW, viewID);
gr.orderByDesc(this.TITLE);
this.domainQuery(gr, this.domainID);
if (gr.next()) {
this.resolvedView = new GlideScriptViewManager(viewID, true).getViewName();
this.section = gr;
return gr.getUniqueValue();
}
}
return this.checkParents();
},