posted 8 years ago
Hi,
I'm using Front Man 1.6.2. Is there a way to use redirectToCommand of CommandContext, so that the parameters are sent using POST method? Or is this a bad idea by nature and I should accomplish my needs other way.
To describe what I want: I have an application for creation of purchasing requisitions. So far I have these commands - createRequest to create new requisition, showRequest to show details of requisition and viewRequests to show a list of requisitions created by logged requester. CreateRequest forwards to view newRequest, where form is shown to enter header and item details of new requisition. The form is posted to the same command i.e. createRequest and in case there is an error creating the requisition, it forwards back to view newRequest (otherwise to showRequest). So that the user can just fix the errors, the form fields reuse posted data using ${param} and ${paramValues}. Now I'd like to implement an option to copy existing requisition to a new one (i.e. take it as a template). My idea is to reuse as much as I can - create new command copyRequest that takes requisition number as an parameter, reads the data, stores them as parameters and simply redirects to command createRequest. (Where it shows the filled form for the first time as there was no submit yet.)
Thanks.
Regards,
Tomas