[Xerte-dev] Re: pageList control in xwd forms
Kemp Johnathan
johnathan.kemp at ntlworld.com
Wed Nov 28 16:03:24 GMT 2012
That's got it.
Thanks
JK
On 28 November 2012 15:42, Julian Tenney <Julian.Tenney at nottingham.ac.uk>wrote:
> My mistake, sorry, there was a typo. Try it now.
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 28 November 2012 12:27
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: pageList control in xwd forms
>
>
>
> I have updated my Xerte svn, thus getting the latest wizard.swf etc.
>
> I then exported this to my xerte_runtime folder and ran Xerte from this
> folder.
>
>
>
> Then I did "Pages / Create Template Project from Pages" to create a new
> pageTemplates project
>
>
>
> 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.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
> On 28 November 2012 10:40, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> wrote:
>
> I add it as {label:’’, data:’’} so you’ll just get an empty control if
> nothing is set, I think that’s OK,
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Julian Tenney
>
>
> *Sent:* 26 November 2012 16:43
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: pageList control in xwd forms
>
>
>
> OK
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [
> mailto:xerte-dev-bounces at lists.nottingham.ac.uk<xerte-dev-bounces at lists.nottingham.ac.uk>]
> *On Behalf Of *Kemp Johnathan
> *Sent:* 26 November 2012 16:43
> *To:* For Xerte technical developers
> *Subject:* [Xerte-dev] Re: pageList control in xwd forms
>
>
>
> In all my uses of the pageList control I have set the default value to ""
>
>
>
> However this then currently fails to match any of the data items in the
> list.
>
>
>
> 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.
>
>
>
> So the automagically generated control data might be similar to
>
>
>
> type="pageList" options="Please select a Page,First Page Name, Second
> Page Name" data=",PG123456,PG234678" etc.
>
>
>
> 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.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
>
>
> On 26 November 2012 16:10, Julian Tenney <Julian.Tenney at nottingham.ac.uk>
> wrote:
>
> Normally this would be handled by a default value. We could just make the
> first item on the list empty..?
>
>
>
> *From:* xerte-dev-bounces at lists.nottingham.ac.uk [mailto:
> xerte-dev-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 26 November 2012 16:03
> *To:* Xerte Developers Discussion List
> *Subject:* [Xerte-dev] pageList control in xwd forms
>
>
>
> 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.
>
>
>
> 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 ""
>
> 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..
>
>
>
> 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,
>
>
>
> "Please select a page" data=""
>
>
>
> 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 :-(
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121128/079914bc/attachment-0001.html>
More information about the Xerte-dev
mailing list