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.