Running 4.2. I have a TDL template with a foreach loop. There are some known fields I am always wanting to skip. There are similar threads on the forum about skipping read-only fields when generating a DTO class. That almost works for me, but it also leaves out the identity PK values. Is it possible to check a field name, for example?
This isn't working, but hopefully shows what I am trying to do. If the current field name is "CreatedByUser" (which is one of the calculated fields I want to skip):
<[Foreach EntityField CrLf]>
<[ If Not StringValueEquals EntityFieldName "CreatedUser" ]>
toFill.<[EntityFieldName]> = _<[CaseCamel EntityFieldName]>;
<[ EndIf]>
<[NextForeach]>