Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Transaction Patterns » _cm_outputMulti() - "parent-child-grandchild"
_cm_outputMulti() - "parent-child-grandchild" [message #7851] Thu, 27 June 2024 04:26 Go to next message
htManager is currently offline  htManager
Messages: 419
Registered: May 2014
Senior Member
Hi Tony,
I want to generate a report with n child/grandchild occurences on one page.

Like this:

parent
 |
child
  - grandchild
  - grandchild
  - ...
child
  - grandchild
  - grandchild
  - ....

I generated such a report with child/grandchild records on their own page. The report has with e.g. 25 child occurences now 25 pages... To build a report where these 25 child occurences are on one page is my problem.

How can I do this? Is there a location where I can call _cm_outputMulti() n times? I have the child occurences in multi1 and the grandchild occurences in multi2. I hope you understand what I mean. I have attached the report with the child occurences on their own page.
Re: _cm_outputMulti() - "parent-child-grandchild" [message #7852 is a reply to message #7851] Sun, 30 June 2024 06:57 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2352
Registered: April 2006
Location: Surrey, UK
Senior Member
If you look at the PDF documentation you will see a change I made in May 2019 which allows multiple iterations through the _cm_output_Multi() method. This means using the _cm_output_Iterations() method to create an array of primary keys in the $iterations variable. The _cm_output_multi() method will be called separately for each entry in the $iterations array.

I have produced a test set which reads MNU_PATTERN -> MNU_TASK -> MNU_NAV_BUTTON. All the scripts and sample PDF output are in the attached zip file.


Re: _cm_outputMulti() - "parent-child-grandchild" [message #7853 is a reply to message #7852] Tue, 02 July 2024 10:56 Go to previous messageGo to next message
htManager is currently offline  htManager
Messages: 419
Registered: May 2014
Senior Member
Thank you very much for the sample files. As I see, I had problems with generating the correct $iteration array in _cm_output_iterations(). Now it works fine, just as I wanted.
Re: _cm_outputMulti() - "parent-child-grandchild" [message #7854 is a reply to message #7853] Wed, 03 July 2024 04:17 Go to previous message
AJM is currently offline  AJM
Messages: 2352
Registered: April 2006
Location: Surrey, UK
Senior Member
Glad I could help.

Previous Topic: Tree structure with more than one table
Next Topic: Introduction to Transaction Patterns within Radicore
Goto Forum:
  


Current Time: Sat Jul 13 10:14:07 EDT 2024

Total time taken to generate the page: 0.01035 seconds