Hi -

I wanted to try to re-create the various forms in the grid demo from
scratch.

I'm a little confused about where to put the code, and what code might
already have been loaded "behind the scenes" before the code displayed in
'View Definition'.

I do the following:

1 - Open J.

2 - Open menu 'Studio' > 'Demos'.

3 - Select the 'grid' demo and click 'OK'.

-    The grid form displays, showing the 'Report' format (the first option
in the 'Gallery' menu).

4 - Open the menu 'Options' > 'View Definition'.

5 - Select all the code and do Copy.

6 - Go to the main J window and open the menu 'File' > 'New ijs'.

7 - Past the code in this new window.

8 - Save this window as '~user/temp/gridex/grid.ijs'.

9 - Open the menu 'Run' > 'Window'.

This produces the following error message:

   load 'c:\documents and settings\aaa\j602-user\temp\gridex\grid.ijs'
|value error: sumdata
|   CELLDATA=:    sumdata?.10 12$1500
|[-26] c:\documents and settings\aaa\j602-user\temp\gridex\grid.ijs

Does this mean that the function sumdata isn't defined yet?

I don't see a definition for it in the window.

Is there some code which has been loaded earlier in this demo?

How do I get at all the code which has been loaded in this demo, so that I
can re-create it myself from scratch?

Is there a function I can call to return an environment showing what locale
I'm in and what functions have been defined so far?

Is there a general way to find out what code has been loaded as part of a
lab prior to what's shown in 'View Definition'?

Later I try viewing a different style of grid by selecting the menu
'Gallery' > 'Controls'.

Again if I copy and paste this text into a New ijs file and try to do Run
Window, I get an error saying the variable MONTHS isn't defined.

It's clear that the code for this style of grid is being loaded after the
code for the other style of grid - and probably some other code has also
been loaded even earlier (defining sumdata).

So I'd like to know how to view all the code for this example, and for any
other demos as well.

Thanks for any help to get me started here!

- Scott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to