Problem Statement : Get the packed BOMLines for Particular Item Revision ?
Here is the answer:-)...By setting property on bomwindow
Steps to follow...
i) Open BOM for ItemRevision
Please read the previous bolg.
This will provide you the ArrayList containing the bomwindow and top bomline.
BOMWindow bomWindow = ArrayList.get(0);
BOMLine parentLine = ArrayList.get(1);
ii) Set property on BOMWindow
VecStruct vecStructPackedBom = new VecStruct();
vecStructPackedBom = new VecStruct();
vecStructPackedBom.stringVec = new String[]{ "true" };
mapOfAttributes.put( "is_packed_by_default",vecStructPackedBom );
ServiceData setProperties = DM_Service.setProperties( new ModelObject[]{bomWindow}, mapOfAttributes );
iii) Get bomLines
ModelObject[] arrChildLines = null;
DataManagementService datamantService = DataManagementService.getService(m_tcConn);
datamantService .getProperties( new ModelObject[] { parentLine }, new String[] { "bl_child_lines" } );
arrChildLines = parentLine.get_bl_child_lines();
本文介绍了一种方法,通过设置BOM窗口属性来获取特定项修订版的打包物料清单(BOM)行。步骤包括:打开项修订版的BOM,设置BOM窗口的属性为默认打包,最后获取子BOM行。
1168

被折叠的 条评论
为什么被折叠?



