[Xerte-dev] Re: pageList control in xwd forms

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Nov 28 10:40:31 GMT 2012


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> [mailto: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<mailto: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> [mailto: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<mailto: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/28710278/attachment-0001.html>


More information about the Xerte-dev mailing list