Problem with a report on group-data within an Live-template
Hi,
i have this code on a live-template !
{group-data:gdCATEGORIES}
h5. {toggle-cloak:id=idALL|exclusive=true}Alle Dokumente
{cloak:id=idALL}
{children}
{cloak}
h5. {toggle-cloak:id=idCAT1|exclusive=true}{set-data:setCAT1}Ablaeufe{set-data}
{cloak:id=idCAT1}
{checklist:name=.| parent=@self | depth=1| label=ablaeufe}
{checklist}
{cloak}
h5. {toggle-cloak:id=idCAT2|exclusive=true}{set-data:setCAT2}Sonstiges{set-data}
{cloak:id=idCAT2}
{checklist:name=.| parent=@self | depth=1| label=sonstiges}
{checklist}
{cloak}
{group-data}
i try to report on this from a child page like this
{report-block}
{local-reporter:content:parent}
{local-reporter}
{report-body}{report-on:data:gdCATEGORIES>@all}{report-info:entry:value}{report-on}{report-body}
{report-block}
It doesn't work. Is is a bug or am i doing something wrong.
i have this code on a live-template !
{group-data:gdCATEGORIES}
h5. {toggle-cloak:id=idALL|exclusive=true}Alle Dokumente
{cloak:id=idALL}
{children}
{cloak}
h5. {toggle-cloak:id=idCAT1|exclusive=true}{set-data:setCAT1}Ablaeufe{set-data}
{cloak:id=idCAT1}
{checklist:name=.| parent=@self | depth=1| label=ablaeufe}
{checklist}
{cloak}
h5. {toggle-cloak:id=idCAT2|exclusive=true}{set-data:setCAT2}Sonstiges{set-data}
{cloak:id=idCAT2}
{checklist:name=.| parent=@self | depth=1| label=sonstiges}
{checklist}
{cloak}
{group-data}
i try to report on this from a child page like this
{report-block}
{local-reporter:content:parent}
{local-reporter}
{report-body}{report-on:data:gdCATEGORIES>@all}{report-info:entry:value}{report-on}{report-body}
{report-block}
It doesn't work. Is is a bug or am i doing something wrong.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hmm found the source of the problem.
I added the group-data macros later to the livetemplate and after that you are not able to access the fields within the group-data anymore. At least on the pages which were already created using the live-template.
Even if you enter new data within the repeating-data field, nothing is shown.
Only newly created pages work.
Is there any solution ? -
Inappropriate?Hmm. Did the old pages have a field with the same name as the group-data?if so, that could be the problem. The workaround is to rename the group-data field to something new.
I’m undecided
-
Inappropriate?Hi,
I forgot some markup above. And no, the naming wasn't the problem.
h5. {toggle-cloak:id=idALL|exclusive=true}Alle Dokumente
{cloak:id=idALL}
{children}
{cloak}
h5. {toggle-cloak:id=idCAT1|exclusive=true}{set-data:setCAT1}Ablaeufe{set-data}
{cloak:id=idCAT1}
{checklist:name=.| parent=@self | depth=1| label=ablaeufe}
{checklist}
{cloak}
h5. {toggle-cloak:id=idCAT2|exclusive=true}{set-data:setCAT2}Sonstiges{set-data}
{cloak:id=idCAT2}
{checklist:name=.| parent=@self | depth=1| label=sonstiges}
{checklist}
{cloak}
{repeating-data:rdCATEGORY|order=asc}
{hidden-data}
{text-data:txtCATEGORY|width=150px}{text-data}
{hidden-data}
{replace-and-render}
{replace-item:%CATEG%}{get-data:txtCATEGORY}{replace-item}
{replace-body}
{hide-if:action=edit}h5. {toggle-cloak:id=%CATEG%|exclusive=true}%CATEG%
{cloak:id=%CATEG%}
{checklist:name=.| parent=@self | depth=1| label=%CATEG%}
{checklist}
{cloak}{hide-if}
{replace-body}
{replace-and-render}
{repeating-data}
I created a page based on a live-template with the above markup in one space. Then i had another space where i used the same template except having a group-data surrounding the above markup.
If i now move the page into the other space (with the "group-data live-template") all the data seems to be inaccessible if i had added some items to the repeating-data field.
If i first deleted all entries of the repeating-data field and moved the page then it works.
Strange, isn't it. But it was reproducable here.
Christian -
Weird. It would be interesting to see the XML data stored for the scaffolding for each section. You can grab it by going manually to '/pages/scaffold/viewxml.action?pageId=XXX'. Maybe just email it to me rather than trying to squeeze it in here. -
Hi i just send you a mail to david dot peterson at customware dot net. I hope this is the correct mail address.
Loading Profile...



EMPLOYEE