Hello Ine,
Although PUT will work under some circumstances (where you have write
access) I think that using HTTP POST to a "save.xq" script will be much
more reliable since there are many triggers you can add at the save point.
You can also use "update.xq" in the same way.
There are examples of this here:
http://www.danmccreary.com/xrx/beginners-guide/beginners-guide-to-xrx.xhtml#d0e862
- Dan
On Thu, May 24, 2012 at 2:23 AM, Ihe Onwuka <[email protected]>wrote:
> In my model I have <xf:submission id="submitSales" method="put"
> action="sales.xml" ref="b2b:Sales"/>.
>
> In my view I have
>
> <xf:submit submission="submitSales">
> <xf:label>Save</xf:label>
> </xf:submit>
>
> but the model does not overwrite the sales.xml file when I click Save.
>
> Also earlier I mistakenly used the wrong IDRef (as in non-existent in
> the submission attribute of <xf:submit>.
>
> The form displayed the loading box and didn't do anything.
>
> Perhaps there should be some sort of exception, better than looking
> like it is going to do something but then not.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
--
Dan McCreary
NoSQL Evangelist
office: (952) 931-9198
cell: (612) 986-1552
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support