Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Matrix  (Read 9577 times)
Candy M.
Posts: 139


« on: October 28, 2008, 02:49:44 pm »

What is "Matrix"?  Is that the same as SCROLLGRID or a new widget?

Candy
Reuben B.
Four Js
Posts: 1119


« Reply #1 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines