Hello...
We have several forms which will be submitting thier XML to a servlet which will in turn invoke various orchestrations to process the data. The servlet URLs are different per environment. What is the easiest way to adjust the submit URL on a submit button in this case?
I realize I could pass in a parameter representing this variable, but I dont see how to set that as the URL for the submit button within the form.
I would prefer not to have to pass in the URL each time a form is rendered. Is there a way to do this with some sort of global variable of some kind?
Thanks,
jigster
Solved! Go to Solution.
Views
Replies
Total Likes
yes that is where you woudl set it. The submit URL will go into a hidden field and there is script on the form that will adjust the Submit button on the form to change its submit url to that value.
Paul
Views
Replies
Total Likes
You can programmatically set the URL of the submit button. How does the form know which servlet URL to call? Is there something on the form which tells it which URL to use?
Paul
Views
Replies
Total Likes
Thats the issue... whats the best way to maintain that URL which will be changing envornment? We would like to be able to migrate the forms as they are to the various environments, but we need to update that submit URL as part of that. The various orchestrations that render the form could add values to the input xml to give the form the correct submit URL, which would work, but if the URL has to change or be adjusted on a per form basis, that doesnt work so well.
I would like to aviod having to pass in the URL as a parameter to every orchestration that reders a form if possible... how is this best handled? It seems like a pretty harsh limitation at this point...
(BTW - I havent been able to programmatically set the button URL... I have tried usehref which causes my IE and Acrobat 9 instances to crash... Hard)
Views
Replies
Total Likes
I am confused .....we have to have a Submit URL in the form but you do not want to pass it in as a parameter. Then how are we goingto get that URL? Once I have it in the form I can show you how to set it.
Paul
Views
Replies
Total Likes
I guess I was hoping there was a way to use some sort of config parameter like whats available for the orchestrations... where the parameter value comes from the server.
Ok, so lets assume we will pass in the parameter... For setting the submit URL, is that where you have to pass the url in the tartgetURL parameter for the renderForm?
I have tried scripting to set the actual button usehref but that doesnt work...
Views
Replies
Total Likes
yes that is where you woudl set it. The submit URL will go into a hidden field and there is script on the form that will adjust the Submit button on the form to change its submit url to that value.
Paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies