<div>I have been following the discussion thread re the svn, sorry there is nothing I can do to help.<br></div><div><br></div><div>I appreciate that has to be your priority. </div><div><br></div><div>As I have said in other posts - I can wait :-)</div>
<div><br></div><div>I will continue finishing off my work on the scenario Page Wizard and some documentation to support it. I expect that once we can arrive at a working solution for locating page indexes that is compatible with both desktop and pageTemplate / toolkits environments it will be a simple process for me to modify the routed page rlm files to accommodate the changes.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 20 October 2011 10:01, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Keep figuring this out, but I’m parking it for the time being until we get to a working SVN.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 19 October 2011 15:00<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Re: Implementing routed pages in a pageTemplates / toolkits environment</span></p></div><div><div class="h5"><p class="MsoNormal" style="margin-left:36.0pt">
</p><div><p class="MsoNormal" style="margin-left:36.0pt">Tom has the right idea of the problem I was trying to point out.</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
If it is preferred that this type of question be posted to the dev list then I have no problem with that. I guess I was thinking of the dev list as related to the languaging and modularisation work. Julian due you have a preference for where this discussion continues?</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I think that from Tom's reply he has grasped the issue.</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Essentially I need to have</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">1. A field in the xwd form for a page into which a user can enter a unique identifier.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt">2. A way of populating the name property of the page icon with the unique identifier entered into the xwd so that I can use the getChildByName method to obtain the page index so that I can navigate to it.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Currently most xwd forms have a name field, but this is used in pageTemplates to provide the Page Title. So I wouldn't use the name field in the xwd, this will also avoid compromising any backward compatibility issues.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I propose adding an optional pageID field to an xwd form and invite the page author to enter a unique value for the page. </p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">The show stopper is that currently there is no setPageName() method for the page icon that would let me populate the page Icon's name property with the value entered into the xwd form. Thus I have no way of using the xwd entered pageID value to derive the index of a page. </p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">In the Page Wizard environment the problem is overcome by not using a property entered in an xwd, but by setting the page Icon's name property manually in the property page for the icon.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">In a pageTemplates environment the Page Author does not have access to the page Icon's property page and so cannot set the page name property manually, so an xwd driven solution is needed.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
Johnathan</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
</p></div><p class="MsoNormal" style="margin-left:36.0pt"> </p><div><p class="MsoNormal" style="margin-left:36.0pt">On 19 October 2011 12:57, Tom Reijnders <<a href="mailto:reijnders@tor.nl" target="_blank">reijnders@tor.nl</a>> wrote:</p>
<div><p class="MsoNormal" style="margin-left:36.0pt">I think that the main issue Jonathan is referring to has nothing to do with Wizards/Page templates, but with the fact that you can't get to the name of an icon (or set it) in templates from the, ehmmm, wizard... (the xwd editor). If we can fix that, Jonathan can make his 'wizards' work in templates. That would be cool. <br>
<br>Jonathan? Did I understand the issue correctly? By the way, I think this discussion is more appropriate on the dev list.<br><br>Op 19-10-2011 12:40, Julian Tenney schreef: </p><div><div><div><p class="MsoNormal" style="margin-left:36.0pt">
<span style="font-size:11.0pt;color:#1F497D">I’m not so familiar with the page wizards side of things, but I see what you mean.</span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;color:#1F497D">From a templates side of things, would it work if you used the name, and asked people to keep them unique? What you then say is that because wizards don’t have a name property, then for the author there’s messing about to do between the wizard and the icon properties? </span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;color:#1F497D"><br>From my point of view, templates trump wizards as there are many more users of templates.</span></p><p class="MsoNormal" style="margin-left:36.0pt">
<span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;color:#1F497D">There is an id generated somewhere, but it’s not user friendly if they had to type it in.</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;border-color:-moz-use-text-color -moz-use-text-color">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 19 October 2011 09:05<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Implementing routed pages in a pageTemplates / toolkits environment</span></p></div><p class="MsoNormal" style="margin-left:72.0pt">
</p><div><p class="MsoNormal" style="margin-left:72.0pt"> I am currently working on the scenario page that I demonstrated at the recent Xerte Dev and I would like to be able to get this working in a pageTemplates environment, but the way routed pages currently operate will not transfer directly to a pageTemplates environment. </p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">What is required:</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">A value that the page author can set as a unique identifier for a page. This value will then be entered into the "destination" field of another page so that the second page can send the user to the first page when a condition is met. This value needs to be set from an xwd form.</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Solution in Page Wizards:</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Use the page icon's "Name" property. ( not ideal as this is not accessible from the xwd form)</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt">When a page's destination field in an xwd form is populated with the name of a page navigation to that page is achieved by</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
1. use getChildByName to obtain the pages xml</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">2. obtain the pages index by using .index() method of the xml</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
3. use gotoPage(page's index) to navigate to the page</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">(the above is a little simplified but contains the key elements).</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">This method has a couple of problems</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">1. In Page Wizards the page's details are set up in the xwd form, but you have to remember to set the page "name" (and "title" for display purposes) in the page Icon's property page. Ideally there would be a way to pass the "name" value from the xwd form to the property page of the icon.</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">2. In Page Templates there is no way (that I know of) for the page author to access the "name" field of the page icon and hence no way to set up a unique identifier for the page that can later be used to access the pages index in either a framework or the interface.</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">3. In Page Templates the xwd form's "name" field is used to set the Page Title display. This compromises the use of the name field in the xwd for use as a destination as titles tend to be verbose and contain spaces and may not be unique, whilst an identifier field would ideally be concise and free of spaces. This could be solved by adding an optional identifier field to an xwd form but there still would need to be a way of using this to populate the page Icon's name field. </p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Is there an approach I can use that I am unfamiliar with or is this an opportunity for a new method to be added to the Xerte engine, e.g. a setPageName() method? </p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">I note that rootIcon has a setPageTitle method but this does not appear to change the underlying page property, i.e. </p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt">if I create a page</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">set the page icon's title property to "eric"</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
run a script on the page with rootIcon.setPageTitle("fred"); </p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">then when I preview the page</p>
</div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">The preview displays the page title as "fred", </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
The page Icon's property page continues to show the title as "eric"</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div>
<p class="MsoNormal" style="margin-left:72.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt">Johnathan</p></div><div><p class="MsoNormal" style="margin-left:72.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p></div></div><p class="MsoNormal" style="margin-left:36.0pt"> </p><p style="margin-left:36.0pt">
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 style="margin-left:36.0pt">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>
</div></div><pre style="margin-left:36.0pt">_______________________________________________</pre><pre style="margin-left:36.0pt">Xerte mailing list</pre><pre style="margin-left:36.0pt"><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a></pre>
<pre style="margin-left:36.0pt"><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></pre><div><pre style="margin-left:36.0pt"> </pre><pre style="margin-left:36.0pt">
</pre><pre style="margin-left:36.0pt">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.</pre>
<pre style="margin-left:36.0pt"> </pre><pre style="margin-left:36.0pt">This message has been checked for viruses but the contents of an attachment</pre><pre style="margin-left:36.0pt">may still contain software viruses which could damage your computer system:</pre>
<pre style="margin-left:36.0pt">you are advised to perform your own checks. Email communications with the</pre><pre style="margin-left:36.0pt">University of Nottingham may be monitored as permitted by UK legislation.</pre>
<pre style="margin-left:36.0pt"> </pre><pre style="margin-left:36.0pt"> </pre></div><p class="MsoNormal" style="margin-left:36.0pt"><br><br></p><pre style="margin-left:36.0pt">-- </pre><pre style="margin-left:36.0pt">--</pre>
<pre style="margin-left:36.0pt"> </pre><pre style="margin-left:36.0pt">Tom Reijnders</pre><pre style="margin-left:36.0pt">TOR Informatica</pre><pre style="margin-left:36.0pt">Chopinlaan 27</pre><pre style="margin-left:36.0pt">
5242HM Rosmalen</pre><pre style="margin-left:36.0pt">Tel: 073 5226191</pre><pre style="margin-left:36.0pt">Fax: 073 5226196</pre><pre style="margin-left:36.0pt"> </pre></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</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></p></div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div></div></div></div><br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</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>