#includeSection

Uploaded report templates and discussions about reports.

Moderators: sarawut_w, Moderators

#includeSection

Postby skarthik.687@gmail.com » Fri Mar 01, 2019 6:34 am

Hello,

Im using #includeSection('document','section') code.

Problem that im facing is that it works fine for calling some of the child template, but fails to call the other children templates.

Instead it prints out the #includeSection line, like a print statement.

The issue, the same template worked out perfectly fine for the older Version of MagicDraw(18.4) but doesnt work out for MagicDraw(19.0)

Is there any change in the code that is causing this issue?

Let me know.

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

Re: #includeSection

Postby sarawut_w » Mon Mar 04, 2019 1:12 am

Dear Karthik,

In MagicDraw 19.0, we improve many functionalities for #includeSection directive.
but fails to call the other children templates.

Could you clarify us this term? What are the children templates?
It would be the fastest way to make us on the same page, if you could share us your sample templates.

Best regards,
Sarawut W.
Support Engineer
sarawut_w
No Magic
No Magic
 
Posts: 329
Posts Rating:23
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Mon Mar 04, 2019 4:04 am

We have a mother template.

But we have defined this mother template to have the most generic portions of the report to be generated.

The single mother template is used to generate like 10 different reports.

So each report will have a child template instead and will be used to generate the specific report.

We call these child template into the parent template using #includeSection...

However the issue is that there are places where MagicDraw fails to recognize the child template and/or section being called in the child template.

Can you help me troubleshoot this issue?? I only see this issue happening from MD19.0, it works perfectly fine in 18.4.
skarthik.687@gmail.com
Forum Beginner
Forum Beginner
 
Posts: 25
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Mon Mar 04, 2019 9:27 pm

Hello,

Unfortunately, with our your information, we could not reproduce the issue.
So, please share us your template.

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

Re: #includeSection

Postby skarthik.687@gmail.com » Wed Mar 13, 2019 2:56 am

Hello,

I've uploaded the template files that im using.

I'm unable to use the header section due to some issues in header document or #includeSection code.

Please let me know if you can find the issue why the #includeSection code does not work in the header section.

PS: I tried using this template in 19.0 MD client and it did not work out for me. Hospira_Report_Template_v33 is the main template.

Regards,
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: 25
Posts Rating:1
Joined: Fri Sep 30, 2016 4:55 am

Re: #includeSection

Postby sarawut_w » Thu Mar 14, 2019 2:11 am

Hello,

Please accept our apology, we are sorry for your inconvenience.
This is our issue, we have already registered it in our internal bug tracking system.
It is going to be fixed as soon as possible.
We could provide you the patch file, what is your MagicDraw version? 19.0 GA or SP?

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

Re: #includeSection

Postby skarthik.687@gmail.com » Thu Mar 14, 2019 2:22 am

Hello,

Im using the 19.0 SP1 client right now.

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

Re: #includeSection

Postby sarawut_w » Sun Mar 17, 2019 7:12 pm

Hello Karthik,

This magicreport.jar would fix your issue.
magicreport.jar


Replace the existing one at:
Code: Select all
\plugins\com.nomagic.magicdraw.reportwizard\lib


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: 329
Posts Rating:23
Joined: Thu Jun 23, 2011 12:47 am

Re: #includeSection

Postby skarthik.687@gmail.com » Mon Mar 18, 2019 3:31 am

Hello,

The header section works fine now..

Can you check if everything is ok with $file.Create(templatefile,outputfile,importobject) method??

I have used this particular method in the attachment template file in zipped folder, but doesnt seem to create any output files..

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

Re: #includeSection

Postby sarawut_w » Mon Mar 18, 2019 6:56 pm

Hello,

This function is worked fine.
Could you point out which line in which template file that you face this problem?

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

Next

Return to Report Engine

Who is online

Users browsing this forum: No registered users and 0 guests

cron