Please, anyone HELP ME!!! dbExpress NOOB question - I just need a simple example please
Posted on 2004-09-04
I´ve already looked forward and read about GENERATORs and TRIGGERs (for days). I am using Delphi 7 and Firebird with dbExpress components (i need to implement this in dbExpress).
My NOOB question is: could anyone do a example for me (?)using:
- SQLConnection + SQLQuery + ClientDataSet + DataSetProvider;
- 2 buttons (INSERT and POST);
- 1 DBGrid
Suppose that i just have one table called CUSTOMER and this table contains just two fields (ID and CUSTOMER_NAME).
What i deeply need is: when i click in INSERT button, i just fill the field CUSTOMER_NAME (in the DBGrid) with anyname and, after click in POST, i´d like that the GENERATOR works (as well the TRIGGER) and i could see, immediatly, the NUMBER generated besides the CUSTOMER_NAME (in the field ID, which is in the DBGrid too).
Hey guys, i deeply need it. If anyone helps me, i will be very happy.
Best regards and thx. for now.