Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

x++ List of all Methods on a table.

$
0
0

Hi.

I need to retrive a list of all methods on a table.

I tried the following

SysDictTable dTable = new SysDictTable(tableName2Id('CustInvoiceJour'));
et dictMethodSet = dTable.methods(true, true, true);

SetEnumerator iter = dictMethodSet.getEnumerator();

while (iter.moveNext())
{
dMethod = iter.current();

info(dMethod.name());
}

 I Also tried.

Microsoft.Dynamics.AX.Metadata.MetaModel.AxTable table = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetTable("CustInvoiceJour");

Microsoft.Dynamics.AX.Metadata.Core.Collections.IKeyedObjectCollection sen =  table.Methods;

for (int i = 0; sen != null && i < sen.Count; i++)

{
Microsoft.Dynamics.AX.Metadata.MetaModel.AxMethod method = sen.getObject(i);
info (method.Name);
}

Both methods have the same Issue, they do not include extension Methods.

public static class OTDTableMethod_Extension
{

public static str otdFullName(CustInvoiceJour _custInvoiceJour)
{
return 'test';
}

}

Is there anyway to get all methods for a table or anyway to get all extension methods ?


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>