[Xerte-dev] Re: pageList control in xwd forms
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Nov 26 16:10:05 GMT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121126/bdf8eea0/attachment.html>
More information about the Xerte-dev
mailing list