Can you write the content of the data table to an xml file including
the schema and send it back to me?

Regards,
Michael


On 7/19/06, Alejandro R <[EMAIL PROTECTED]> wrote:
>
> Yes Michael, I'm using your lastest version 6.7.19.1 and .Net framework
> 1.1
> Regards
> Alejandro
>
>
> Michael Schwarz wrote:
> > Hi, are you using the latest version? There was a bug with own DataTables.
> >
> > Can you verify if this is fixed in current version?
> >
> >
> >
> > On 7/19/06, Alejandro R <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Michael
> > >
> > > I have a problem when I'm trying to pass a DataTable to my JS.
> > > Maybe this can help to understand the problem.
> > >
> > > When I'm using something like this in my server Method:
> > >
> > > [AjaxPro.AjaxMethod]
> > > public DataTable DevolverDatosCorrida(string pCorrida, string
> > > pEscenario, short pIdUsuario)
> > > {
> > >     MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> > >             MRPWrappers.EjecucionWrappers.
> > >             EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> > >             pCorrida, pEscenario);
> > >     MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> > >             (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> > >             Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> > >     //this is a datatable
> > >     return res.Result.Result;
> > > }
> > > In my res.value I received this (res.JSON):
> > >
> > > "[[true,\"P1122\",\"Corrida 13/07\",new
> > > Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
> > >       \",\"Prue1     \",\"Escenario Prueba
> > > eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
> > >   \"]];/*"
> > >
> > > So as you can see this is not a DataTable
> > > Why?
> > >
> > > Well, now I'm trying something different:
> > > I change my DataSet for a string type:
> > >
> > > [AjaxPro.AjaxMethod]
> > > public string DevolverDatosCorrida(string pCorrida, string pEscenario,
> > > short pIdUsuario)
> > > {
> > >     MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> > >             MRPWrappers.EjecucionWrappers.
> > >             EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> > >             pCorrida, pEscenario);
> > >     MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> > >             (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> > >             Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> > >
> > >     AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
> > >     string ajSer = aj.Serialize(res.Result.Result);
> > >     //this is an string
> > >     return ajSer;
> > > }
> > > In my JS I received this in my res.value:
> > > "new
> > > Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",new
> > > Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
> > >        \",\"Prue1     \",\"Escenario Prueba
> > > eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
> > >   \"]])"
> > >
> > > so I can use an eval() for use my DataTable
> > >
> > > dt = eval(res.value);
> > >
> > > And all is perfect,
> > >
> > > I don't know what could be happend, but when I use an old version
> > > 6.5.17.1 and all works fine.
> > > Can u help me?
> > >
> > >
> > > >
> > >
> >
> >
> > --
> > Best regards | Schöne Grüße
> > Michael
> >
> > Microsoft MVP - Most Valuable Professional
> > Microsoft MCAD - Certified Application Developer
> >
> > http://weblogs.asp.net/mschwarz/
> > http://www.schwarz-interactive.de/
> >
> > Skype: callto:schwarz-interactive
> > MSN IM: [EMAIL PROTECTED]
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to