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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Can not find/load Delegate task to Cognos

shindemayur
14-Alexandrite

Can not find/load Delegate task to Cognos

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>
 
1 REPLY 1

Hi

Have you done an update model ?

 

Updating the Model
 
Run the following script from a Windchill shell. (Your Windchill solution, PTC Windchill Business Reporting, Web servers, and servlet engines must be running for this script to be successfully run.)
			ant -f <wt_home>/installer/wnc/wbr_actions.xml modelupdate
Hope this helps.
 
Regards,
Kamal Essajidi
Announcements

Top Tags