TableView headers and controller.enabled = false

Hi,

I have a form in Tableview with headers, that is displayed in a Tabless TabPanel on form A.

Form A is a form in Record view displaying a new Record in a table with not nullable columns. The fields related to the not nullable columns are not yet filled (there are no default values, the user needs to put them in).

Because clicking on any field of the form in the Tabless TabPanel would trigger a save (automatically by Servoy, because the form looses focus) and that save would cause a database error, because it tries to save null values into not nullable columns, I wanted to disable the entire controller of the form in the Tabless TabPanel.

This works fine, except for the TableView headers. They do not get disabled. If you click them, they will still sort, they can be moved around (if that is enabled offcourse) etc, but most troublesome is that clikcign them will trigger the auto save that I tried to avoid.

Offcourse I disabled the onFocusLost autosave, but that only disables the autosave while you remain on the same form. Clickign on a form in a Tabpanel on the main form will trigger a save.

Is this expected behavior?

Any ideas how I can solve this?

Paul
Servoy 2.2.1 final

Anyone?

Just tested this in 2.2.5: the problem still exists.

Anyone seeing the same behavior?

Anyone know a workaround for this?

Can this be fixed?

Paul

in 3.0 you can pretty much disable the save completely. And you can have an onhide that will return false so that they have to fill in the fields first.

How do you exactly disable the complete controller?
What do you disable?

Johan,

To disable the form inside the TabLess TabPanel, I use:

forms.XXXXX.controller.enabled = false;

Form XXXXX shows only a bunch of records in TableView. the columns of the TableView all have a header and those are still clickable when the controller is disabled.

When the header is clicked, it fires a save.

Both from a GUI perspective (really disabling an entire form, thus greying it out) and from a dataentry perspective (no ability to trigger an unwanted SaveData), could the headers of TableViews also be disabled when disabling the controller?

Paul

yes i can also kill the header actions.
But the strange thing is. do you enable then the fields so that you can input something?
Please add a rfe/bug in our system that you want to disable the headers sorting/moving part when the controller is disabled by that command.

Johan,

I will enter a bug/rfc into the support system.

Yes, I do enable the disabled form at a later stage in the data entry. When a certain field gets filled, I prefill all fields in the form in the tabless panel and then enable the form again.

Paul