Is there any documentation for the formatting system used by
Elements/CollectionAsTable/ParseFormat?
I’ve got some way to understanding it, but I’m stuck on something seemingly
insane. In html/SelfService/Elements/MyRequests the format is:
qq{
‘id/TITLE:#’,
‘Subject/TITLE:Subject’,
Status,
‘Requestors’,
OwnerName};
I don’t understand the difference between Status and ‘Requestors’
I have ascertained that the ‘’ are a red herring here. Requestors and
Requestors behave identically.
OK. As above, those two lines of that format parse to give these values
in the columns array:
$VAR1 = [
‘Status’
];
$VAR1 = [
‘Requestors’,
’’
];
That produces an HTML table with these headers:
If I take out the __ and use the format
qq{
‘id/TITLE:#’,
‘Subject/TITLE:Subject’,
Status,
‘Requestors’,
OwnerName};
it gives these values in the columns array:
$VAR1 = [
‘Status’
];
$VAR1 = [
‘Requestors’
];
(note, no ‘’ now)
and this HTML:
Difference is
was:
now:
what I don’t understand is what the difference in behaviour is between Status
and Requestors. Because in html/Elements/RT__Ticket/ColumnMap I see
Status => {
attribute => 'Status',
value => sub { return loc($_[0]->Status) }
},
Requestors => {
attribute => 'Requestor.EmailAddress',
value => sub { return $_[0]->Requestors->MemberEmailAddressesAsString }
},
Neither specify title. Yet one gets a title for free.
How?
Nicholas Clark