edit button for related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 11:33 PM
Hi All,
i was asked to create a related list in the business service form to link it to business units.
The point is to know which business unit is affected when the business service is down.
i created the relationship (without any code.
"Applies to table" cmdb_ci_service
"query from" business_unit
Then, i created a ui action to see the EDIT button in the related list.
The issue i am facing is that when i click on edit button, it allows me to edit the business unit record whereas, i want to be able to add or remove business units to the related list instead.
what is the issue?
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 04:18 AM
There are a couple of issues here. Without any code in the relationship, it's not a relationship nor a Related List - it's just a list of all Business Units on every Service. You would need to add a List field to either the service table, referencing the BU table, or vice-versa to establish a relationship. Otherwise there's nothing to edit - without a relationship you can't de-select some of the BUs from showing in the list as the list itself isn't a table. There is an ACL to prohibit enabling the Edit button on custom Related Lists, which likely means creating your own may not be successful.