Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Loading data into a grid
Sat, Jun 26 2021 2:04 PMPermanent Link

David Martin

I am trying to load a DBIsam table into a grid. Should be easy, but I cannot get it to work, I dragged the dataset associated with the table to the main form and inked it up with a grid. The client app compiles but when the client app is run and I try loading the data with Database,LoadRows(DataSet1) I get the error message "Dataset load response error. (The database Default does not exist."

I am trying to use the default database that is auto created. Any help would be appreciated. I am sure I am missing something easy.

DM
Sat, Jun 26 2021 9:10 PMPermanent Link

David Martin

So I added the following

Database.DatabaseName:='MY_DATABASE';  <= I added this line
Database,LoadRows(DataSet1) ;

And now it works as expected. Based on what I read in the documentation, I thought DatabaseName would have been assigned automatically.  (I dragged the dataset, but not the database, from the server manager to the client main form. Perhaps if I dragged MY_DATABASE from the server manager to the client app "tab gutter" it would have worked?)

DM
Wed, Aug 4 2021 8:33 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

David,

<< And now it works as expected. Based on what I read in the documentation, I thought DatabaseName would have been assigned automatically.  (I dragged the dataset, but not the database, from the server manager to the client main form. Perhaps if I dragged MY_DATABASE from the server manager to the client app "tab gutter" it would have worked?) >>

Yes, if you drag the entire database into the work area from the server manager, the IDE will set up everything for the database.

Tim Young
Elevate Software
www.elevatesoft.com
Image