Skip to main content
Solved

CTE in DevExpress report designer

  • December 6, 2022
  • 5 replies
  • 162 views

Forum|alt.badge.img+1
  • Apprentice
  • 8 replies

Hi All,

Is it possible to use Common Table Expressions (CTE) in DevExpress report designer like in SSRS where you can use CTE’s in datasets ?

I know you can put CTE in a view in Software Factory and use this view in DevExpress designer. 

I get an error (see picture).

 

Best answer by Mark Jongeling

Hi @tim,

Feel free to create an Idea for this if it is still something you would to see added to the DevExpress Report designer. 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

Renée Evertzen
Moderator
Forum|alt.badge.img+4

Hey Tim,

I'm not sure if I understand your question for the full 100%… but I believe that this error notification is a security measure taken by DevExpress to prevent SQL injections: https://supportcenter.devexpress.com/ticket/details/bc3280/default-validation-for-custom-sql-queries-allows-only-select-statements

I also noticed by executing a short search that it is possible to disable this specific validation: https://supportcenter.devexpress.com/ticket/details/t395653/a-custom-sql-query-should-contain-only-select-statements-when-moving-from-15-1-4-to-15

Is it an option to move the CTE to the underlying view that is called upon by the DevExpress report and use the CTE to compile the required data, that you can then call upon from the DevExpress report? Personally I prefer this option because it also simplifies the possible future maintenance on the report.


Jeroen van den Belt
Administrator
Forum|alt.badge.img+9

Hi @tim

Can you please let us know if you still require assistance regarding this topic? Or has Renée her answer helped you out?


Forum|alt.badge.img+1
  • Author
  • Apprentice
  • 8 replies
  • January 2, 2023

Hi,

I checked this link https://supportcenter.devexpress.com/ticket/details/t395653/a-custom-sql-query-should-contain-only-select-statements-when-moving-from-15-1-4-to-15 but I can’t find the property DisableCustomQueryValidation in DevExpress report deisgner. I’m using the report designer from Thinkwise Community Portal.


Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Tim,

For as far as I can see, this option is False by default and cannot be switch to True currently. I have set out a question to my colleague that managed the product. Once I have response, I or he will reply here.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3940 replies
  • Answer
  • January 17, 2023

Hi @tim,

Feel free to create an Idea for this if it is still something you would to see added to the DevExpress Report designer. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings