Hi How can i save values of my instance if i do a XML submission for the same page ? it is necessary to use the xupdate ? because always i lose values of the instance. Thanks -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Tel : +21270518582 -- 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 |
The built-in eXist database is one option for saving xml. There is also a scope serializer, which has the benefit of deleting the data when the application/session/request ends: http://www.orbeon.com/ops/doc/processors-serializers#scope-serializer Cheers, Hank On Apr 18, 2008, at 3:40 AM, ZENOUAKI rachid wrote: > > Hi > > How can i save values of my instance if i do a XML submission for > the same page ? it is necessary to use the xupdate ? > because always i lose values of the instance. > > Thanks > > -- > ZENOUAKI Rachid > Ingénieur d'Etat EHTP 2008 > Archos-conseil (Groupe ONA) > Tel : +21270518582 > > -- > 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 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 |
Hi
Thnaks for the response, but i think that i didn't explain well my problem, so i give an example : * I have two pages , view and display The view page contain a form (first name and last name) , and a submit button, when the user click on send, if the first name is not 'rachid' , so the page-flow redirect the user to the display page, else the user must remain in the original page (the view) and we display for him a message that it's forbidden for person with name 'rachid' Rq: You will find attached the pages and the controller My problem is, when the first name is rachid, want to keep values of the instance. and change the value of the node (/personne/action) to 'false' in order to display the message in the view page, but i think that the xu;update don't work and when i return to the original page, the instance become blank. Also, when i the first name is not 'rachid' , the instance of the display page is blank, because it dont display the name. Can you give me ideas ? and what is the correct value of replace in xml submission that i must use? Thanks in advance -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Maroc Tel : +21270518582 -- 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 view.xhtml (2K) Download Attachment display.xhtml (1K) Download Attachment page-flow.xml (3K) Download Attachment |
OK, I have a little better idea, but again I can only
make suggestions. First, Orbeon has several technologies that work together. The page-flow controller and pipelines have specific inputs and outputs, one of them is the instance, which is the data of a submission. xforms is separate from these. The page-flow and pipelines are receiving their own copy of instance data -- you cannot refer directly to an instance, so your line : <xu:update select="/personne/action">false</xu:update> will fail because the instance you want to update is not available here. Only a copy is available -- the copy that was submitted, (as <param name="instance" type="input"/> if declared) . Review the page-flow documentation: http://www.orbeon.com/ops/doc/reference-page-flow You probably need to re-design things a little so that you "hand off" the data from xforms to pipelines and back. HTH, Hank On Apr 18, 2008, at 10:03 AM, ZENOUAKI rachid wrote: > Hi > > Thnaks for the response, but i think that i didn't explain well > my problem, so i give an example : > > * I have two pages , view and display > > The view page contain a form (first name and last name) , and a > submit button, when the user click on send, if the first name is > not 'rachid' , so the page-flow redirect the user to the display > page, else the user must remain in the original page (the view) and > we display for him a message that it's forbidden for person with > name 'rachid' > > Rq: You will find attached the pages and the controller > > My problem is, when the first name is rachid, want to keep values > of the instance. and change the value of the node (/personne/ > action) to 'false' in order to display the message in the view > page, but i think that the xu;update don't work and when i return > to the original page, the instance become blank. > > Also, when i the first name is not 'rachid' , the instance of the > display page is blank, because it dont display the name. > > Can you give me ideas ? and what is the correct value of replace > in xml submission that i must use? > > Thanks in advance > > > -- > ZENOUAKI Rachid > Ingénieur d'Etat EHTP 2008 > Archos-conseil (Groupe ONA) > Maroc > Tel : +21270518582<view.xhtml><display.xhtml><page-flow.xml> > > -- > 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 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 |
Thanks
But i don't know how can i redesign my Application , because i m a new user of the OPS.. Can i have an example for illustration. ( you can modify in my example) Thanks in advance -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Tel : +21270518582 -- 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 |
Administrator
|
In reply to this post by RachidEHTP
Rachid,
On Fri, Apr 18, 2008 at 10:03 AM, ZENOUAKI rachid <[hidden email]> wrote: > The view page contain a form (first name and last name) , and a submit > button, when the user click on send, if the first name is not 'rachid' , so > the page-flow redirect the user to the display page, else the user must > remain in the original page (the view) and we display for him a message that > it's forbidden for person with name 'rachid' Instead of putting this logic in the page flow, I would put it in XForms. I.e. in your "view" page, when the user "submits the form", on the DOMActivate for the your "Submit" button you do a test on the name, and go to the "display" page only if the name is different than "rachid". In this case your page stays extremly simple, and only maps URLs to XHTML+XForms files. The logic in the XForms file becomes a little more complicated, but at least it stays in XForms (it is standard, and you don't have to become a Page Flow Controller specialist). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Thaks for your response Certanly, it is easy to make tests in this case in the viw page, but the problem that my test in the application, i put it in the page-flow because it uses results of model and actions (XPL). it 's not a simple test like what i gived in my example, Thanks in advance -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Tel : +21270518582 -- 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 |
Administrator
|
Rachid,
On Sun, Apr 20, 2008 at 3:05 AM, ZENOUAKI rachid <[hidden email]> wrote: > Certanly, it is easy to make tests in this case in the viw page, but the > problem that my test in the application, i put it in the page-flow because > it uses results of model and actions (XPL). it 's not a simple test like > what i gived in my example, Instead of generating the initial instance in an XPL which is setup as the model for your page, you can have that XPL setup as a service (<page view="your-file.xpl">) and call that service through an XForms submission. You would run that XForms submission to load the initial instance when the page load, on xforms-ready. This has more of a SOA flavor and is now the preferred way to load an initial instance. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Hi, i tried all that but without success.
So, i think that i must use the same old method of the classic engine, ie in the page-flow, i update the new instance with values of the submission. it's possible to use this, and how ? -- 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 |
Administrator
|
Rachid,
On Tue, Apr 22, 2008 at 4:23 AM, ZENOUAKI rachid <[hidden email]> wrote: > Hi, i tried all that but without success. > > So, i think that i must use the same old method of the classic engine, ie > in the page-flow, i update the new instance with values of the submission. > it's possible to use this, and how ? Have you made any progress on this? If you're having some trouble calling your initial XPL from XForms, maybe you can send us a simple example that we can run here and that shows the problem. If you have an XPL, you can't just do an example that runs in the XForms sandbox, but you can create an "app" with just a few files. You can find more on: http://www.orbeon.com/ops/doc/home-faq#reporting-issues Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Free forum by Nabble | Edit this page |