Hi William -
Just to save you some time...you cannot map properties to HTML ala XML. (I asked the same question)
I'm not positive, but, I think InFlow is using an add-in to accomplish what you see in the video).
I would suggest you contact InFlow directly.
Glad that Joy replied to you. I thought that you couldn't map attributes to HTML files but wasn't certain. For our ECOs I'm using XML along with an XSL stylesheet so that the preview looks like an HTML file. I even created links to view the files listed in the ECO (that's why I'm storing the fileid & folderid). The technique is pretty straightforward.
For example my ECO xml file contains this:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='C:\VAULT\TEMPLATES\eco.xsl'?>
<File FileId="207021" FolderId="3866" Filename="AW010001.DWG" />
<File FileId="207025" FolderId="3866" Filename="AW010002.DWG" />
The eco.xsl file which is in the TEMPLATES folder conatins this:
<?xml version='1.0' encoding="UTF-8"?>
<H1>Engineering Change Order</H1>
<TABLE cellspacing="0" cellpadding="2" width="300">
<TD Colspan="2"><b>ECO Number: </b> <xsl:value-of select="@Number"/></TD>
<TD><b>Requestor: </b> <xsl:value-of select="Author"/></TD>
<TD><b>Date: </b> <xsl:value-of select="Created"/></TD>
<TD Colspan="2"><b>Affected Drawings:</b></TD>
<xsl:apply-templates select="Filelist" />
<A><xsl:attribute name="href">conisio://VAULT/view?projectid=<xsl:value-of select="@FolderId"/>&documentid=<xsl:value-of select="@FileId"/>&objecttype=1</xsl:attribute>
The preview shows the following:
EPDM 2010 SP2
Thanks for the workaround. I can live with this, since the xml output brings the same information as the html would do.
I will try to contact inflow as well and will post the results here.
Thanks for the tip. I mapped the variables to the XML block and Attribute name of "Eco/@[variable name]" and got them to update both ways (I could change the data card and the xml file would change, or i could change the xml file and the data card would change). I might try switching some of my forms over to xml from word now. Thanks for sharing your code!
I know this is rather old, but this is exactly what I am trying to do! Any updates on if this is possible?
No, you can't update variables in an html file. You can map to an xml file as shown above, then use a xsl stylesheet file to transform it into an html file.
Wow thanks for the quick reply! You can see my other thread for specifically what I am attempting to do.
So this would work in the following manner:
1. Use a template card to create a new xml file based on a template xml file. This template card will have a text box that is attached to, say, variable "ECN_Description". The template will convert this to a template variable "t_ECN_Description"
2. In the XML file we'll have, say, the following:
I would have the variable "ECN_Description" mapped to the block "xml" and the attribute "ECN/Description".
3. When the template card is submitted with the data "XYZ" entered in the text field, it autopopulates %t_ECN_Description% to "XYZ". The variable "ECN_Description" that is mapped to that element also receives the value "XYZ".
4. A text field in the data card is tied to the variable "ECN_Description" which populates the text field in the data card with "XYZ". The entered information is now populated in both the XML and data card, and any future changes to the data card will result in a change of the value in the XML file.
The XSL file would just format the XML file to look like an html file, but would retain its xml file extension, correct?
Is this correct or am I missing something here? I haven't done much with either XML or variable mapping in the past so I want to make sure I'm getting this right.
EDIT: I did this and got it to work wonderfully! Now I just need to make the XSL file to format it and add in all of the other data. Thanks so much!
You're welcome. If you want more information on working with XML files, Joy Garon from SolidWorks gave a presentation at SolidWorks World this year. You can view it by going to this link, http://www.solidworks.com/sww/proceedings/proceedings-presentations.htm, and search for XML.