Re: CForms - Binding to one of Multiple Records - solved
Sorry about the delay in replying - I have been away. Thanks you Ben for providing the solution to my problem and my thanks also to all who sent me helpful suggestions. Peter Sparkes On 29/04/06, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi Ben, Thank you - but I don't know how to get the "recordId" from the pipeline into the binding document. Can you please help If your binding starts like: http://apache.org/cocoon/forms/1.0#binding"; path="/records"> And you had an xsl that looked like: http://www.w3.org/1999/XSL/Transform"; xmlns:fb="http://apache.org/cocoon/forms/1.0#binding";> ... And served that through a pipeline: ... And ShowForm had: function ShowForm() { var recordId = cocoon.parameters.recordId; cocoon.request.setAttribute("recordId", recordId); var form = new Form("FormDefinition.xml"); form.createBinding("cocoon:/MyFormBindingURI"); ... I think that's all the bits you need, should get you started! Ben Pope -- I'm not just a number. To many, I'm known as a string... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms - Binding to one of Multiple Records
On 29/04/06, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi Ben, Thank you - but I don't know how to get the "recordId" from the pipeline into the binding document. Can you please help If your binding starts like: http://apache.org/cocoon/forms/1.0#binding"; path="/records"> And you had an xsl that looked like: http://www.w3.org/1999/XSL/Transform"; xmlns:fb="http://apache.org/cocoon/forms/1.0#binding";> ... And served that through a pipeline: ... And ShowForm had: function ShowForm() { var recordId = cocoon.parameters.recordId; cocoon.request.setAttribute("recordId", recordId); var form = new Form("FormDefinition.xml"); form.createBinding("cocoon:/MyFormBindingURI"); ... I think that's all the bits you need, should get you started! Ben Pope -- I'm not just a number. To many, I'm known as a string...
Re: CForms - Binding to one of Multiple Records
Hi Ben, Thank you - but I don't know how to get the "recordId" from the pipeline into the binding document. Can you please help Peter On 28/04/06, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi I have an xml file containing multiple records of identical structure - I want to use CForms to allow uses to update individual records, selected by its ID. Please, is it possible to bind a CForm to one of many records in the file and if so how? If you serve the binding file through a pipeline then you can customise the path: http://apache.org/cocoon/forms/1.0#binding"; path="/records/[EMAIL PROTECTED](recordId)]" > recordId can be a parameter passed in from the sitemap. Ben Pope -- I'm not just a number. To many, I'm known as a string... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms - Binding to one of Multiple Records
On 28/04/06, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi I have an xml file containing multiple records of identical structure - I want to use CForms to allow uses to update individual records, selected by its ID. Please, is it possible to bind a CForm to one of many records in the file and if so how? If you serve the binding file through a pipeline then you can customise the path: http://apache.org/cocoon/forms/1.0#binding"; path="/records/[EMAIL PROTECTED](recordId)]" > recordId can be a parameter passed in from the sitemap. Ben Pope -- I'm not just a number. To many, I'm known as a string...
Re: CForms - Binding to one of Multiple Records
Hi Peter, Maybe the cforms repeater helps for this task [1]. Best Regards, Antonio Gallardo. [1] http://cocoon.apache.org/2.1/userdocs/widgets/widget_repeater.html Peter Sparkes escribió: Hi I have an xml file containing multiple records of identical structure - I want to use CForms to allow uses to update individual records, selected by its ID. Please, is it possible to bind a CForm to one of many records in the file and if so how? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms - Binding to one of Multiple Records
Hi I have an xml file containing multiple records of identical structure - I want to use CForms to allow uses to update individual records, selected by its ID. Please, is it possible to bind a CForm to one of many records in the file and if so how? Am using cocoon 2.1.9 Peter Sparkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]