BomView to Form?

BomView to Form?

mslosar
Advisor Advisor
435 Views
2 Replies
Message 1 of 3

BomView to Form?

mslosar
Advisor
Advisor

Is it possible to get the BomView, preferably structured, into a form? Or is there an easier way to get that list of parts into a form in something like a datagrid view? I figure, with the BOMView, it's got most of what I need for the list, so why recreate the wheel if you don't have to.

0 Likes
436 Views
2 Replies
Replies (2)
Message 2 of 3

jjstr8
Collaborator
Collaborator

I think your best bet is to use an unbound DataGridView control on a form (I assume this is not VBA).  You can create the columns at design-time (if they're always the same) and add rows as you enumerate the BOMRows of the BOMView.  Beyond the item number and quantites, you'll have to grab properties you need from the ComponentDefinition for each BOMRow.  Keep in mind that the "Structured" and "Parts Only" BOM views are not available if the Level of Detail is not set to Master.

0 Likes
Message 3 of 3

mslosar
Advisor
Advisor

Sorry for the delay 🙂

 

I'll look in to that and see if it works. We discourage the use of LOD's here as it tends to cause us issues so that shouldn't be a problem.

 

I'll let you know how it works.

0 Likes