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

Get single level BOM report via Infoengine

Newbie

Get single level BOM report via Infoengine


Hi all,

I am just looking at how to get the BOM report out of PDMLink and to the user with minimal effort required for them.

So my idea was to have an infoengine task that is run and given the Object reference of the wtpart. This would display the table or even better get the CSV file of the BOm report.

But then I found out:
* the generate report webject runs a report by its UFID or Name - that works fine - but I didnt find out any way to run the built-in single level BOM report.
Is there any way to do this?

* the alternative would be to use the query tree webject - but that does query the wtpart structure. Now having gathering parts this doesnt help since it seems to me that only the 'real' bom reports handle them properly.

So the question is: is there any way to retrieve a built-in bom report like the single level bom report via Infoengine?

greetings



3 REPLIES 3

Get single level BOM report via Infoengine

Cancel this. We haven't used it and do not intend to.


RE: Get single level BOM report via Infoengine

You can use below "Query-Tree" webject to get the bom




<ie:webject name="Query-Tree" type="OBJ">


<ieSmiley Tonguearam name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueseparator="!" default="&lt;%=com.infoengine.au.NamingService.getVMName()%">"/>


<ieSmiley Tonguearam name="AUTHORIZATION" data="${@SERVER[]authorization[0]}"/">


<ieSmiley Tonguearam name="ATTRIBUTE" data="wt.part.WTPartUsageLink.quantity"/">


<ieSmiley Tonguearam name="ATTRIBUTE" data="${@FORM[]att[*]}" delim=";" valueseparator=";" default="*"/">


<ieSmiley Tonguearam name="DIRECTION" data="${@FORM[]direction[0]}" default="uses"/">


<ieSmiley Tonguearam name="DEPTH" data="${@FORM[]depth[0]}" default="1"/">


<ieSmiley Tonguearam name="TYPE" data="${@FORM[]linkclass[0]}" default="wt.part.WTPartUsageLink"/">


<ieSmiley Tonguearam name="OBJECT_REF" data="${@FORM[]obid[0]}" default="OR:wt.part.WTPart:56225"/">


<ieSmiley Tonguearam name="MODE" data="FLAT"/">


<ieSmiley Tonguearam name="OUTPUT_TYPE" data="FULL"/">


<ieSmiley Tonguearam name="GROUP_OUT" data="${FORM[]group_out[0]}" default="output"/">


</ie:webject>



also you can use attached QML to create SinglelevelBOM report. If you use the QML to cetre report then you can export it as CSV



hope this helps !!



Thanks,


Shreyas

RE: Get single level BOM report via Infoengine

Thanks a lot for the responses!



It turns out the question was not posed exactly right - we can also live with an XML report and then convert this to csv.


There already is an infoengine task that outputs a bom report in XML format out of the box in WBRSingleLevelBOM.xml


On the other hand if using the Query Tree webject, one queries the very structure of the wtparts and does not 'resolve' gathering parts as i found out. Since we use gathering parts i am now looking at the xml file.



greetings