I uploaded case 49157 several days ago that shows how to reproduce the onRecordSave event firing too often. Have you not been able to reproduce it using that?
I have also had the experience that rioba described where the onRecordSave event was firing as many times as there were records in the foundset, although I wasn’t able to reproduce it reliably so I didn’t report it.
Regarding this discussion about whether or not the record is being saved when onRecordSave returns false: we need the ability to prevent INVALID DATA from being saved ANYWHERE, PERIOD. It doesn’t help us if the invalid data is saved to the foundset but not in the backend - this only confuses matters, as we have just seen.
Can you make it so it doesn’t save to the foundset OR the db if onRecordSave returns false?
a record saved or not will always be in the foundset… There is no other way around that, there is no such thing as saving to a foundset. only saving to the database.
What I was hoping for was the option to easily revert to the saved version of a record after it’s been modified (not saved) but failed validation. I guess I’ll have to continue to code such reversions myself. No problem. Thanks.
If a combobox field is editable, the text in the popup menu is flush left. Is there any way to add some padding, or is this an Apple LAF issue as well?
If a valuelist contains a separator (like the Ship Via field on the CRM Order form), I can actually select it, which is weird to me. Another Apple LAF issue?
After applying Servoy 3.0 Release Candidate 2, getting error while doing the search
Here is the method:
controller.find();
if (globals.Field1_number)
{
subj_num = globals.Field1_number
}
var x = controller.search();
if (x ==0 )
{
//Nothing was found
var btn = globals.Error_MSG('No matches found for ' + globals.Field1_number, 'Cancel', 'Try Again' );
if (btn == 'Try Again')
{
globals.Field1_number = null
//Search();
}
else
{
return;
}
}
I get the following error no mater finding or not finding the Subj_num:
Error:
about the onRecordSave firing often (especially in autosave is false mode) this is fixed, but i made another topic to make it clear how to use onRecordSave properly:
akalehzan:
…Find, Search and Show Omitted Records Controllers do not function at all in this Servoy release.
did you turn the autosave off? if so please see the reason on http://forum.servoy.com/viewtopic.php?t=6938
The “show omitted” we fail to explain/reproduce, please report this in the support system (with small sample solution)
Quote:
On another note: Why does a non editable image field have a “Save media” button? When clikcing on the button, nothing seems to happen anyway.
I thought a none editable field should be able to save the picture.
(that you can’t do that is a bug)
But i can remove that picture all together?
But both pictures gone is more disabled (can’t download and upload) and readonly is just as a text field you can copy out if it but not in in…
Mmm, I think I misinterpreted the use of the “save” button. Guess it does make sense to be able to download an image (to disk or something), since in the Smart Client, you can achieve the same by dragging the image.
So, instead of the question why the button was still there, it comes down to why can’t you save the image. But i’m sure it’s allready solved in 3.0RC3, right?