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 04:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 04:35 AM
It would be mush easier if you post examples, which you have. In case of type=component the content of element field should be something like com.glideapp.questionset.DefaultQuestionEditor. If your problem is only the problem of changing sys_ui_element then you can do that by exporting data to XML, editing the XML data in text editor and importing XML data back. It should work. Alternatively you can write small script, which use GlideRecord to find the record in sys_ui_element table by sys_id (using get method), set new value for type and call update method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 04:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 05:10 AM
Sorry, but I really can't follow you. Your original question was short and clear "What is the use of type field in sys_ui_element table?". Now we discuss something which is far from that.
Records in sys_ui_element will be referenced in Views of some table (in list view or form vie, but in your context it seems be form views). If you write about "instances" I suppose that you mean ServiceNow-Instances (like dev and prod instances). If you have some differences on opening some form, then you should verify which is current view, which you use. The last used View name can be save (per instance) and be used later. The second reason could be that you really have different view on different instances. It's not a problem in general, but you can delete a view or transfer a view, which you like from one instance to another (via Update Set for example and "Add to Update Set" UI Action - see here).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2019 05:21 AM