There won't be a conflict, since event data names are prefixed with the
control id.


On Thu, Aug 28, 2014 at 4:18 PM, Raul Miller <[email protected]> wrote:

> What should happen when you have several tables?
>
> Thanks,
>
> --
> Raul
>
>
>
> On Thu, Aug 28, 2014 at 4:23 PM, Thomas Costigliola <[email protected]>
> wrote:
>
> > My use case is that I click a cell on the table, then click a button that
> > will have some effect that depends on what cell in the table is
> > highlighted. I suppose I can save the selection to a state variable in
> the
> > table click event and use it in subsequent events. But this would
> logically
> > lead me to consider that the table state should be what I saved. Unless
> > there are use cases where having a table state in another event would
> cause
> > some disruption or confusion.
> >
> > As a slight aside, I have been wanting to get and set the selection of a
> > table with wd commands, is that something you have thought about
> > supporting? For example an option to wd'set table block...', that
> actually
> > highlights the cells as if they were selected with the mouse and a
> > corresponding get command to get the selection that was last highlighted.
> >
> >
> > On Thu, Aug 28, 2014 at 4:05 PM, chris burke <[email protected]>
> wrote:
> >
> > > This was done originally because there is no obvious state that a table
> > has
> > > when a non-table event occurs, unlike say a checkbox which is either on
> > or
> > > off. What information there is can be captured when a table event
> occurs.
> > >
> > > However, we are open to suggestions on this, and it is easy to change.
> > >
> > >
> > > On Thu, Aug 28, 2014 at 12:24 PM, Thomas Costigliola <
> [email protected]
> > >
> > > wrote:
> > >
> > > > If a table control is not the last control clicked it doesn't show up
> > in
> > > > form data.
> > > >
> > > >
> > > > wd 0 : 0
> > > >
> > > > pc f closeok;
> > > >
> > > > bin v;
> > > >
> > > > cc b button;cn button;
> > > >
> > > > cc t table 2 2;
> > > >
> > > > set t data A B C D;
> > > >
> > > > bin z;
> > > >
> > > > pshow;
> > > >
> > > > )
> > > >
> > > >
> > > > If I click the button then:
> > > >
> > > >
> > > > wd'qd'
> > > >
> > > > ┌────────────┬────────┐
> > > >
> > > > │syslocalep │Special │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndp │89319136│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndc │89605104│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syslastfocus│ │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysmodifiers│0 │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysdata │ │
> > > >
> > > > └────────────┴────────┘
> > > >
> > > >
> > > > But when I click in the table then:
> > > >
> > > >
> > > > wd'qd'
> > > >
> > > > ┌────────────┬────────┐
> > > >
> > > > │syslocalep │Special │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndp │89319136│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndc │89605104│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syslastfocus│ │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysmodifiers│0 │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysdata │ │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │t │0 1 │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │t_select │0 0 1 1 │
> > > >
> > > > └────────────┴────────┘
> > > >
> > > >
> > > > And clicking the button again:
> > > >
> > > >
> > > > wd'qd'
> > > >
> > > > ┌────────────┬────────┐
> > > >
> > > > │syslocalep │Special │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndp │89319136│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syshwndc │89605104│
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │syslastfocus│ │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysmodifiers│0 │
> > > >
> > > > ├────────────┼────────┤
> > > >
> > > > │sysdata │ │
> > > >
> > > > └────────────┴────────┘
> > > >
> > > >
> > > > This goes for event data too. I need to process the table from
> another
> > > > control's event. Is there any way to do this?
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to