That's got it.<div><br></div><div>Thanks<br></div><div><br></div><div>JK</div><br><div class="gmail_quote">On 28 November 2012 15:42, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">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;font-family:"Calibri","sans-serif";color:#1f497d">My mistake, sorry, there was a typo. Try it now.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 28 November 2012 12:27<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: pageList control in xwd forms</span></p></div><p class="MsoNormal" style="margin-left:36.0pt"> </p><div><p class="MsoNormal" style="margin-left:36.0pt">
I have updated my Xerte svn, thus getting the latest wizard.swf etc.</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I then exported this to my xerte_runtime folder and ran Xerte from this folder.</p></div><div>
<p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Then I did "Pages / Create Template Project from Pages" to create a new pageTemplates project</p></div>
<div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">However what I am seeing with the pageList control is that whilst the default value is "" in the xml data the first page in the project still displays in the control, giving the impression that a valid selection has been made. So I am not sure why I am not seeing the empty control that you describe.</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><p class="MsoNormal" style="margin-left:36.0pt"> </p><div><p class="MsoNormal" style="margin-left:36.0pt">On 28 November 2012 10:40, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I add it as {label:’’, data:’’} so you’ll just get an empty control if nothing is set, I think that’s OK,</span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Julian Tenney</span></p>
<div><div><p class="MsoNormal" style="margin-left:36.0pt"><br><b>Sent:</b> 26 November 2012 16:43<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: pageList control in xwd forms</p></div></div>
</div></div><div><div><p class="MsoNormal" style="margin-left:72.0pt"> </p><p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">OK</span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:108.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 26 November 2012 16:43<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: pageList control in xwd forms</span></p></div><p class="MsoNormal" style="margin-left:108.0pt"> </p><div>
<p class="MsoNormal" style="margin-left:108.0pt">In all my uses of the pageList control I have set the default value to ""</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
However this then currently fails to match any of the data items in the list.</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">So if you could set the first item in the list to display with a user friendly message but to match to a data value of "" that would be great.</p>
</div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">So the automagically generated control data might be similar to </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> type="pageList" options="Please select a Page,First Page Name, Second Page Name" data=",PG123456,PG234678" etc.</p></div><div>
<p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">The first item phrase would need to be linked in some way to the language setup so that alternative phrasing was available in other languages.</p>
</div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:108.0pt">
Johnathan</p></div><div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div><p class="MsoNormal" style="margin-left:108.0pt"> </p><div><p class="MsoNormal" style="margin-left:108.0pt">On 26 November 2012 16:10, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div><div><p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Normally this would be handled by a default value. We could just make the first item on the list empty..?</span></p>
<p class="MsoNormal" style="margin-left:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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:144.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 26 November 2012 16:03<br><b>To:</b> Xerte Developers Discussion List<br><b>Subject:</b> [Xerte-dev] pageList control in xwd forms</span></p></div><div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p>
<div><p class="MsoNormal" style="margin-left:144.0pt">Having completed some further testing of the new Connector xwds and models in my XOT test site I ran into the issue of either failing to make a selection from a pageList control or trying to select the first page in the project.</p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">The problem is that the pageList control lists all the pages in the project so its default display is the first page in the project. So it looks like a selection has been made yet the default data behind the control is ""</p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt">If you want to select the first page you have to select one of the other pages first, which sets a linkID as the data value. Then when you then select the first page the current data value is overwritten with the linkID of the first page..</p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">To make it clear that a page has not been selected would it be feasible to make the first item on the list some text with a known data value. e.g, </p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">"Please select a page" data=""</p></div><div><p class="MsoNormal" style="margin-left:144.0pt">
</p></div><div><p class="MsoNormal" style="margin-left:144.0pt">If the data value needs to be populated e.g. "Please select a page" data="noSelection" then I can update all the default values for the pageList entry in all the xwds :-(</p>
</div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:144.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:144.0pt">
Johnathan</p></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.0pt"> </p></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.0pt"><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></p>
</div><p class="MsoNormal" style="margin-left:108.0pt"> </p></div></div></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><br><br></p></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<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></p>
</div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div>
<br><br>
<br></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">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></blockquote></div><br>