Advertisement
Guest User

Working TestTel

a guest
May 29th, 2012
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa">
  2. <h:head>
  3. <h:title>Test Telephone</h:title>
  4. <model>
  5. <instance>
  6. <data id="TestTel">
  7. <start/>
  8. <end/>
  9. <deviceid/>
  10. <subscriberid/>
  11. <simid/>
  12. <Tel1/>
  13. <Tel2/>
  14. </data>
  15. </instance>
  16. <itext>
  17. <translation lang="eng">
  18. <text id="/data/Tel1:label">
  19. <value>Contact Telephone Number</value>
  20. </text>
  21. <text id="/data/Tel1:hint">
  22. <value/>
  23. </text>
  24. <text id="/data/Tel2:label">
  25. <value>Contact Telephone Number</value>
  26. </text>
  27. <text id="/data/Tel2:hint">
  28. <value/>
  29. </text>
  30. </translation>
  31. </itext>
  32. <bind nodeset="/data/start" type="dateTime" jr:preload="timestamp" jr:preloadParams="start"/>
  33. <bind nodeset="/data/end" type="dateTime" jr:preload="timestamp" jr:preloadParams="end"/>
  34. <bind nodeset="/data/deviceid" type="string" jr:preload="property" jr:preloadParams="deviceid"/>
  35. <bind nodeset="/data/subscriberid" type="string" jr:preload="property" jr:preloadParams="subscriberid"/>
  36. <bind nodeset="/data/simid" type="string" jr:preload="property" jr:preloadParams="simserial"/>
  37. <bind nodeset="/data/Tel1" type="int" required="true()" constraint="regex(.,'^[:digit:]{0,9}$')" jr:constraintMsg="Tel Number 1 must be 9 digits long"/>
  38. <bind nodeset="/data/Tel2" type="string" required="true()" constraint="regex(.,'^[:digit:]{10}$')" jr:constraintMsg="Tel Number 2 must be 10 digits long"/>
  39. </model>
  40. </h:head>
  41. <h:body>
  42. <group appearance="field-list">
  43. <input ref="/data/Tel1" appearance="number">
  44. <label ref="jr:itext('/data/Tel1:label')"/>
  45. <hint ref="jr:itext('/data/Tel1:hint')"/>
  46. </input>
  47. <input appearance="numbers" ref="/data/Tel2">
  48. <label ref="jr:itext('/data/Tel2:label')"/>
  49. <hint ref="jr:itext('/data/Tel2:hint')"/>
  50. </input>
  51. </group>
  52. </h:body>
  53. </h:html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement