mofareh 2 Posted September 23, 2022 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
KenR 29 Posted September 24, 2022 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
mofareh 2 Posted September 25, 2022 On 9/24/2022 at 10:28 AM, KenR said: 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: Add a TWebButton and in the OnClick Event add: than you for replay the problem is still Share this post Link to post
David Schwartz 426 Posted September 27, 2022 I'd suggest you start out building something simple. Building something that can be wrapped in Miletus is probably the most complex thing you can start with. It's like someone says, "I want to learn Delphi; I'm having trouble getting the web service to work on a Linux server that my app needs to run." They have a support forum that you should be able to join and post questions. Also, check their blog for examples. Share this post Link to post