|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
xforms datatypes supportHi all
There was a post late April regarding support for xforms datatype: "It does not appear that Mozilla Xforms 0.8.5 supports the new xforms datatypes. I'm trying to invoke a datepicker but allow empty fields. If I bind to type="xs:date", then I get a datepicker but empty fields are not allowed. I cannot find a way to bind to xf:date. Is support for the xforms datatypes expected soon? " I am just wondering - before deciding which workaround I will implement for the time being - if there are plans to have those datatype supported in the next months? Thanks for the info Christophe _______________________________________________ dev-tech-xforms mailing list dev-tech-xforms@... https://lists.mozilla.org/listinfo/dev-tech-xforms |
|
|
Re: xforms datatypes supportHi Christophe,
I don't know of anyone who has expressed interest in doing the work so I'd say that it probably won't get done soon. If someone would be willing to donate the work, though, we'd gladly accept it. --Aaron Christophe wrote: > Hi all > There was a post late April regarding support for xforms datatype: > > "It does not appear that Mozilla Xforms 0.8.5 supports the new xforms > datatypes. I'm trying to invoke a datepicker but allow empty fields. > If I > bind to type="xs:date", then I get a datepicker but empty fields are > not > allowed. I cannot find a way to bind to xf:date. Is support for the > xforms > datatypes expected soon? " > > I am just wondering - before deciding which workaround I will > implement for the time being - if there are plans to have those > datatype supported in the next months? > > Thanks for the info > Christophe dev-tech-xforms mailing list dev-tech-xforms@... https://lists.mozilla.org/listinfo/dev-tech-xforms |
|
|
refreshing a dynamic variable instance for sportsHi, this seems to be the place for xquery dev questions, doesn't it. I am using the plugin, though!
I'm doing a series of select drilldowns for sports data going from sport --> league --> team --> player. That's four select1 that you proceed thru progressively. That clear? Each select1 has it's own instance. The ones for sport and league are small and constant. But once you've selected league (and then team) then instance will vary. League selection retrieves the list of teams for a single league. Team selection retrieves the list of players for a single team. You certainly don't want to load a list of all NFL players so filtering by team key using xquery makes sense, right? So here's my problem (and thanks for staying with me thus far). I can pull up the player list on the first team select no problem. But I can't get the instance to update (and the select to reload values) when I change teams in the team select. Here's what I'm doing: <xf:instance xmlns="" id="data"> <data> <selected-sport /> <selected-league /> <selected-team /> <selected-player /> </data> </xf:instance> ... <xf:instance xmlns="" id="players"> <sports-content /> </xf:instance> ... <xf:submission ref="instance('players')" id="add-player" replace="instance" instance="players" method="get"> <xf:resource value="concat('http://localhost:8080/exist/rest//db/newsml/xquery/getPlayers.xql?sport=',instance('data')/selected-sport,'&league=',instance('data')/selected-league,'&team=',instance('data')/selected-team)" /> </xf:submission> ... <xf:select1 id="team" ref="/data/selected-team"> <xf:label>Teams</xf:label> <xf:itemset id="league-list" nodeset="instance('teams')/statistic/group/*/*/team"> <xf:label ref="name/@last" /> <xf:value ref="team-metadata/@team-key" /> </xf:itemset> <xf:action ev:event="xforms-value-changed"> <xf:send submission="add-player" /> </xf:action> </xf:select1> Selecting team sends to submission which loads the "players instance based on values in "data" instance. When I send the submission to "add-player" shouldn't that cause a full refresh of the instance? Even if the submission is using a resource like that? Hope that code is basic enough to get the problem across. Thanks for your time. -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com _______________________________________________ dev-tech-xforms mailing list dev-tech-xforms@... https://lists.mozilla.org/listinfo/dev-tech-xforms |
| Free Forum Powered by Nabble | Forum Help |