Using IBX in FR3

Hi,
I'm using IBX component in my Delphi project and FastReport as well.

When I add IBXQuery1 on DialogPage in Fastreport3 I don't see in Object Inspector - property Database - my database, that I use in Delphi in Datamodule.
In FR2 it worked.
Now I have to add IBX DAtabase and connect to DB again, as well as in DataModule.

And writing SQL queries using IBXQuery also doesn't work well.

Lubos

Comments

  • edited 8:30PM
    Set the TfrxIBXComponents.DefaultDatabase to you application database. now all ibx datasets inside a report will work with this database by default.
  • edited 8:30PM
    TfrxIBXComponents.DefaultDatabase is set to my application database, but IB dataset inside a report doesn't work. Database property is empty, and doesn't offer anything to choose. And if I try to preview my report, an error occure : Dataset "" is not exists
  • edited 8:30PM
    It should be empty - empty value means default database. Do you see the list of fields?
  • edited 8:30PM
    I set TfrxIBXComponents.DefaultDatabase to my application's database, but when I run the programm there is still message that says "Database not assigned".

    Is there anything else I should configre ?
  • edited 8:30PM
    Hm, it's interesing, from what I found during my tests it start working from second time. I mean when I start application and then show report, the result is the error wich I described. And when I close the preview, and then one more time show the report - it works. After that it works on every preview, it doesn't only on first.

    Is there anything to be initialized or set during the first preview ?

Leave a Comment