Hi Nenad, thanks for your reply. It seems I’m missing the label tagging. However, I tried adding it to the report but seems still not working. I’m still checking further what I may have missed.
Could you add two new field tagging elements to the template?
One should be bound to “SalesInvoiceHeader/ExcludeInRebateCalculation” and the other to “SalesInvoiceHeader/LineDiscount.”
After that, please check for any errors in the field tagging elements and let me know what values are returned. I noticed that the ‘@’ symbol is missing in the data field values, so it should be:
Hi @AmirO template is still not working. The “Discount” is still displayed even if there should be no values. If the conditions are not met, the word “Discount” should not also be shown in the report. I also tried writing it inside a table but still not working. Any suggestion is appreciated. I can’t share the report because of privacy restrictions.
Hi Amir,
Apologies, there are no warnings when I loaded my DDSP file. In the same word file, I just loaded my DDSP file then no logs.
I could be missing something very simple but for some unknown reason, the supposed to be header still shows even if it do not fit the condition.
Apologies for the rant, this is a bit of pain.
I didn’t analyze your previous XPath expression, but from what I see in the latest one, the second part of the expression is incorrect. It should be SalesInvoiceHeader/@LineDiscount != ''.
You’ve been very helpful. Thanks for putting up with me and please be patient as I just started working with Docentric. You guys might receive more inquiries from me in the next days.
No problem, happy to help! If you have more questions, feel free to ask.
Since it was hard to find the issue without the data source, in cases like this, it would be best if you could provide us with the template and DDSP file over support email. This will help both of us find and resolve the issue faster and more efficiently, but no matter what, we’ll do our best to assist you!