Recent

Author Topic: TDBNavigator how to use  (Read 1141 times)

dodgebros

  • Full Member
  • ***
  • Posts: 147
TDBNavigator how to use
« on: November 14, 2021, 05:38:06 pm »
I guess I need help in how to use the TDBNavigator. Do you just place it on the form, set the datasource property and it just works, or is there something else I need to do?

And before someone suggests I read the wiki, I already have!

Thanks in advance,
TD

egsuh

  • Hero Member
  • *****
  • Posts: 870
Re: TDBNavigator how to use
« Reply #1 on: November 15, 2021, 07:33:38 am »
That should work.

Put a TDataSet descendant, like TSQLQuery, and a datasource that is linked to the dataset.
Then, drop TDBNavigator, and other DB visual controls, e.g. TDBGrid, TDBEdit, etc., and link datasources of them to the previous one. Then they should work once you open the dataset.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1089
Re: TDBNavigator how to use
« Reply #2 on: November 15, 2021, 10:38:07 am »
hello,
you have an example how to use it  in my sqlite3 database example project coming with lazarus distribution (in lazarus/examples/database/image_mushrooms)
Friendly, J.P
« Last Edit: November 15, 2021, 10:44:07 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

dodgebros

  • Full Member
  • ***
  • Posts: 147
Re: TDBNavigator how to use
« Reply #3 on: November 15, 2021, 04:13:33 pm »
A big thank you to you guys for trying to help. Embarrassing as it is it seems I solved this same issue before myself  :-[

https://forum.lazarus.freepascal.org/index.php/topic,7270.0.html

 

TinyPortal © 2005-2018