Problem number in Ptask is not reflecting while create the Ptask from a Related tab

Nipan1
Tera Contributor

Hi,

 

I have created a new Related tab in Problem form called Corrective Action (General type). 

 

Requirement:

1. All the General PTask created for the Problem record will be visible.

2. User can created a general Ptask by clicking on New button.

 

Issue: 

1. Problem number is not reflecting from Parent Problem record to Ptask. 

 

ptask1.pngptask2.pngptask3.png

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Nipan1 ,

I tired your problem in my PDI and it works for me 

Please change your relationship Corrective Action code and update to like 

current.addQuery('problem', parent.sys_id);
SarthakKashyap_0-1714979485868.png

Reason is in problem_task table there is reference field is Problem so it takes the sys_id.

Result 

SarthakKashyap_1-1714979548536.png

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

 

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hi @Nipan1 ,

I tired your problem in my PDI and it works for me 

Please change your relationship Corrective Action code and update to like 

current.addQuery('problem', parent.sys_id);
SarthakKashyap_0-1714979485868.png

Reason is in problem_task table there is reference field is Problem so it takes the sys_id.

Result 

SarthakKashyap_1-1714979548536.png

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

 

Nipan1
Tera Contributor

Hi @Community Alums,

 

Thanks for the solution, it works for me as well.