Hello Guys,
In my DDSP sometime I have a section, and sometime I dont, and its creating conversion error in my template, is there any way to use IF TE to hide that section while it’s not present in my ddsp? attached exemple:
TPGSPostInspectionTaskSummary_With_Travel_Section.ddsp
TPGSPostInspectionTaskSummary_Witho
TPGSPostInspectionTaskSummary.docx (224.2 KB)
TPGSPostInspectionTaskSummary_With_Travel_Section.ddsp (414.5 KB)
TPGSPostInspectionTaskSummaryWithout_Travel_Section.ddsp (395.9 KB)
ut_Travel_Section.ddsp
Travel table:
in the fisrt ddsp, i dont have this section (MSM_TaskTransKm) so I need to hide the whole table, but the second ddsp i do have, in this cas I need the table.
Hello Momo,
I modified your template by hiding the “Travelling” section using the if() tagging element for the MSM_TaskTransKm element count:
count(/ReportData/MSM_TaskTable/MSM_SvcCallTable/MSM_TaskTransHours/MSM_TaskTransKm) > 0
This works with the two supplied DDSP examples, but please also test it with other cases in your environment.
I hope this solves your problem.
Best regards,
Gregor
TPGSPostInspectionTaskSummary_modified.docx (223.6 KB)
1 Like