Hi,
-- I'm trying to set up an action so that after a file is uploaded to the 'temp' directory it is automatically copied to another directory. There is an example at http://wiki.orbeon.com/forms/doc/developer-guide/processors-other-serializers#TOC-File-serializer describing how to do this in xpl. The problem that I'm encountering is that the xpl never seems to run. I've tried adding debug statements, simplifying the XPL to just write some xml to file, even deliberately messing up the syntax in the XPL file to see if it will throw an error but nothing happens - the log never displays any messages related to the file. The xpl file is loaded in `/webapps/orbeon/WEB-INF/resources/apps/numishare/xpl/archive. The code for the action is below. I'm sure that it runs because the 'setvalue' under 'Smoke' works - I'm checking that using the XForms inspector.
Any ideas? Many thanks, Tim You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
You say the XPL is under:
/webapps/orbeon/WEB-INF/resources/apps/numishare/xpl/archive Is `archive` a directory? The call refers to: /apps/numishare/xpl/archive-file.xpl Are the paths right? |
Woops - sorry, I copied the path incorrectly. The XPL file is under `/webapps/orbeon/WEB-INF/ Out of interest - if an non-existent file was specified, should any errors show up in the logs? On Thu, Aug 3, 2017 at 11:06 PM, Erik Bruchez <[hidden email]> wrote: You say the XPL is under: You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
This translates into an XPath dynamic error. You should see an `xforms-action-error` in the logs when this happens (assuming a fairly recent version of Orbeon Forms), since this occurs within an action, if you enable logging of events with XForms logging. [1]
-Erik [1] https://doc.orbeon.com/configuration/advanced/xforms-logging.html |
Ah, yes - that was the problem. I had not enabled the XForms logging. With it switched on errors are showing up in the logs when the action runs so I can debug the problem (something to do with namespaces). Thanks for your help, Tim On Mon, Aug 7, 2017 at 8:50 PM, Erik Bruchez <[hidden email]> wrote: This translates into an XPath dynamic error. You should see an You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Very good, I am glad that helped.
-Erik |
Free forum by Nabble | Edit this page |