Create a script to add a field to a form design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2017 11:42 AM
I am currently trying to add a field to a form design programatically. I have already declared a column on the Base Configuration Item (cmdb) table and am now trying to find out how to add that field to children of that table programatically. I am already able to go into each child's form design and and drag the field in because I have already added it as a column on the base table but I would like to know how to write a script that places a field in a form design so that I can do it for multiple children and fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2017 11:52 AM
Well you would have to create records in the Section Element (sys_ui_element) table. You would need to know the Form Section (sys_ui_section) the element should be on and the Form (sys_ui_form) that section is on.
I'm not sure how you would know the desired position of the element on multiple forms.