#includeSection

Uploaded report templates and discussions about reports.

Moderators: sarawut_w, Moderators

Re: #includeSection

Postby skarthik.687@gmail.com » Tue Mar 19, 2019 2:04 am

Can you look into the file "Hospira_Attachments_Exporter"?

Check for the fileCreate method. It is expected to create excel documents from the specified path.

But apparently it doesnt seem to work now.

Let me know why the file cannot be created and what must be done in order to create it.

- Karthik
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Tue Mar 19, 2019 6:24 pm

Hello,

Does this issue immediately occur after you apply the new jar file?
We tried to reproduce by using our sample project with your templates.
Unfortunately, we still could not reproduce the issue.
Could you please give us the project and log files?

Best regards,
Sarawut
sarawut_w
No Magic
No Magic
 
Posts: 346
Posts Rating:24
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Wed Mar 20, 2019 5:12 am

Hello,

Yes this was working before the patch was applied.

I dont think i can share you the project, but can you tell me how to collect the logs?

- Karthik
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Wed Mar 20, 2019 8:19 pm

Hello,

Go to Help>About menu.
Then, click Environment tab.
Click the link after "Configuration Files".
magicdraw.log is there.

Best regards,
Sarawut
sarawut_w
No Magic
No Magic
 
Posts: 346
Posts Rating:24
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Thu Mar 21, 2019 1:58 am

Hello,

Please find the attached log.

- Karthik
You do not have the required permissions to view the files attached to this post.
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Thu Mar 21, 2019 8:07 pm

Hello,

We need more information in the log file.
So, please replace the magicreport.jar with this new one.
magicreport.jar


Then, delete content in the log file, try to reproduce the issue, and send the log to us again.

Best regards,
Sarawut
You do not have the required permissions to view the files attached to this post.
sarawut_w
No Magic
No Magic
 
Posts: 346
Posts Rating:24
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Fri Mar 22, 2019 6:52 am

Hello,

Think i went through the log and found the section name was not recognized, because it was not defined as "sectionBegin('s')".

Can you confirm this is not the equivalent of "sectionBegin(s)", please note that s is not having single quotes here.

- Karthik
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby skarthik.687@gmail.com » Fri Mar 22, 2019 7:22 am

Hello,

I found something from the log just now. I dont think i have the listing for all the template files in the log that got generated.

A couple of my template files were not listed in the log shown below.

Naturally that portion of the report did not generate properly.

For example i did not get the file called "HospiraDoc_Template_Needs_Table" in the log. Any idea why it did not get listed or fail to recognize as a part of the template?

Let me know..

Code: Select all
2019-03-22 18:35:07,348 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Generating Trace Matrix - Alter Build...
2019-03-22 18:35:07,348 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Creating Report Context...
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - File not found in location: C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from relative
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (2): C:\MD 19\VM_global_library.vm
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from custom class
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from url (1)
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from file:/
2019-03-22 18:35:08,059 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from url (2)
2019-03-22 18:35:08,095 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,095 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Header.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,330 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,330 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\Hospira_Attachments_Exporter.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,352 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,352 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\Hospira_Macros3.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,462 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,462 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Element_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,480 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,480 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Generic_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,579 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,580 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Paragraph.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,599 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,599 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Print_Diagram.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,621 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,621 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Requirements_Package.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,696 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,697 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Requirements_Package_With_Hospira_Product.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,784 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,784 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Manufacturing_Requirements.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,821 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,821 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_PUC_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,853 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,853 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_SysML_Block_Diagram_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,863 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,863 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_DUC_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:08,898 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Find template from locations
2019-03-22 18:35:08,898 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Element_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-22 18:35:09,729 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Report has been generate successfully to C:\New Work Related\MD Update results\MD 19 results\Needs\DFM Needs.docx
2019-03-22 18:35:09,729 [pool-MagicDraw-thread-21:Generating Report] INFO  REPORTS - Total consumed time for Trace Matrix - Alter Build : 2381 ms
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Mon Mar 25, 2019 1:32 am

Hello,

Can you confirm this is not the equivalent of "sectionBegin(s)", please note that s is not having single quotes here.

If you declare the section name in #sectionBegin with the single quote, you need to make it to be conformance on #includeSection
Code: Select all
#includeSection("child.docx", SectionA)  ---> will find #sectionBegin(SectionA) in child.docx
#includeSection("child.docx", 'SectionA')  ---> will find #sectionBegin('SectionA') in child.docx
#includeSection("child.docx", "SectionA")  ---> will find #sectionBegin("SectionA") in child.docx

This is going to be fixed in later version by ignoring the quote style.

I found something from the log just now. I dont think i have the listing for all the template files in the log that got generated.

Was the report file generated?
Please send the log file.

Best regards,
Sarawut
sarawut_w
No Magic
No Magic
 
Posts: 346
Posts Rating:24
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Mon Mar 25, 2019 3:28 am

ALM Needs.docx
Hello,

I generated an incomplete report because MD did not recognize some of the template files in the folder.

One such unrecognized template is "HospiraDoc_Template_Needs_Table".

The Log for the generated report is shown in the code section below.

Log
Code: Select all
2019-03-25 14:36:39,216 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Generating Trace Matrix - Alter Build...
2019-03-25 14:36:39,216 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Creating Report Context...
2019-03-25 14:36:39,711 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:39,711 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - File not found in location: C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:39,711 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from relative
2019-03-25 14:36:39,712 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (2): C:\MD 19\VM_global_library.vm
2019-03-25 14:36:39,712 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from custom class
2019-03-25 14:36:39,712 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from url (1)
2019-03-25 14:36:39,712 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from file:/
2019-03-25 14:36:39,712 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from url (2)
2019-03-25 14:36:39,871 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:39,871 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Header.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:39,990 [pool-MagicDraw-thread-4:Generating Report] WARN  GENERAL - Metaclass property has no type. Property: '[com, nomagic, magicdraw, dsl, BlockBlockClass, usedAsType]'. Property type is set to Element.
2019-03-25 14:36:40,761 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:40,761 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\Hospira_Attachments_Exporter.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:40,794 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:40,794 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\Hospira_Macros3.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:40,949 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:40,950 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Element_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:40,971 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:40,971 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Generic_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,003 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,003 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Paragraph.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,019 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,019 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Print_Diagram.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,048 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,048 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Requirements_Package.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,138 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,138 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Requirements_Package_With_Hospira_Product.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,249 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,250 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Manufacturing_Requirements.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,300 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,301 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_PUC_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,341 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,341 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_SysML_Block_Diagram_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,353 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,353 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_DUC_Template.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:41,390 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Find template from locations
2019-03-25 14:36:41,390 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Found template (1): C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build\HospiraDoc_Template_Element_Table.docx in location C:\Users\60009423\AppData\Local\.magicdraw\19.0\data\reports\Trace Matrix - Alter Build
2019-03-25 14:36:42,434 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Report has been generate successfully to C:\New Work Related\MD Update results\MD 19 results\Needs\ALM Needs.docx
2019-03-25 14:36:42,434 [pool-MagicDraw-thread-4:Generating Report] INFO  REPORTS - Total consumed time for Trace Matrix - Alter Build : 3218 ms


Enclosing log file and the generated output for your reference.

- Karthik
You do not have the required permissions to view the files attached to this post.
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 33
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

PreviousNext

Return to Report Engine

Who is online

Users browsing this forum: No registered users and 0 guests