Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Create form datasource object through X++

$
0
0

Hi

Is there any way to be created form data source through X++?

I tried something like that:

SalesQuotationLine SalesQuotationLine;

FormDataSource formDataSource = new FormDataSource();

formDataSource.table(tablenum(SalesQuotationLine));

salesQuotationLine = formDataSource.cursor();

This X++ code compiles successfully but there is a problem at runtime, because new FormDataSource() statement returns instance of an Object() class which have not table() method;

I need to pass salesQuotationLine buffer as a parameter of function and this buffer should have a valid datasource object.

Thanks.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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