Hello,

i try this now but teh script   stopped and no error appar  and no data 
is saved.



                                STRUKTURID[row] = {
                                    "STRUKTURID"     : ID,
                                    "lesen"         : 
bo[this.tables[7].getTableModel().getValue(1,row)],
                                    "schreiben"     : 
bo[this.tables[7].getTableModel().getValue(2,row)],
                                    "loeschen"         : 
bo[this.tables[7].getTableModel().getValue(3,row)]
                                    }
                                
req.setParameter("STRUKTURID",qx.util.Json.stringify(STRUKTURID));
why i must transfer the data t o json? the oder data/vars automaticaly  
transfered to json. why his array not?

> Hmm,
>
> you can just add a JSon Object to your request, somehow like this code:
>
> var strukturid = {};
>
> // within your for-loop or something
> strukturid[row] = {
>   "STRUKTURID" : STRUKTURID,
>   "lesen" : bo[this.tables[7].getTableModel().getValue(1,row)],
>   "schreiben" : bo[this.tables[7].getTableModel().getValue(2,row)],
>   "loeschen" : bo[this.tables[7].getTableModel().getValue(3,row)]
> }
>
> // after having built your data object completely
> var req = new qx.io.remote.Request(makebiz.system.Globals.processorURL,
> "POST", "application/json");
> req.setTimeout(10000);
> req.setParameter("m", "domont");
> req.setParameter("USERID",this.widgets["USERID"].getValue());
> req.setParameter("STRUKTURID",qx.util.Json.stringify(strukturid);
>                  
>
> Regards,
> Daniel
>   


------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to