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 9:26AM
    Set the TfrxIBXComponents.DefaultDatabase to you application database. now all ibx datasets inside a report will work with this database by default.
  • edited 9:26AM
    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 9:26AM
    It should be empty - empty value means default database. Do you see the list of fields?
  • edited 9:26AM
    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 9:26AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.