Skip to main content

Here are iteration methods to be used with the e-for directive. Each iterates a list of objects in the metadata dictionary:

Method Explanation
dictionary.getTables() Iterates the list of tables in the dictionary.
dictionary.getReferences() Iterates the list of relationships in the dictionary
dictionary.getReferences('All') Adds inherited relationships to the list of relationships. They are relationships that Logical Views inherit from the underlying table(s).
dictionary.getRoles() Iterates the list of roles in the dictionary

Example

<esi:class name="{table.getName()}" access_type="ownership" e-for="table in dictionary.getTables()">

</esi:class>

If the metadata describe 3 tables TABLE_A, TABLE_B, TABLE_C, this example template instruction translates into:

<esi:class name="TABLE_A" access_type="ownership">

</esi:class>
<esi:class name="TABLE_B" access_type="ownership">

</esi:class>
<esi:class name="TABLE_C" access_type="ownership">

</esi:class>

 

Be the first to reply!

Reply