Hi Jaspreet,
Enumeration format is unfortunately here for xtk:enum (itemized lists, node Administration>Platform>Enumerations (itemized lists) not for sysEnum (enumerations defined in schema, XML source schema).
And yes, you pointed out a limitation of Adobe Campaign for such report, with sysEnum values.
The only solution for sysEnum, as far as I know, is to add the label corresponding to the value of sysEnum for each line, in the context for each line retrieved by your query.
So it means a bit of Javascript for this 2nd pass of adding data.
See for example this JS code to understand the JS function and object to use:
var schema = application.getSchema("nms:delivery")
for each(var e in schema.enumerations)
{
logInfo(e.name)
if (e.name == "nms:delivery:deliveryState")
for each(var v in e.values) // the .EnumerationValue is not to mention
{
logInfo(v.name + " = " + v.value)
}
}
In your case, you must loop on the ctx.query childs, (or whatever the collection you got, replace by rightname such as ctx["delivery-collection"] for instance), and append attribute value for the array of sysEnum you got by using the getSchema("nms:delivery").enumerations statement.
You can find out many standard factory reports that use this technique of double pass to construct, enrich a data set.
Hope this work-around helps, and good luck.
Regards
J-Serge