<div>Hello Tom,<br></div><div><br></div><div>Your process for building the template.xwd file worked well and the error flagging helped to identify a number of minor issues in a few of the xwd files that would have affected their performance.</div>
<div><br></div><div>There is one possible issue that I found that the error trapping did not detect, and it caused me a lot of frustration and lost time, followed by a brief period of pain when I kicked myself once I had discovered the cause of the problem :-)</div>
<div><br></div><div>I built the template.xwd file and then tested my new connector pages in XOT. All seven pages worked in Xerte, but now four of the pages failed to display anything other than the page title in XOT. I took the files back to a pageTemplates project and the same four failed to display there as well. They would not even output debug messages.</div>
<div><br></div><div>The cause of the problem?</div><div><br></div><div>In Xerte the link between the xwd file and the rlm file is made based on the file name, the link between the data created by the xwd form and the page model loaded by the rlm file is made by the node name in the xml data. So in Xerte the following will work</div>
<div><br></div><div>connectorMenu.xwd with a node cMenu</div><div>connectorMenu.rlm referencing pageIcon.templateData.cMenu[0]</div><div><br></div><div>however this will fail in pageTemplates and XOT as all the xwd files are gathered together in one template.xwd file, so the link to the relevant model file is made with the node name. The entry in template.xwd for the connectorMenu uses cMenu as the node name so XOT goes looking for cMenu.rlm and since it does not exist the page fails to work.</div>
<div><br></div><div>This may be obvious to someone used to the XOT way of doing things, but it is far less obvious if you develop in Xerte. For anyone making the mistake I made it can be difficult to identify the problem. So if there is any possibility of building a check for this into your checking routines it might be worth doing.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><div><br></div><div class="gmail_quote">On 13 March 2012 11:18, Kemp Johnathan <span dir="ltr"><<a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Tom,<br></div><div><br></div><div>I have got that working.</div><div><br></div><div>Kind regards</div><div>
<br></div><font color="#888888"><div>Johnathan</div></font><div><div class="h5"><br><div class="gmail_quote">On 12 March 2012 19:52, Tom Reijnders <span dir="ltr"><<a href="mailto:reijnders@tor.nl" target="_blank">reijnders@tor.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Jonathan,<br>
<br>
I'll have a look at the non-scrolling window.<br>
<br>
In the meantime:<br>
<br>
1. Depending on your OS, start a cmd as administrator (Vista +) or a
normal cmd<br>
2. go to the Xerte folder<br>
3. You can use the following command (this is what xerte calls):<br>
php\php.exe scripts\rebuildtemplate.php "path to xwd folder" >
convert.log<br>
<br>
Replace "path to xwd folder"with the folder name where your xwds
reside.<br>
<br>
The convert.log file will contain the feedback, and you can check
that file with a text editor.<br>
<br>
Regards,<br>
<br>
Tom<br>
<br>
Op 12-3-2012 11:48, Kemp Johnathan schreef:
<blockquote type="cite"><div><div>
<div>I guess this is a question for Tom, unless anyone else has
taken over the work on this.<br>
</div>
<div><br>
</div>
<div>When I last tested the php file that builds the template.xwd
file it generated an output report based on all the xwd files in
the folder it was processing. This report was output into a
non-scrollable window and the text output exceeded the display
space available. As a result any details of errors that took
place once the text had gone beyond the display area of the
window was unavailable.</div>
<div><br>
</div>
<div>I will have a new set of xwds ready by the end of this week.
Is there any possibility of the php file being modified so that
I can process all of the files in one batch to verify that they
will generate a valid template.xwd file?</div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Johnathan</div>
<br>
</div></div><p>
This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have
received this message in error, please send it back to me, and
immediately delete it. Please do not use, copy or disclose the
information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham.
</p>
<p>
This message has been checked for viruses but the contents of an
attachment
may still contain software viruses which could damage your
computer system:
you are advised to perform your own checks. Email communications
with the
University of Nottingham may be monitored as permitted by UK
legislation.
</p>
<br>
<br>
<pre>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
</pre>
</blockquote>
<br>
<pre cols="72">--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
</pre>
</div>
<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>