I have a transformation that is creating a stored procedure (i.e. class stereotype "procedure") and setting the "procdef" tagged value with the stored procedure code.
The following "list" macro with @indent="\t" (for tab) will not indent the list of columns in the following SELECT statement in EA 8.0, but it did in EA 7.5.
%PI=""%
$ncode="SELECT \n"
$ncode+=%list="Attribute__CrudFields" @separator=",\n" @indent="\t"%
$ncode+="\nFROM [dbo].[" + %className% + "]\n"
The variable $ncode then ends up in a class definition:
Class
{
%TRANSFORM_REFERENCE("CrudGetList")%
name = %qt%sp%className%GetList%qt%
language = "DHW SP"
stereotype="procedure"
Tag
{
name="procdef"
value=%qt%$ncode%qt%
}
}
And this is what I end up with in EA 8.0, but not EA 7.5 which formats as expected with column names indented:
SELECT
[AssessmentDwellID],
[Bedrooms],
[Buildings],
[State],
[StrataOrPlanNo],
[PromisProjectID],
[UseDHWArch],
[Expired],
[CreatedBy],
[CreatedOn],
[UpdatedBy],
[UpdatedOn],
[Timestamp],
[AssessmentID],
[AssessmentLandID]
FROM [dbo].[AssessmentDwelling]