TableList

<< >>

Navigation:  CodeStencil > Custom Library > Code Nanites > Table Related >

TableList

Expansion Label:

CS_TABLE_LIST

Dependency:


Description:

Triggers a loop that cycles through all the tables listed under the Global Schema. Code is then generated for every table.

 

This is applicable at the folder/file level as well as the code level.

 

Folder Level: When you use the expansion label - [%CS_TABLE_LIST%] as the label for a Node, you can generate folders having the name of the table(s) as you cycle through the list. For example, the below shows the [%CS_TABLE_LIST%] expansion label used as the label of the node (of folder) under the "temp" node.

 

CS_clip0004

 

This setup will cause the following folders to be created under the temp folder during code generation:

 

CS_clip0005

 

And likewise, file names with the same name as the folder plus the suffix ".cs" will also be created:

 

CS_clip0006

 

because the expansion label was used as part of a file name.

 

CS_clip0007