Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

system date

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
629 Views, 5 Replies

system date

How do I change the systemdate printed in the advanced print view footer?

 

${system.printDate}

 

I want the date to correspond with the actual time.

 

Kind regards,

Jonas

5 REPLIES 5
Message 2 of 6
JohnCHill
in reply to: Anonymous

Hi Jonas,

 

When you create your Advanced Print View you need to insert the Header/Footer first. 

 

Click on the “Gear” in the Advanced Print View menu.  Use the drop down to choose Header Footer and then below highlight “Insert content here” and then choose what data you want between the Header and footer.  Once you save your Advanced Print View and print it from the record you will see the date and time at the bottom.

 

John



John Hill
Support Specialist
Product Support
Autodesk, Inc.
Message 3 of 6
Anonymous
in reply to: JohnCHill

Hi John,

 

that is what I did. However, the time is a few hours off. I need to change the "systemDate" somehow for it to be my current time zone.

 

 

Kind regards,

 

Jonas

Message 4 of 6
jpiggee
in reply to: Anonymous

Hi Jonas,

 

John asked me to have a look at this,

 

When in the advanced Print view open up the HTML editor and add this code.

 

This code will add the Header/Footer to the print view and modify the Time section to display the local time of the computer printing the item.

 

::start of code::

 

<div class="headerFooter">
<table class="headerFooter">
<thead>
<tr>
<td>
<div class="print_header">
<div id="print_header" class="itemDescriptorWrapper">
<div id="itemdetails " class="workspacerow">
<div class="itemdescriptor">
<h2>${workspace.metadata.headerFooter.imageHeader.value} ${workspace.metadata.itemDescriptor.itemDescriptor.value} <span style="color: red;">${workspace.metadata.itemDescriptor.itemDeleted.value}</span></h2>
<!--#if(${workspace.metadata.itemDescriptor.workingVersion.value} != "")--> <span class="open-change-indicator"> ${workspace.metadata.itemDescriptor.workingVersion.value} </span> <!--#end--></div>
<!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")--><hr /><!--#end--><!--#if(${workspace.metadata.lifecycle.lifecycle.value} == "")--><!--#if(${workspace.metadata.headerFooter.currentState.value} == "")--><hr /><!--#end--><!--#end--></div>
<!--#if(${workspace.metadata.headerFooter.currentState.value} != "")-->
<div id="itemdetails-state" class="workspacerow"><span class="rowtitle dysplayonly">${workspace.metadata.headerFooter.currentState.title}</span> <span class="rowtext nowrap">${workspace.metadata.headerFooter.currentState.value}</span> <!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")--> <!--#end--></div>
<!--#end--><!--#if(${workspace.metadata.lifecycle.workspaceType.value} == "6")--><!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")-->
<div id="itemdetails-lifecycle" class="workspacerow"><span class="rowtitle dysplayonly">${workspace.metadata.lifecycle.lifecycle.title}</span> <span class="rowtext nowrap dysplayonly">${workspace.metadata.lifecycle.lifecycle.value}</span> <span class="rowtitle dysplayonly">${workspace.metadata.lifecycle.revisionLabel.value}</span> <span class="rowtext nowrap dysplayonly"> ${workspace.metadata.lifecycle.lifecycle.value} ${workspace.metadata.lifecycle.versionNumber.value} - ${workspace.metadata.lifecycle.versionTimestamp.value} </span></div>
<!--#end--><!--#end--></div>
</div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>Insert content here...</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<div class="print_footer">
<table style="width: 100%;" border="0"><colgroup><col width="80%" /><col width="20%" /></colgroup>
<tbody>
<tr>
<td valign="top">
<script type="text/javascript">// <![CDATA[
var d = new Date()
document.write(d.getHours())
document.write(".")
document.write(d.getMinutes() + 1)
document.write(".")
document.write(d.getSeconds())
// ]]></script>
</td>
<td align="right">${workspace.metadata.headerFooter.imageFooter.value}</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tfoot>
</table>
</div>

 

::end of code::

 

print example.png

 

Joseph Piggee
Fusion 360 Administrator
TPI Composites
jpiggee@tpicomposites.com
Message 5 of 6
jpiggee
in reply to: jpiggee

Ekkk... Hold on, I'll clean it up and have something better in a few hours 🙂
Joseph Piggee
Fusion 360 Administrator
TPI Composites
jpiggee@tpicomposites.com
Message 6 of 6
jpiggee
in reply to: jpiggee

Now with Date and Time!  

**Note** Time is in 24hour clock format.

\

print example.png

/

/* Start of Code */

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>
<body>
<div class="headerFooter">
<table class="headerFooter">
<thead>
<tr>
<td>
<div class="print_header">
<div id="print_header" class="itemDescriptorWrapper">
<div id="itemdetails " class="workspacerow">
<div class="itemdescriptor">
<h2>${workspace.metadata.headerFooter.imageHeader.value}
${workspace.metadata.itemDescriptor.itemDescriptor.value} <span
style="color: red;">${workspace.metadata.itemDescriptor.itemDeleted.value}</span></h2>
<!--#if(${workspace.metadata.itemDescriptor.workingVersion.value} != "")-->
<span class="open-change-indicator">${workspace.metadata.itemDescriptor.workingVersion.value}
</span><!--#end--></div>
<!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")-->
<hr><!--#end--><!--#if(${workspace.metadata.lifecycle.lifecycle.value} == "")--><!--#if(${workspace.metadata.headerFooter.currentState.value} == "")-->
<hr><!--#end--><!--#end--> </div>
<!--#if(${workspace.metadata.headerFooter.currentState.value} != "")-->
<div id="itemdetails-state" class="workspacerow"><span
class="rowtitle dysplayonly">${workspace.metadata.headerFooter.currentState.title}</span>
<span class="rowtext nowrap">${workspace.metadata.headerFooter.currentState.value}</span>
<!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")--><!--#end--></div>
<!--#end--><!--#if(${workspace.metadata.lifecycle.workspaceType.value} == "6")--><!--#if(${workspace.metadata.lifecycle.lifecycle.value} != "")-->
<div id="itemdetails-lifecycle" class="workspacerow"><span
class="rowtitle dysplayonly">${workspace.metadata.lifecycle.lifecycle.title}</span>
<span class="rowtext nowrap dysplayonly">${workspace.metadata.lifecycle.lifecycle.value}</span>
<span class="rowtitle dysplayonly">${workspace.metadata.lifecycle.revisionLabel.value}</span>
<span class="rowtext nowrap dysplayonly">${workspace.metadata.lifecycle.lifecycle.value}
${workspace.metadata.lifecycle.versionNumber.value} -
${workspace.metadata.lifecycle.versionTimestamp.value} </span></div>
<!--#end--><!--#end--> </div>
</div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>Insert content here...</td>
</tr>
</tbody>
<tfoot><tr>
<td>
<div class="print_footer">
<table style="width: 100%;" border="0">
<colgroup><col width="80%"><col width="20%"></colgroup><tbody>
<tr>
<td style="vertical-align: top; width: 227px;">Printed
Date:<br>
<script type="text/javascript">
var d = new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write(weekday[d.getDay()] + " ")
document.write(d.getDate() + ". ")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getFullYear())
</script>
</td>
<td style="width: 227px;" valign="top">Printed
Time:<br>
<script type="text/javascript">
var d = new Date()
document.write(d.getHours())
document.write(".")
document.write(d.getMinutes() + 1)
document.write(".")
document.write(d.getSeconds())
</script>
</td>
<td align="right">${workspace.metadata.headerFooter.imageFooter.value}</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tfoot>
</table>
</div>
</body>
</html>

 

/* End of Code */

 

Joseph Piggee
Fusion 360 Administrator
TPI Composites
jpiggee@tpicomposites.com
Tags (1)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report