Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Candy M. on October 28, 2008, 02:49:44 pm



Title: Matrix
Post by: Candy M. on October 28, 2008, 02:49:44 pm
What is "Matrix"?  Is that the same as SCROLLGRID or a new widget?

Candy


Title: Re: Matrix
Post by: Reuben B. on October 28, 2008, 10:24:30 pm
Hi Candy,

I'll take a stab at answering this so you don't spend the whole day looking for a new widget called 'Matrix'.

The best way I can think of is to cd to $FGLDIR/demo/Lists and fglrun Lists.  This demo program illustrates different ways of rendering lists.  The Array and ArrayEx examples use the old SCREEN syntax whilst the Table and ScrGrid use the new LAYOUT syntax and the TABLE and SCROLLGRID layout containers respectively.  With this demo program you can double click any of the exmaples and they will run and show you how they are rendered, you can also click on the Show PER and Show 42f buttons and this will illustrate the .per source and the compiled .42f file. 

If you look in the compiled .42f files, you will see Matrix nodes in the Array, ArrayEx, and ScrGrid examples whilst the Table example uses a TableColumn node.  If when the examples are running you look at the AUI tree (control+right click), you will see the Matrix and TableColumn nodes in the tree as parents to a widget node (e.g. Edit) and a ValueList node.

For DOM Tree manipulation, the formfield, tablecolumn, and matrix nodes hold the attribute name corresponding to the field name in your 4GL source, so typically you will be looking for one of these nodes that have a name attribute value equal to your 4GL field name. 

Hope that helps,

Reuben