Development

#3456 (Saving edit-pages need some testing and enhancements)

You must first sign up to be able to contribute.

Ticket #3456 (new task)

Opened 5 months ago

Last modified 4 months ago

Saving edit-pages need some testing and enhancements

Reported by: Leon.van.der.Ree Assigned to:
Priority: major Milestone: plugins
Component: sfExtjsThemePlugin Version: 1.0.13
Keywords: saving, editpage Cc:
Qualification: Accepted

Description

When you save the data from your edit-page the data gets send to the server by a ajax-request which is OK. however it can use some further testing.

- I think things can go wrong you leave drop-down (non-required) foreign-keys empty.

- When saving without filling all required fields (of all tab-pages), it would be nice if you would jump to the first tab-page which has a empty-required field.

- when you successfully save, you get back the primary-key of the saved item. This is used to set the primary key for new-items, which works out OK. However when you click in your grid from the list-view on Add-New it will try to open the same tab-panel again, even though it now has a new id. Very strange...

- Besides having an Id of the primary key, the edit-panel should also have a tag for its module-name, since you probably want your tabpanel to be able to open multiple items from different modules. (else you are not able to open both city-id-1 and country-id-1)

Maybe more?

Change History

05/02/08 10:58:38 changed by Leon.van.der.Ree

It would also be nice if the title in the tab-page would change when you change it in your edit-page! (maybe even before saving, although that is probably harder (since it is server-generated by the generator.yml file)

05/02/08 11:10:50 changed by Leon.van.der.Ree

it would also be nice to implement event-listeners and throwing when saving items, so lists and edit-pages can automatically reload data to update their view. (when saving from edit-page you want your list to update itself, and when saving from grid, while edit-page is open you want the edit-page to reload itself).

05/03/08 01:23:30 changed by Leon.van.der.Ree

  • status changed from new to assigned.

fixed showing correct tab-panel

05/19/08 01:46:10 changed by Leon.van.der.Ree

partly done,

DONE: -keys -modulename -title -event fireing/listening for edit-pages

TODO: - leaving non-required drop-down combobox-fields empty... (it would set its value to NULL in the DB, which makes saving OK, but retrieving of these items give problems). - It would still be nice if you would jump to the correct tabpage when saving while having fields with errors.

05/28/08 00:53:51 changed by Leon.van.der.Ree

  • owner deleted.
  • status changed from assigned to new.