On Fri, Dec 3, 2010 at 09:11, aditya siram <[email protected]> wrote:

> And setValue(col,row,val,view) currently takes an row id corresponding
> to certain view. It would be ideal, for my purposes, if there was a
> setUniqueValue(col,rowid,val) where rowid is the unique id assigned by
> smart.table.Model.
>
> Currently my code depends on the unique row id being (row-index-in-view-0 +
> 1).
>
> Before adding it in I wanted to make sure that the api didn't already
> provide some way to doing this.
>

If you have the row, you can get its row id by calling getRowId(). You
shouldn't need to make assumptions about what that value is. I believe
that's what you're looking for, or I'm still not understanding your need.

You can also use the Index capability of that class to make any column you
like be a unique index. Maybe that helps you? Otherwise, you can also, I
think, subclass this class and override the assignRowIDs() method to assign
the unique row IDs however you'd like.

Derrell
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to