- From: John Boyer <boyerj@ca.ibm.com>
- Date: Thu, 13 Oct 2005 10:40:09 -0700
- To: "Flinton Adam" <Adam.Flinton@cfh.nhs.uk>
- Cc: www-forms@w3.org, www-forms-request@w3.org
- Message-ID: <OF5A3E07C9.D9749AD6-ON88257099.005FC546-88257099.00611097@ca.ibm.com>
Hi Adam,
We've done our best to make the models independent of each other.
If you want two things to talk to each other, then they are part of one
processing model.
Multiple models are more about having an HTML page representing a portal
in which
multiple portlets are running separate XForms.
In future requirements, we do want to end up with submodels that allow
nice groupings of
logical concerns within a model. We would then have better support for
what you want
to do, but right now XForms 1.0 only has the ability to have multiple
instances and, if you
have multiple sets of binds that need to work together, then you have to
manually put
then into the one model along with all the applicable instances.
Best regards,
John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com http://www.ibm.com/software/
"Flinton Adam" <Adam.Flinton@cfh.nhs.uk>
Sent by: www-forms-request@w3.org
10/13/2005 02:20 AM
To
<www-forms@w3.org>
cc
Subject
Which is better multiple models or multiple instances
Dear All,
I am still quietly producing this load from file Xform. I have decided
to try & do it as a template such that others can use it & I il post it
here for posting onto the wiki.
I have 2 instances:
XMLFile
Filehandler
XMLFile uses a src=URL to load the default document & a submission to
load the one you want. It is the file/instance you will want to edit in
your form.
FileHandler has a default structure which in essence contains a Data
element with one child of CurrentFile & possibly many file elements
(which will be used to poplate a drop down choice box to allow you to go
back to "recent documents".
So far so good.
The problem is that AFAICS you can have multiple models & each model can
contain multiple instances. I will be using the instance() function e.g.
in :
<xf:upload ref="instance('internal')//CurrentFile@filename">
from both instances (e.g. the file open stuff will put the value there &
then call a submission n the XMLFile instance to load it etc).
I can not seem to find a model() function so I am wondering how if I
were to place the 2 into separate models I could access them from the
other in a similar way.
I am also wondering if there s some sort fo best practice wrt many
instances or many models.
TIA
Adam
This e-mail is confidential and privileged. If you are not the intended
recipient please accept our apologies; please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on
its contents: to do so is strictly prohibited and may be unlawful. Please
inform us that this message has gone astray before deleting it. Thank you
for your co-operation.
Received on Thursday, 13 October 2005 17:40:34 UTC