Product Logo

CNS Query

Query your databases without relationships.

Functions

CNSQuery_GetLayoutFieldNames

NameCNSQuery_GetLayoutFieldNames
Description

This function returns a list of Field Names from a Layout. The first parameter is the Name of the Layout to return the Field Names from. If you do not specify this parameter, CNS Query will use Get(LayoutName) to get the current Layout to return the Field Names from. By default, CNS Query will check to make sure the Layout Name you specify exists before getting the Field Names. If you already know for sure that the Layout Name exists, you can pass True as the second parameter.

Return TypeText
FormatCNSQuery_GetLayoutFieldNames ( Layout Name ; SkipLayoutNameCheck )
Optional Parameters
Layout Name

The Name of the Layout that contains the Fields. You can specify “” here to have CNS Query use the current Layout.

SkipLayoutNameCheck

If True, CNS Query will not check to make sure the Layout Name you specify actually exists.

Example
Example 1

Returns something like:<br/> AField<br/> BField<br/> Related::DField

CNSQuery_GetLayoutFieldNames( "MyLayout" )