Friends:
How can I use the next definition of a grid?
(It is a Demo of Studio)
j=. 'Lyon';'Nice';'Paris';'Berlin';'Bonn';'Dresden'
city=. j,'Hamburg';'Munich';'Milan';'Rome';'Total'
qtr=. ('1st';'2nd';'3rd';'4th') ,each <' Quarter'
mth=. 'JanFebMarAprMayJunJulAugSepOctNovDec'
HDRCOL=: 9 4 # 'Actual';'Forecast'
HDRCOL=: HDRCOL,:(3 # qtr),<'Year'
HDRCOL=: HDRCOL, (_3 <\ mth),<'Total'
HDRCOLALIGN=: 1
HDRCOLMERGE=: 1 1
HDRROW=: (3 5 2 # 'France';'Germany';'Italy'),<''
HDRROW=: HDRROW ,. city
HDRROWALIGN=: 1
HDRROWMERGE=: 1
COLMINWIDTH=: 50
grid_gridhandler=: 3 : 0
if. y -: 'change' do.
changex__grid''
CELLDATA__grid=: sumdata 10 12 {. CELLDATA__grid
0 [ show__grid''
end.
)
CELLDATA=: sumdata ?. 10 12$1500
CELLFMT=: 'c'
CELLEDIT=: ((10 12$1),0),.0
I want use it in any script outside of
Studio --> Demos --> grid
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.com.mx/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm