$rawValue.advancedCriteria.titleField as treeTitle, $defaultSelectClause, 0 as isFolder #if ($advancedCriteria.TableName) $rawValue.advancedCriteria.TableName as $defaultTableClause #else $defaultTableClause #end $defaultWhereClause AND Instance IS NOT NULL #if ($advancedCriteria.TableName) $rawValue.advancedCriteria.TableName as $defaultTableClause #else $defaultTableClause #end