Hello,I was able to get the reports to work except for the fact that the "Days Duration" field values are returned formatted as
"08/24/1900 10:16 AM". I expected the values to be formatted as a whole number rather than a date.Does anyone know how to fix this?
Thanks,
Dave BeliveaueBusiness - Team ConnexSanmina-SCI-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Sunday, October 26, 2003 11:59 PMTo: eLink RecipientSubject: I think I have fixed the problem of duplication, can someone check my fix?
I think I have fixed the problem of duplication, can someone check my fix? Posted by DeloitteAdmin on 10/26/2003 11:56 PM
Hello,
I think I may have fixed the problem I was having with displaying steps and sub workflow steps within a workflow..
I inserted the following line: SubWork_ReturnSubWorkID = 0
Into the second report to display workflow step details and I know no longer get duplicate values..
I don't understand why this works and if it is the correct way to fix this problem, could someone please check this to see if it is correct?
THe complete report is pasted below..
Thanks,Asha
------------------------------------------------------------SELECT subwork_title "TITLE",work_dateinitiated "INITIATED", subworktask_title "TASK NAME",subworktask_dateready "DATE RECEIVED",subworktask_DateDue_Max "DUE DATE", CASE WHEN EXISTS (SELECT '*' FROM WSubWorkTask w1 WHERE WSubWorkTask.SubWorkTask_DateDue_Max < GETDATE() AND (WSubWorkTask.SubWorkTask_DateDone > WSubWorkTask.SubWorkTask_DateDue_Max OR WSubWorkTask.SubWorkTask_DateDone is Null) AND w1.SubWorkTask_TaskID = WSubWorkTask.SubWorkTask_TaskID AND w1.SubWorkTask_WorkID = WSubWorkTask.SubWorkTask_WorkID AND w1.SubWorkTask_PerformerID = WSubWorkTask.SubWorkTask_PerformerID)THEN 'Overdue' ELSE 'No' END AS "LATE", CASE kuaf.type WHEN 0 THEN kuaf.lastname + ', ' + kuaf.firstname WHEN 1 THEN kuaf.name END "PERFORMER NAME", CASE work_status WHEN 2 THEN 'Executing' WHEN 1 THEN 'Suspended' WHEN -2 THEN 'Stopped' END "WORKFLOW STATUS", CASE subworktask_status WHEN -1 THEN 'Done' WHEN 2 THEN 'Ready' WHEN 3 THEN 'Started' WHEN 4 THEN 'Suspended' WHEN 5 THEN 'Executing'END "TASK ST! ATUS", subworktask_DateDone AS "DATE DONE" FROM wwork, kuaf, wsubworktask, wworkaudit, wsubwork, dtree, wmap WHERE dtree.dataid=wmap.map_mapobjid AND subwork_mapid=map_mapid AND kuaf.id=subworktask_performerid AND Work_workid= %1 AND work_workid=subwork_workid AND work_workid=workaudit_workid AND work_workid=subworktask_workid AND workaudit_status=1 AND NOT work_status<=-1 AND NOT subworktask_status=1 AND NOT subworktask_status<=-2 AND SubWork_ReturnSubWorkID = 0 ORDER BY 'DATE RECEIVED'
[To reply to this thread, use your normal e-mail reply function.]
============================================================
Topic: Help with a report...https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=3245585&objAction=view
Discussion: Livelink LiveReports Discussion https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2249677&objAction=view
Livelink Server: https://knowledge.opentext.com/knowledge/livelink.exe
Thanks for the tip, I got it to work in MSSQL by changing the "Days Duration" section of the statement to readdatediff(Day, Work_DateInitiated+1, GETDATE()) "DAYS DURATION",
Dave BeliveaueBusiness - Team ConnexSanmina-SCI12A Manor Parkway