update instance in a XPL

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

update instance in a XPL

NewUser
Hello,

Is there a way I can modify submitted instance content in an XPL?

Madhuri


--
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
Reply | Threaded
Open this post in threaded view
|

Re: update instance in a XPL

Hank Ratzesberger

Madhuri,

I feel I may be misunderstanding you...

Within your XPL file you can use any of the 
transform pipelines, generally,  oxf:xslt. 

If you want to alter the instance within your form, 
your submission could replace the same instance
that was referenced.

HTH,
Hank

On Jul 28, 2009, at 1:12 PM, Madhuri Deodhar wrote:

Hello,

Is there a way I can modify submitted instance content in an XPL?

Madhuri

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: update instance in a XPL

NewUser
Ok I will try to explain better.

Let's consider an example. I have a form in which user can enter empID. Which is then submitted to the XPL for further processing. I have a custom java processor which finds out department for this empID and updates it in the department element. Now I want this to be updated in instance. There are some sub XPLs which are invoked where I use input instance. So I was wondering if I can modify instance in my intermediate java processor.

<employee>
   <empno><empno>
   <department><department>
<employee>

Hope I am clear now.

Regards,
Madhuri


On Tue, Jul 28, 2009 at 4:32 PM, Hank Ratzesberger <[hidden email]> wrote:

Madhuri,

I feel I may be misunderstanding you...

Within your XPL file you can use any of the 
transform pipelines, generally,  oxf:xslt. 

If you want to alter the instance within your form, 
your submission could replace the same instance
that was referenced.

HTH,
Hank

On Jul 28, 2009, at 1:12 PM, Madhuri Deodhar wrote:

Hello,

Is there a way I can modify submitted instance content in an XPL?

Madhuri

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: update instance in a XPL

Hank Ratzesberger

I see.

I don't believe your processor can change the input only, 
but must have an output. Sorry, I can't answer this without
a close check of the source code, perhaps later.

For the change to take effect in your form,  
 use the attributes

 replace="instance" and
instance="instance('my-instance')"

the same instance the submission is binded to.
 
Regards,
Hank

On Jul 28, 2009, at 2:00 PM, Madhuri Deodhar wrote:

Ok I will try to explain better.

Let's consider an example. I have a form in which user can enter empID. Which is then submitted to the XPL for further processing. I have a custom java processor which finds out department for this empID and updates it in the department element. Now I want this to be updated in instance. There are some sub XPLs which are invoked where I use input instance. So I was wondering if I can modify instance in my intermediate java processor.

<employee>
   <empno><empno>
   <department><department>
<employee>

Hope I am clear now.

Regards,
Madhuri


On Tue, Jul 28, 2009 at 4:32 PM, Hank Ratzesberger <[hidden email]> wrote:

Madhuri,

I feel I may be misunderstanding you...

Within your XPL file you can use any of the 
transform pipelines, generally,  oxf:xslt. 

If you want to alter the instance within your form, 
your submission could replace the same instance
that was referenced.

HTH,
Hank

On Jul 28, 2009, at 1:12 PM, Madhuri Deodhar wrote:

Hello,

Is there a way I can modify submitted instance content in an XPL?

Madhuri

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: update instance in a XPL

Colin Berry
In reply to this post by NewUser
You almost certianly do not need a custom java processor to do this. The easy way is to submit a query, perhaps with a submission to eXist via xquery or perhaps using the sql processor. Where do you keep the table or xml with which you link the employee to the department?
NewtoXforms wrote
Ok I will try to explain better.

Let's consider an example. I have a form in which user can enter empID.
Which is then submitted to the XPL for further processing. I have a custom
java processor which finds out department for this empID and updates it in
the department element. Now I want this to be updated in instance. There are
some sub XPLs which are invoked where I use input instance. So I was
wondering if I can modify instance in my intermediate java processor.

<employee>
   <empno><empno>
   <department><department>
<employee>

Hope I am clear now.

Regards,
Madhuri


On Tue, Jul 28, 2009 at 4:32 PM, Hank Ratzesberger
<hankr@crustal.ucsb.edu>wrote:

>
> Madhuri,
>
> I feel I may be misunderstanding you...
>
> Within your XPL file you can use any of the
> transform pipelines, generally,  oxf:xslt.
>
> If you want to alter the instance within your form,
> your submission could replace the same instance
> that was referenced.
>
> HTH,
> Hank
>
> On Jul 28, 2009, at 1:12 PM, Madhuri Deodhar wrote:
>
> Hello,
>
> Is there a way I can modify submitted instance content in an XPL?
>
> Madhuri
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing
> list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org<ops-users-unsubscribe@ow2.org>
> For general help: mailto:sympa@ow2.org?subject=help<sympa@ow2.org?subject=help>
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> Hank Ratzesberger
> NEES@UCSB
> Institute for Crustal Studies,
> University of California, Santa Barbara
> 805-893-8042
>
>
>
>
>
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing
> list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws