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 |
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, 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 |
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:
-- 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 |
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. 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 |
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?
|
Free forum by Nabble | Edit this page |