Type field in sys_ui_element table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 12:11 AM
What is the use of type field in sys_ui_element table?
Can anyone please help?
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 12:15 AM
Hi Anil,
It tells what type of element it is.
for normal fields the type will be empty;
it will be populated when begin split, split, end split etc is being added on the form layout.
other types as well such as annotation
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
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
‎06-28-2019 01:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 02:30 AM
Hi Anil,
Not sure on this; but this is internal to ServiceNow and hence no documentation you would find.
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
‎06-28-2019 03:05 AM
The type field of sys_ui_element table provides ServiceNow information how the element field should be interpreted.
For example, if the type=formatter, then the content of Element filed should be interpreted as UI Macro with Jelly code of formatter, displayed on the form. Mostly common used formatters are activity.xml, which displays Commens and Work Notes, and process_flow.xml, which displays Process Flow on top Change Request for example.
Other values of type, for example, type=annotation or type=chart contains sys_id of record from another table (Form Annotation [sys_ui_annotation] in case if type=annotation, Form Chart [sys_ui_chart] in case of type=chart and so on), which contains details of displayed element (annotation or chart).