Anil,

The pattern I've had in mind for this that works for most "standard" patterned screens in OFBiz is that if you enter an ID that exists it will show you the info for it. If that isn't what you intended, you can click on the "Create New Xxxxx" button that should always be just above the form, or the user can just hit the back button.

For large entities this is admittedly a pain because either the user doesn't think of hitting the back button, or the browser does something dumb and doesn't remember their info, and then they have to re-enter all of the data. We could add another link/button in this case to user the information they entered, ie purely from the parameters Map, and populate a new create form.

-David


On Dec 19, 2006, at 10:07 AM, Anil Patel wrote:

Sorry to bother everybody again, But this Thread somehow got deviated from main subject. The problem I have posted in this email is encountered in Most of the CRUD Forms in Ofbiz. Please share if somebody can think of Ideas on
workaround this problem.

Regards
Anil Patel




On 12/18/06, Anil Patel <[EMAIL PROTECTED]> wrote:

Hi,
We have forms that handle create/update entity data. One of the common problems user run into is, In the Create New Form (e.g New FixedAsset) user enters value in Id field. There is possibility that the value entered may already exist in database. In such situations, Form returns with error message, But also Opens existing entity in Edit/Update mode in the form.
This confuses user.

Most of these create/update form directly post to CRUD services. Is it OK if I added a Simple Method event handler that took the request call and forwarded to CRUD service and then on return of service check if there is error, In case of error set the value of primary key field to nothing so the create/update form will not be able to read existing entity to open it in
Edit mode.

If this is Ok to do, Should I add Event handler simple methods in existing services xml files (e.g FixedAssetServices.xml) Or should I create a new
file that will have such event handler simple methods.

If I can get Feedback on this email it will be easy to prepare a patch to
fix http://issues.apache.org/jira/browse/OFBIZ-547.

Regards
Anil Patel


Reply via email to