This maybe is just one of those things that can’t be solved, but I was wondering if anyone can give me some tips on how I could achieve what I am looking for…
Consider the following template (with many bits removed)
[LAYOUT]
<C>Dive shop
{ORDERS}
<C>Thanks, bye.
[ORDERS]
<L>{PRODUCT NAME} ={ORDER ID} with {REPORT ORDER DETAILS:OT.Equipment:O.Id={ORDER ID}}
{ORDER TAGS}
[ORDER TAGS]
<L> * {ORDER TAG NAME} ={ORDER ID} ({REPORT ORDER DETAILS:OT.Equipment:O.Id={ORDER ID}})
The output from this that I am expecting is:
I know the repeating of just one order tag seems weird, this is not ultimately what I am going for, but I to achieve my end goal, I at least need this to work first
Dive shop
Playa del Carmen =123 with full
* Extra tank =123 (full)
* Small fins =123 (full)
* Wants to see shark =123 (full)
Thanks, bye
However what I actually see is:
Dive shop
Playa del Carmen =123 with full
* Extra tank =123 ()
* Small fins =123 ()
* Wants to see shark =123 ()
Thanks, bye
So as you can see the report tag works correctly in the [ORDERS] section, but not in the [ORDER TAGS] section (even though the {ORDER ID} tag does work correctly here). Interestingly if I hard code an order ID in to the REPORT tag then it does return the expected data. So I am wondering if the problem is just the way in which the {ORDER ID} tag is parsed inside the {REPORT} tag inside the {ORDER TAGS} inside the {ORDERS} (there are a lot of “insides” there and I am wondering if that could be the issue?
