There is an issue if __rows is in your code. This is a private member of the class and you should not be accessing it. As Derrell said, if you do a build version you are not going to have access to that member. And in next weeks code release, that member may get renamed and your code won't work at all and you might not have a clue why. So use getData() and delete your rows from there to do it the correct way.
Jim On Thu, Mar 26, 2009 at 8:57 AM, robust <[email protected]> wrote: > > I am not concerned about the data in the row. All I want is to delete the > row from the table. For that I am passing the row Index. Are there any > issues if I delete the rows as mentioned above? > > Thanks, > Robust > > 2009/3/26 Jim Hunter <[email protected]> > > > You are accessing a private member of the class to delete the rows > > (__rows), I would suggest using getData() on the tableModel and > manipulating > > things that way. I wasn't sure if there might be some setters/getters > that > > you were bypassing going directly to the array. But since your issue is > > solved, then you are set. > > > Uhhhh.... No. that'll work only the "source" version. As soon as you create > the "build" version with its optimizations, you won't have access to that > private member. Aside from that, there's no guarantee that we'll continue > to > use a private variable called __rows, and if we change it, your code will > break. You must use getData() to access the model data. > > Cheers, > > Derrell > > > ------------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > -- > View this message in context: > http://n2.nabble.com/Removing-rows-from-a-table-tp2528366p2539270.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
