So the goal is to product a A4 style Supplier Purchase Order, or Email or CSV output but starting at the A4 report. Below is a report which I can get almost right with a bit more tinkering.
In general, Ticket Templates only work for Tickets, or in the case of a LoadedEntity, they can be used to produce output for that Entity such as Entity Details (custom data fields) and associated Account Details (balance, transactions, etc).
Note the keyword is Loaded, which in the Account Statement Tutorial is performed by a Load Entity Action. This is why the Print Entity Action works.
So in most cases, Report Templates are the only way to go.
No one really know for sure LOL … just experimentation.
For the first part of your Report, if you give it a header, you can define the columns so that it doesn’t center the Company data - instead it aligns left or right.
Yes that what I was afraid of, but at least you have confirmed my observations!
Yes, I tried this but you get the inverse video and box table. I was trying to format the address so it would fit into a window faced envelope or sent to a PDF.
The only tool we seem to have is good old faithful "\r"
PS:
I thought the Print Entity Action allows a Entity Name parameter? So if all else failed using Reports I reluctantly was going to use a template - pass the widget value (Entity Name) to the Print Action, I thought there would be no need to Load Entity?
Tons of formatting options with reports. What kind are you looking for? Btw my internet is down until Friday so I can’t post from my computer means I can’t really test anything for you.
I just cannot find your latest summary posted not so long ago! Have been looking and looking!
Questions:
The 1st Colon position after the {2} place holder is used for what and how?
The 3rd Colon position after the {2} place holder is used for what and how?
I understand the 2nd colon can be used for addition expressions like $2 > 0 (never have got this to work but have seen it).
This is not a syntax Witch hunt - I am trying to see if any of the above formats might help Left Justify the Supplier Address and also if I can put them to use anywhere else?
Many Thanks…
PS:The Linked post has a image a few posts above which explains my questions.
Except some Report Tags have different valid sections, but @emre has made an attempt to “normalize” them all. I’m not certain this holds true for all Report Tags or not.
The example you might be referring to that I recently posted about was REPORT SQL DETAILS …
{REPORT SQL DETAILS
:<handler or sql>
;<parameters,1,2> -- yes there is a leading semi-colon here
:<fields>
:<TagExpressions>
:<Col/LineFormat>
the rest probably can be used as wel...
:<RowFormat>
:<Expression>
:<delmiter>
}
@emre has stated in the past that it is not necessary to “placehold” all sections if you want to specify the last section for delimiter, which is probably why this works:
{REPORT SQL DETAILS
:SELECT DISTINCT [GroupCode] FROM [MenuItems] ORDER BY [GroupCode]
:F.GroupCode
:<TagExpression> left empty
:{0},}
Brilliant thanks, book marked and straight to the “pool room” with that - (Aussie term for trophy cabinet). Yes have only seem the last :Expresson working once. Not sure if you use the :(EN=$1) whether it negates the second one?