auto populating parent incident field

brostoff17
Tera Contributor

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?

1 ACCEPTED SOLUTION

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)



Screen Shot 2017-03-30 at 3.48.20 PM.png


View solution in original post

16 REPLIES 16

nthumma
Giga Guru

it's by design since you have parent and child relationship. there is no code to set the parent value.


brostoff17
Tera Contributor

But there is a field being populated called "parent incident" on the child incident.


nthumma
Giga Guru

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.


veena_kvkk88
Mega Guru

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.