BO\Adapter for PartMtl

What BO or adapter should I be using to access the PartMtl table?

In a BPM, I just directly queried the table - in a customization I have yet to figure out what to do.

I tried Using the BOMSearch adapter in the standard way but it seems that neither GetRows or GetList is implemented.
Application Error

Error Detail

Message: The GetRows method has not been implemented and is not valid for this BO/Adapter
Program:
Method:

Hi
Have you tried the BO for part?
Graeme

No, do you know of a method to pull the BOM from the part adapter by chance?

BAQ?
Or… maybe this guy will do it

<tracePacket>
  <businessObject>Erp.Proxy.BO.BomSearchImpl</businessObject>
  <methodName>GetDatasetForTree</methodName>
  <appServerUri>net.tcp://NOPE/EpicorTest10/</appServerUri>
  <returnType>BomSearchTableset</returnType>
  <localTime>2/22/2017 15:27:20:3509125 PM</localTime>
  <executionTime>664</executionTime>
  <parameters>
    <parameter name="ipPartNum" type="System.String"><![CDATA[MYPART]]></parameter>
    <parameter name="ipRevisionNum" type="System.String"><![CDATA[A01]]></parameter>
    <parameter name="ipAltMethod" type="System.String"><![CDATA[]]></parameter>
    <parameter name="ipUseDefaultMethod" type="System.Boolean"><![CDATA[True]]></parameter>
    <parameter name="ipAsOfDate" type="DateTime"><![CDATA[2/22/2017 12:00:00 AM]]></parameter>
    <parameter name="ipCompleteTree" type="System.Boolean"><![CDATA[False]]></parameter>
  </parameters>
</tracePacket>
1 Like

I guess it depends on what you are looking for or want to do….

BOMSearch GetDatasetForTree will return the BOM
You could always create a BAQ to get the data you want and then call that in a customization

1 Like

Jose, that’s what I am messing with now. I was actually just about to start a new thread (and tag you) on how to get access to the typed datasets.

In this instance, the adapter returns:
BomSearchDataSet which is in the namespace Erp.BO.

Despite using the namespace and accessing the adapter, Epicor keeps telling me it doesn’t know what a BomSearchDataSet is.

Ultimately I will proabably just use a BAQ, I actually already have one made that I use elsewhere just for this purpose but I am trying to expand my understanding of everthing.

See my confusion?

The type or namespace name ‘BomSearchDataSet’ does not exist in the namespace ‘Erp.BO’ (are you missing an assembly reference?)

and

namespace Erp.BO
{
///


/// Represents a strongly typed in-memory cache of data.
///

[HelpKeyword(“vs.data.DataSet”), DesignerCategory(“code”), ToolboxItem(true), XmlRoot(“BomSearchDataSet”), XmlSchemaProvider(“GetTypedDataSetSchema”)]
[Serializable]
public class BomSearchDataSet : DataSet
{

The typed datasets are in ERP.BO and ERP.BO.PROXY
This one is defined in the Erp.Contracts.BO.BomSearch.dll namespace Erp.BO
Make sure to add the DLL reference

I thought I did Tools>Ass Ref Mgr>Added BomSearch.dll

On a side note, Epicor complains that proxy is not a member of Erp.BO

Its Easier if you just go to Tools -> Customization Wizard -> Refernece BL-> And select it form there.

:tired_face: Yep, that stopped the nagging. Thanks as per usual!

So what IS assembly reference manager useful for then?

Its useful when you pick all the right dll’s LoL you need the adapter and the bo for this instance :thumbsup:

2 Likes

Hi
Checked this morning and couldn’t find a method in part. BOMSearch looks like the only option.
Graeme

1 Like