- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 10:40 AM
When a new child incident is created off a parent incident, the "parent incident" field is auto populated. I dont see a business rule that is doing this. How is this occuring?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 03:51 PM
Hi Josh!
You need to choose the Related list that comes automatically. I see you've created a relationship 'Parent/Child' and that's the related list on the parent form. If you choose the other one (that says Child Table -> Parent Record), it works. (The Parent/Child is really not necessary)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 10:42 AM
it's by design since you have parent and child relationship. there is no code to set the parent value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 10:50 AM
But there is a field being populated called "parent incident" on the child incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 10:55 AM
On the child table, you might have a reference field point it to parent table. that's what setting the parent value on the child table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 11:42 AM
Hi Josh,
When you say creating child incident off the parent, I assume you mean creating a child incident from the Related List. The related list is defined based on the relationship between both the tables via the field parent. Only those records that have the parent value set to the current record show up in that list. So logically, when you create an incident from there, the parent has to be the current record.
And technically, I'm not sure, but I believe the UI Action 'New' on the related lists is designed to work that way. URL to the specific UI action:
/nav_to.do?uri=sys_ui_action.do?sys_id=7b37cc370a0a0b34005bd7d7c7255583
Looks like Line 23 is setting the parent field, but can't be sure since I'm not sure where to find the GlideappWizardIntercept class to verify.