Project .... raised exception class EDatabaseError with message: 'Operation not allowed on a uni

When I use tfrxDBXQuery in Fast Report designer everything works fine.
When I run report from code, error occured: Operation not allowed on a unidirectional dataset [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Query has groups please help me![/img]

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 6:54PM
    I'm sorry for the vague answer, but just in case nobody has a better one...
    I believe this is to do with the DB connection settings.
    I know your connection is not an ADO connection, but I had a similar problem ages ago and found answers reading this:

    http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspx
    Your problem is either the CursorLocation or the Mode used to open the connection.

    Do a Google search on your error message, it might be the fastest way to the answer.
  • edited 6:54PM
    In ADO Components everything works fine. When I use DBX components in FastReports and I use group band then it doesnt work correctly (error occured).
  • Anu de DeusAnu de Deus Hampshire, UK
    edited 6:54PM
    Then it's definetly the way the connection is being opened.
    I don't use DBX, but isn't there settings available for the connection?

    In ADO Components everything works fine. When I use DBX components in FastReports and I use group band then it doesnt work correctly (error occured).
  • edited 6:54PM
    I add frxEngine in USES section and now everything works fine

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.