Grid sets up event handling in the form locale to send corresponding
events to the grid locale. If your forms are in the same locale, then
only one set of event handlers are built and these send events to the
first grid.

To solve this, put each new form in its own locale, i.e. on a popup
request, create a locale then instantiate the form in it. This will
ensure that each grid gets its own event handlers.

You could create the event handlers in your script, but there is no
need to do this.

On Tue, Feb 8, 2011 at 5:57 AM, Donald Pittenger
<[email protected]> wrote:
> I have a master form with buttons, each of which invokes a separate form 
> containing only a grid and a close button.  Separate forms are required 
> because different data sets exist and are to be user-selected.  At present, 
> all the relevant form and grid-handling programs are contained in a single J 
> script.
>
> All forms pop up on request, display their proper data and close when 
> signaled to do so.
>
> The problem is that only the first sub-form (in terms of its sequence in the 
> J script) has a grid with a vertical scrollbar that functions.  Grids on 
> other forms appear with similar scrollbars, but those scrollbars do not 
> respond to MacBook mousepad actions.  This behavior is independent of when 
> the forms are invoked; in every case, only the top J script subform scrolls.
>
> Operating code for the various sub-forms is identical.  The only differences 
> have to do with naming, labeling headers and the dimensions of form elements.
>
> Should I break the script into separate scripts, each dealing with its own 
> subform in the hope of curing the problem?  Is there another solution?  Or is 
> my lack of practice dealing with grids leading to a silly programming error?
> ----------------------------------------------------------------------
> 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