Previous Next chapter Contents


              Easy Grid


 Get some Tib_Connnection    put it on the form .Wow we gonna see something

Find on IBO Bars the next compo jump it on the form
 

 

Find on IBO Bars the next compo jump it on the form
 

 

compo jump it on the form
 

a pagecontrol i got ...


And the Easy Grid ;)




In Object Inspector U can Play with some some properties




Do some this link : database <- connection <- transaction
and after DroP a Qry
Put some Sql in Query like : select * from item after



The fun part is the KeyLinks wich can be used in master -> detail relations
U have only a table so make it simple KeyRelation=Item and KeyLinks=item.id



Also can set if some fields are visible




Easy Calculated Field if u need




This is it !!



 
 
I forgot some code @ --> GridConnectionBeforeConnect
and the calculated field @ --> qryGridCalculateField
 The Source is Here
 Also have an zip StepTwo.zip
 
 
U need to set the database path to connect on it:Step2.gdb or if u want can use the Step1.gdb and skip the
next section
First when i looked at ibo tutorials i was very confused because they were all in one and hard to find what
is good for you and what not so i wanted separated files { much easy to learn }
Go Back { If you don't have the database + connection + transaction }



 
  Here i have in brief what u made in FirstStep
Just need a connection
 
 
U have the script
 
 The code of the script is Here
 
 Data must find a way to us Transaction Single is the best for this step
 
 
 Only what u need now is to connect the components.First Ib_ConnectionBar link it to the Connection
 
 
 
 Link Transaction to the Connection;A Highway must have even a band somehow
 
 
 
 
 
 
 Hey ! We need some code please
 Hold on i found some code:
 procedure TForm1.FirstConnectionBeforeConnect(Sender: TIB_Connection);
 
 what this code do 1'st determine the Protocol then if the database exist
 bIg jOb is to eXecuTe the sCriPt scMain.Execute;
 
 Must tell u smthg:in your uses part write IB_Session;//-----****This is very important*****------ and that was the end of the step 2



  Previous Next chapter Contents