Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Product Structure Export to Excel
I might have added to a thread about this, but when not sure, try again.
Even this one has ptc support & R&D stumped, although you would think it be easy & OOTB.
From a wtpart detail/info page, you can select actions/export & when app opens, you can enter a xls file to export to.
But the excel/xls has OOTB attributes columns. You would think there would be a policy, rule, config properties, rbInfo or something file that specifies what the OOTB attribute columns are to be.
You would think you could then edit that file to allow you to generate an excel/xls with your own chosen attribute columns. Somewhere the system knows what attributes to report on.
But not only doesn't ptc support or R&B know how to do such a thing, they don't know even know which file controls what attributes are reported for OOTB.
From the Structure Tab & Multi-Level BOM report, you can change/customize the View & chose which attribute columns will show. But you cant do it for the Export to excel area.
Unless some guru here knows the way. Maybe what file controls the OOTB export attributes to report on. Or the method to control Export to Excel output.
Appreciate any info on this area.
The Product Structure Export to Excel is a layer of wrapper of standard IXB import / export code. It gets the values from object's xml files that are in the exported jar file then transforms them into a xls excel spreadsheet. So basically all the values in objects' xml files in exported jar file (say all IBAs) are able to display in the exported excel somehow. But I don't see that there are configuration files or something that you can easily configured to achieve your goal. The OOTB exported columns/attributes are handled and hardcoded in %WC_HOME%\src\com\ptc\windchill\ixb\exporter\Xml2Xls.java so you will have to change Xml2Xls.java to add the extra attributes that you are trying to export. You will have to extract the Xml2Xls.class from %WC_HOME%\codebase\wncWeb.jar file first then de-compile the %WC_HOME%\codebase\com\ptc\windchill\ixb\exporter\Xml2Xls.class to get the Xml2Xls.java source code to modify on.
Attached are examples of adding some IBAs in Xml2Xls.java for exporting extra attributes into excel.
Also you can modify other related files to this piece of export to excel function as you wish :
%WC_HOME%\codebase\wt\ixb\clientAccess\StandardIXBService.class (Xml2Xls is called from here, you can call your own user friendly class here than customizing Xml2Xls)
%WC_HOME%\codebase\registry\ixb\object_set_handlers\product_struct_excel.xml (objects navigation rules are defined here)
%WC_HOME%\src\com\ptc\windchill\ixb\exporter\exportResource.rbInfo (error messages are defined here)
In Reply to Lawrence Jett:
Product Structure Export to Excel
I might have added to a thread about this, but when not sure, try again.
Even this one has ptc support & R&D stumped, although you would think it be easy & OOTB.
From a wtpart detail/info page, you can select actions/export & when app opens, you can enter a xls file to export to.
But the excel/xls has OOTB attributes columns. You would think there would be a policy, rule, config properties, rbInfo or something file that specifies what the OOTB attribute columns are to be.
You would think you could then edit that file to allow you to generate an excel/xls with your own chosen attribute columns. Somewhere the system knows what attributes to report on.
But not only doesn't ptc support or R&B know how to do such a thing, they don't know even know which file controls what attributes are reported for OOTB.
From the Structure Tab & Multi-Level BOM report, you can change/customize the View & chose which attribute columns will show. But you cant do it for the Export to excel area.
Unless some guru here knows the way. Maybe what file controls the OOTB export attributes to report on. Or the method to control Export to Excel output.
Appreciate any info on this area.
On page 4 of Rekha's presentation, the BOM report has full windows functionality like file > save as etc. On 9.0 all the BOM reports are justa basic popup with no options. Is the BOM report in Rekha's presentation added Windchill functionality or is it a newer version of Windchill ?
@avillanueva @MikeFoster @rdayalu @kpietila @cadjett
team, It's 2023 and I am still looking for a way to automate the generation of multi-level BOM's. Even with a python script it looks difficult. Here is a sequence from the Apache log when doing reports->Export to xls report:
"POST /Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/servlet/ops HTTP/1.1" 332
"POST /Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/servlet/ops HTTP/1.1" 724
"POST /Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/servlet/ops HTTP/1.1" 238
"POST /Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/servlet/ops HTTP/1.1" 418
"GET /Windchill/servlet/WindchillAuthGW/com.ptc.netmarkets.model.StandardNmObjectService/redirectRecipient/StructureReport~4199999999999design.xls?attach=true&sessId=H5qXSx999999999W2as.dxd&u8=1 HTTP/1.1" 40996
I need to know what is sent in those POSTs so I can automate this. Without the use of Burp Suite this is opaque.
RobotFramework, anyone?
Oh @rleir
This is GWT google widget toolkit, and it is retally hardcoded.
I would say that you need to develop own multilevel report function to do so.
From my point of view it is easier then to try what GWT function does.
PetrH
Where are you sending the data too?
@HelesicPetr , I was just asking the use case. Where are they trying to get the multi-level BOMs exported to? Its a complicated problem since there are many variables like the config spec filter.
Just need to provide the mlBOMs daily to colleagues who don't want to do the export process manually.