Hi Derrell,

thanks a lot for your help.

Now I understand that I need an other RPC feedback than for the simple
model.

I have changed the setColumns to:

tableModel.setColumns([ this.tr("State"), this.tr("FileName"),
this.tr("FileSize"),
this.tr("Date") ], [ "state", "filename", "filesize", "date" ] );

I have a little bit problem now with preparing the PHP content for the RPC:
For the simple model table I did it in this way:

$recordset[] = array($color,$row['FileName'],$file_kb,$DateFormat  );
if(isset($recordset)){
      // JSON erzeugen
      echo json_encode($recordset);
}

Now for the remote model I try:

$recordset[] =
"{state:$color,filename:$row[FileName],filesize:$file_kb,date:$DateFormat}";
if(isset($recordset)){
      // JSON erzeugen
      echo json_encode($recordset);
}

The firebug shows me the RPC answer:

["{state:#555555,filename:4_Seiten.prn,filesize:38,date:27.10.2010 11:15:37}",
"{state:#555555,filename:hardcopy.ps,filesize:5,date:05.08.2010 15:57:40}",
"{state:#555555,filename:hardcopy.ps,filesize:5,date:05.08.2010 15:56:45}"]


But the table is still empty. Is there still an problem with the data
format?

best regards
Hans
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to