Olli,
Yes and no. There is no Java API that allows you to say "give me a
running form and allow me to set stuff from the ouside".
But you can do the opposite: pull values from the request, session, or
application context from XForms, with the HTTP request functions:
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-xpath-functions#TOC-HTTP-request-functionsThe Form Runner document id is computed this way:
digest(string(random(true())), 'MD5', 'hex')
-Erik
On Tue, Apr 5, 2011 at 10:37 AM, Olli Puljula <
[hidden email]> wrote:
>
> Hi,
>
> Is there a way ie. Java API to fill out a form programmatically?
>
> How is the document id formed? It seems to be a long String, maybe a hash
> from something?
>
> Use case would be that we've an object with an internal id and several
> attributes in it and we need to somehow bind that object to a certain data
> entry of a form.
>
> Java API would be great if there's one but if not we could insert a row to
> database manually.
>
> I think this could be quite usual use case but haven't find anything
> relevant yet. Is this even the right or a good approach? If not how should
> it be done?
>
> --
> Olli
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing
> list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws>
>
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws