Translating PB select to SQL
- How-to
- Philippos Antonopoulos
- SnapDevelop
- Friday, 8 December 2023 01:41 PM UTC
Hello Everybody,
We are migrating our app from a client-server app to a 3-tier api enabled one.
We want to avoid scaffolding all of our thousands of datawindows. So we are looking to create an api call with a dynamic approach. What we have done is created this api call with a string as the parameter. This string contains the sql select statement that is needed to populate the datawindow.
The issue is that most of our datawindows have been built and saved using the Graphical Query Builder, so when we use the getSQlSelectwe get a PB select. This can not be used in the api to retrieve the data.
Does anyone know how to translate the PB select into a normal select either in powersript without a database connection or in C#?
Is there some existing libary that has been created that we can use to do this?
Thank you in advance,
Philippos
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.