Thanks Richard,

I did some verification before calling "addRows" as follows:

*var rowsData = [];*
*for(var xyzz in field.t_props.rowData){*

*if(typeof(field.t_props.rowData[xyzz]) == "object"){*

*rowsDat.push(field.t_props.rowData[xyzz]);  *

*}*

*}*
*console.warn(rowsData);*


But the above code also raised same error.

rowsData look like:

* 0 :  0*
* 1 :  0*
* 2 : Array(2)*
* 3 : Array(2)
*
* 4 : Array(2)*


But actual array from php end is look like this:

*0 : Array(2)*
*1 : Array(2)
*
*2 : Array(2)*


Is this is due to Qx Array problem. If yes then how to convert QX array to
native array ??
Kindly help me.

once again thanks Richard.


On Mon, Jun 3, 2013 at 8:32 PM, Richard Sternagel <
[email protected]> wrote:

> Hi baskar,
>
> yes, your assumption is correct. Take a look at the source code of
> SearchableModel.js (trunk):
>
>
> http://sourceforge.net/p/qooxdoo-contrib/code/HEAD/tree/trunk/qooxdoo-contrib/ComboTable/trunk/source/class/combotable/SearchableModel.js
>
> Within the method "addRows" you see that in line 76 it calls its super
> method (i.e. "qx.ui.table.model.Simple.addRows"):
>
> ---
> this.base(arguments, rowArr, startIndex, clearSorting);
> ---
>
> If you are unfamiliar with "this.base" check out this:
>
>
> http://manual.qooxdoo.org/current/pages/core/classes.html#pages-classes-polymorphism-overriding
>
> And when we have a look at this method, we see, that it requires an
> array of arrays as its first parameter:
>
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.model.Simple~addRows
>
> "Parameters:
> rowArr An array containing an array for each row. Each row-array
> contains the values in that row in the order of the columns in this model."
>
> So in your code, before adding those rows to the model, ensure that all
> array elements:
>
> * have the same length
> * and the same structure (e.g. [number, string])
>
> Regards
> Richard
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to