Quantcast
Viewing all articles
Browse latest Browse all 72043

No records retrieved when using business connector.

Hello,

I am using business connector like the sample on: http://msdn.microsoft.com/en-us/library/aa851743.aspx

When calling classing methods by ax.CallStaticClassMethod("myclass", "mymethod");, I do something like:

CustTable custTable;

select * from custTable;

Even custtable has records, I get no records (custTable.recid = 0).

(I succeed calling the method: myclass::mymethod)

What may be the reason for that?

Also, realize that even doing something like:

AxaptaRecord axRecord;
using (axRecord = ax.CreateAxaptaRecord("CustTable"))
{

// Execute the query on the table.
axRecord.ExecuteStmt("select * from %1");
s = axRecord.get_Field("RecId");
}

s = 0.

Even there are records ...

Thanks :)


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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