Hi,
I have created a file /opt/ptc/Windchill_11.0/Windchill/tasks/ext/re/report/SB_Report/SB_SubjectReport.xml
the 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 ? Initially I just want to pass a hardcored value.
XML 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>