[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

RE: 10930.1 Populate DataSet in webservice

Map

12/28/2005 1:40:00 PM

I have a same problem now. Did you get the solution about this problem?

"robnz" wrote:

> Hi,
>
> I'm trying to write a webservice (in C#) to display the results of a query. I can run the query, which returns the expected results, but I want to populate a DataSet with this result directly. Does anyone know how I would do this?
>
> I run the query by
>
> query = axapta.CreateObject("Query", null, null, null, null, null, null);
> dataSource = (AxaptaCOMConnector.IAxaptaObject)query.Call("AddDataSource", tableID, null, null, null, null, null);
> queryRun = axapta.CreateObject("QueryRun", query, null, null, null, null, null);
>
> while ((bool)queryRun.Call("Next", null, null, null, null, null, null))
> {
> .....
>
> Instead of working with records individually in the while loop, I'd like to directly populate a dataset.
>
> Thanks,
>
> Rob.
>
> technet.navision.com Posting date: Thursday, September 23, 2004
>
> technet.navision.com Posting path: Navision Axapta/Technology (Ax)/Axapta COM Connector