Brian,

>From my understanding, that demo run in locale 'myform' but the grid
view is another locale of class jzgrid indirectly reference as 'grid'
inside locale 'myform'  Suppose we denote that by a pronoun in our
current locale 'base'

g=: grid_myform_    NB. locale of grid view

during grid creation, the value of CELLDATA_myform_ is copied to
CELLDATA__g and populated the view.  Cell editing will only update
CELLDATA__g but not CELLDATA_myform_  So you have read CELLDATA__g to
get the current data as that appeared in grid view.

2 2{.CELLDATA__g

That is the behaviour of jzgrid, but you can derive another class from
jzgrid and add handler code to respond to char or other events such
that it will automatically update the original CELLDATA in parent
locale.  There are already several such derived classes, please take a
look at various scripts inside 
  ~system/classes/grid

to see which one can serve your purpose better.


On Fri, 28 Aug 2009, Brian Schott wrote:
> In an attempt to contribute, I thought I would adapt the following
> grid example, but I cannot find the resulting edited grid.  I tried 2
> 2{.GRID_base_ , for example. Where is the revised grid?
> 
> http://www.jsoftware.com/jwiki/Grid/Examples#griddemo2.ijs
> 
> http://rosettacode.org/wiki/User_Input_-_graphical
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to