Type field in sys_ui_element table?

Anil20
Tera Contributor

What is the use of type field in sys_ui_element table?

Can anyone please help?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sorry but I can't catch you. What is the significance of formatter type?

Hi Anil,

Not sure on this; but this is internal to ServiceNow and hence no documentation you would find.

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Oleg
Mega Sage

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).