@getcolumnentitytype()
Returns the entity type ID of a column in a table.
Syntax
@getcolumnentitytyp (column_index)
Type
HyperMesh Template Function
Description
This function returns the entity type ID of a column in a table. This can only be used inside of a *tables() block. The entity type ID can be converted to the entity type name using @getdatabaseentitytypename.
Inputs
- column_index
- The index of the column in the table, starting from 0.
Example
*tables()
*format()
*counterset(counter1,0)
*variableset(variable1,columns)
*loopif([counter1 < variable1])
*counterset(counter2,0)
*variableset(variable2,[@gettablecolumnsize(id,counter1)])
*loopif([counter2 < variable3])
*variableset(variable3,[@getcolumntype(counter1)])
*variableset(variable4,[@getcolumnentitytype(counter1)])
*if([variable3 == 2 && variable4 > 0])
*field(integer,variable4,0)
*field(integer,[@getcellvalue(counter2,counter1)],0)
*end()
*endif()
*counterinc(counter2)
*endloop()
*counterinc(counter1)
*endloop()
*output()
Version History
11.0