cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't load Delegate task to Cognos.

Highlighted
Aquamarine

Can't load Delegate task to Cognos.

I have created a file /opt/ptc/Windchill_11.0/Windchill/tasks/ext/re/report/SB_Report/SB_SubjectReport.xml

then, created Delegate,

 

Name : SB_SBNumber

Repository Type :com.ptc.windchill

Type Identifier : com.ptc.windchill.enterprise.report.ReportTask

Source URL :/ext/re/report/SB_Report/SB_SubjectReport.xml

Description :Report Task Example to show number of document.

 

executed commands from windchill shell,

java com.ptc.windchill.enterprise.report.ReportHelper updatemodel              and

windchill com.ptc.windchill.enterprise.report.ReportHelper modelupdate

 

Restarted Cognos.

Still can't find Data Source in cognos  under "com.ptc.windchill.enterprise.report.ReportTask"

 

What is missing ?

Also I can get output seen if I executed  file from browser using url 

http://devapp2.organization.com/Windchill/servlet/IE/tasks/ext/re/report/SB_Report/SB_SubjectReport....

Output:- 

<wc:COLLECTION xmlns:wc="http://www.ptc.com/infoengine/1.0">
<Unknown-Class-Name NAME="saReportData" TYPE="Object" STATUS="0">
<wc:INSTANCE>
<SBNumber>SB001</SBNumber>
</wc:INSTANCE>
</Unknown-Class-Name>
</wc:COLLECTION>

Initially I just want to pass a hardcored value. I already have some custom delegated , which are working fine.

 

 

 

XML File  Data

<%@page language="java" session="false" access="http|soap"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%@page import="java.util.*"%>
<%@page import="com.infoengine.object.factory.Group"%>
<%@page import="com.infoengine.object.factory.Att"%>
<%@page import="com.infoengine.object.factory.Element"%>
<!--com.infoengine.delegate.def
@delegateName SB_SBNumber
@typeId com.ptc.windchill.enterprise.report.ReportTask
@installDelegate true
-->
<!--com.infoengine.soap.rpc.def
Report Task Example to show number of document.
@return INFOENGINE_GROUP ${saReportData} {columns: java.lang.String SBNumber}
-->
<ie:webject name="Create-Group" type="GRP">
 <ie:param name="GROUP_OUT" data="saReportData" />
</ie:webject>
<%
Group saReportData = getGroup("saReportData");
String number = "SB001";
Element maDocumentElem = new Element();
Att maDocumentAtt = new Att("SBNumber");
String maNumber=number;
maDocumentAtt.setValue(maNumber);
maDocumentElem.setAtt(maDocumentAtt);
saReportData.addElement(maDocumentElem);
%>
<ie:webject name="Return-Groups" type="GRP">
 <ie:param name="Group_in" data="saReportData"/>
</ie:webject>
Announcements