Jump to content
Sign in to follow this  
oldazgrouch

Change Orders without attached incident or request

Recommended Posts

We require change orders to have either an incident, request or problem attached. Looking at the code in the chg_relreq_tab.htmpl I see that the list is in cr_list. However cr_list is not a listed as a reportable field when I tried to build a report. Also I expected the relationship between the change order and the incident,request or problem be stored in the lrel table but I do not see any relationships there. Any ideas how I can run a report that for changes orders where the cr_list is empty? We are running version 12.5.

Edited by oldazgrouch

Share this post


Link to post
Share on other sites

The relationship is an SREL from the cr object to the chg object. Here is a SQL query that should give you the information:

CODE
use mdb

SELECT chg_ref_num

, COUNT(call_req.id) AS [inc/Prb/Req]

FROM dbo.chg

LEFT JOIN dbo.call_req ON call_req.change = chg.id

GROUP BY chg_ref_num HAVING COUNT(call_req.id) < 1

Edited by estli01

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...