1 (edited by heribertom6466 2015-12-04 03:10:20)

Topic: Pop-up Window - Duplicate File

Hello,

I created a form...
I noticed when I click on the "save" button multiple times it will automatically save empty entries on my tablegrid.

I would like to be able to detect duplicate entries when clicking on the save button.
Example: Pop-up window "duplicate file"

Also prevent the save button to save empty entries on my table grid.

Thank you,
Eddie

Re: Pop-up Window - Duplicate File

Hello,


Here you can find example, how  to detect duplicate entries
http://myvisualdatabase.com/forum/viewtopic.php?id=1441


To prevent to save empty entries, create event OnClick for button using for save record.

procedure Form2_buttonSave_OnClick (Sender: string; Action: string);
begin
    Form2.buttonSave.dbDoCloseForm := False; // cancel closing window
    Form2.buttonSave.dbDontResetID := True; 
end;
Dmitry.