TableLists

<< >>

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

TableLists

Expansion Label:

CS_TABLE_LISTS

Dependency:


Description:

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

 

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

 

Folder Level: When you use the expansion label - [%CS_TABLE_LISTS%] 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_LISTS%] expansion label used as the label of the node (of folder) under the "temp" node.

CS_clip0008

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

 

CS_clip0009

 

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

 

CS_clip0010

 

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

 

CS_clip0011