That is not possible. You have to copy the fields to d datatable bind
that, and copy the values back to store it

 

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
mark_abousharkh
Gesendet: Donnerstag, 12. April 2007 12:37
An: [EMAIL PROTECTED]
Betreff: [development-axapta] AxaptaRecord

 

Hello All,
I hope someone could reply to me on this issue. I am 
using .NetBusinessConnector in an ASPX Page. 

I have a function that will return an AxaptaRecord, but I have no 
idea how I could bind this to a grid. I need to be able to set the 
axaptarecord to a grid datasource. But, that's not the case. Does 
that mean I'd need to loop through it and populate sometype of 
collection then bind bind the collection to the grid.

Please Advise!!!!!!

Here is snippet of code:

public AxaptaRecord Retrieve(string aTableName)
{
_axaptaConn = new Axapta();
_axaptaConn.Logon(null, null, null, null);

AxaptaRecord retrieveRecordSet;

retrieveRecordSet = _axaptaConn.CreateAxaptaRecord
(aTableName);

string query = "select * from %1";

retrieveRecordSet.ExecuteStmt(query);

return retrieveRecordSet;
}

 



[Non-text portions of this message have been removed]

Reply via email to