1 grid.getNodes

Release 2017.3

Tag available since version 2017.3.

Returns a list for each database element that belongs the grid.

<grid.getNodes />
Example
Copy
<xsql-script>
    <body>
        <set name='list'><grid name='grid_test' /></set>

        <println>... The grid contains the following nodes: <list/></println>
        <println/>

        <set name='tabname'>capuntes</set>
        <println>Number of rows for tabname <tabname/></println>
        <iterator name='node'>
            <in>
                <list/>
            </in>
            <do>
                <connection name='${node}'>
                    <select prefix='m_'>
                        <columns>*</columns>
                        <from table='systables' />
                        <where>tabname=<tabname/></where>
                    </select>
                    <println><node/>: <m_nrows/> rows</println>
                </connection>
            </do>
        </iterator>
    </body>
</xsql-script>
... The grid contains the following nodes: [demo_sports, demo_industria, demo_cons]
    		    
Number of rows for tabname capuntes
demo_sports: 7888.0 rows
demo_industria: 442028.0 rows
demo_cons: 4557441.0 rows