Jump to content
mofareh

any one work in TMS Web core ?

Recommended Posts

hi ,

i have triel version of TMS Web Core for delphi ,

i want to buy it after trying

if i try to show data in webdbgride the data not showing , i use MiletusMSSQLDBDriver , MiletusClientDataSet to do that , and i but all properties

 

Share this post


Link to post

From what I remember when playing around with Miletus the settings do not work at design time. Add the fields you want to the grid, you will get an error but ignore it. In the OnCreate event of the form do something like:

  MiletusMSSQLDBDriver1.Server:='Server Name';
  MiletusMSSQLDBDriver1.DataBase:='Database Name';
  MiletusMSSQLDBDriver1.OSAuthent:=True;

  //If OSAuthent is False, you'll need to set UserName and Password:
  MiletusMSSQLDBDriver1.UserName:='';
  MiletusMSSQLDBDriver1.Password:='';

  MiletusClientDataSet1.DBDriver:=MiletusMSSQLDBDriver1;
  MiletusClientDataSet1.QueryText:='select * from Whatever;';
  MiletusClientDataSet1.IndexName:='Index Name';

  WebDataSource1.DataSet:=MiletusClientDataSet1;
  WebDBGrid1.DataSource:=WebDataSource1;

Add a TWebButton and in the OnClick Event add:

 

  MiletusClientDataSet1.Active:=True;

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×