Hi List,

I'm trying to set the column model of my remote table from the backend. 
Everything works fine beside this.

Here is part of my model code:

qx.Class.define("licnet.modellistagentadmin",
{
  extend : qx.ui.table.model.Remote,
 
  construct: function()
  {
        this.base(arguments);
         
        //get columns from server:
        

        var rpc = new qcl.io.RpcManager();
        rpc.setServerUrl("../services/server.php");
        rpc.execute("licnet.userListStore", "getfieldlist", null, 
function(result)
                        {
                        alert("Got field list  from backend" + result);
                        this.setcolumns(result);                        
                        }
                        , this);
        
         
        },
          
          members :  
          {
          __datasourceStore : null,
                  
          setcolumns: function(result)
                {
                var uresult = eval('(' + result + ')');
                alert("setcol" );
                colnames =uresult['fieldname'];
                fieldnames = uresult['fieldintname'];
                this.setColumns( ["lala","lili"]);//this.setColumns( [);
                alert("col settled");
                 this.setColumnEditable(1, true);
             this.setColumnEditable(2, true);
                },

The value returned from backend are fine, I checked them. But here, I am using 
mock data ( this.setColumns( ["lala","lili"]); ), but this don't even work, my 
table don't get its columns.
If I put the line : this.setColumns( ["lala","lili"]); in the class 
constructor, then everything works fine.

I'm thinking of may be some kind of concurrency problem, as the table, start 
getting row count and datas, receice this information, then sets the columns 
names ( I saw this with traces )

Could anyone give me its opinion on this problem please ?

Nice day to all,

Yan.
------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to