Hi,

Here is my code(very much incorrect) in that I have used Remote
instead of Simple. Still doesn't seem to work.

qx.Class.define("qx.ui.table.model.RemoteTable",
{
  extend : qx.ui.table.model.Remote,

  members : {

    _loadRowCount: function()
   {
   /* var tableModel = new qx.ui.table.model.Simple();
    tableModel.setColumns(["User ID", "User Name", "Designation",
"Residence Address", "Email ID", "Contact Number"]);
    this.tableModel = tableModel;
 */
    var rpc = new
qx.io.remote.Rpc("http://localhost/rpc/backend/index.php","user";);
    var handler = function(result, exception)
    {
      if (exception==null) {
                          alert(result); // tableModel.setData(result);
                        }
      else  { alert(exception); }          this.onRowCountLoaded(result);
    };
    rpc.callAsync(handler, "userList", "user");
    //var table = new qx.ui.table.Table(tableModel);  table.set({
width: 700, height: 400 }); return table;
   },

   _loadRowData : function()
  {

    var handler = function(result, exception) {
       if (exception == null) {
        alert(result);
        var rowData = this.formulateRowData(result);
    }
     else
     {
        //alert(exception);
     }
   //  this._onRowDataLoaded (rowData);
    };
    rpc.callAsync(handler, "userList", firstRow, rowCount);
    }
  }
});

Regards

Farci

On Fri, Sep 19, 2008 at 6:48 AM, Derrell Lipman
<[EMAIL PROTECTED]> wrote:
> On Fri, Sep 19, 2008 at 2:35 AM, salman farci <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Its been a hardtime for me to get done with atleast a simple "remote
>> table model" working. After extending Remote class and implementing
>> _loadRowCount() and _loadRowData(), it returns an error saying
>> "_loadRowCount() is not a function", Thats one thing. And another
>> thing is that once I get data from the backend server, how do i put on
>> them on the remote table instead of Simple ?(May be I'm stupid at this
>> point) Coz, I tried creating object for Remote() method &
>> instantiating in order to put them on the table. But, it doesn't work.
>> I'm using php for my server side scripting. Im eagerly looking forward
>> & thankful for anyone who can provide me the code for remote model
>> table.
>
> Why don't you post your class that extends Remote.  Maybe we can tell you
> what the problem is.
>
> Derrell
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to