On Jul 1, 4:39 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> If XForms hanles select/options it must be possible to send the
> options. no?

IS_IN_SET = no problem
IS_IN_DB = ok, although we should continually refresh the form to see
new data being added
IS_NOT_IN_DB = I don't see how to support this

The 'only show this field if previous answer was x' has no direct
Web2Py model analogue
- I use jQuery to achieve this kind of thing in HTML views
Am not sure if we can add something within Web2Py model to handle both
of these programatically or whether this will always have to be
something we touch up manually afterwards.
e.g. I have 'unit_cost' for One-time costs &
'monthly_cost'/'minute_cost'/'megabyte_cost' for Recurring costs

F

> On Jul 1, 10:28 am, Fran <francisb...@googlemail.com> wrote:
>
> > Whilst most stuff seems starightforward, the harder cases are things
> > like:
>
> > db.budget_item.code.requires = IS_NOT_IN_DB(db, 'budget_item.code')
> > Obviously if working offline then this referencedata isn't available
> > - I guess we just have to ignore that within the XForm itself & handle
> > it during form submission.
>
> > db.Field('created_on', 'datetime', readable=False, writable=False,
> > default=request.now)
> > The Hidden field part is straightfwd (just don't provide a Control)
> > But the default value doesn't make sense to be within the form
> > definition as it makes sense at submission time per-instance not as a
> > default when form is downloaded to device! (Same goes for uuid)
> > datetime may need some tweaking - this is available: <bind
> > nodeset="created-on" type="date" />
>
> > F
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to