Using Custom Query Builder
Erik van der Gaag
New Zealand
Hi there,
We are wanting to use a different Query Builder other than FastQB.
We have found another Query Builder ( Active Query Builder) which does a very nice job, and also allows me to restrict tables and fields in the builder as I like.
However, How can I use this as my Query Builder instead of FastQB? ? Is there any way to do this?
Thanks,
Erik.
We are wanting to use a different Query Builder other than FastQB.
We have found another Query Builder ( Active Query Builder) which does a very nice job, and also allows me to restrict tables and fields in the builder as I like.
However, How can I use this as my Query Builder instead of FastQB? ? Is there any way to do this?
Thanks,
Erik.
Comments
I have worked out a way to do this, but its a little complicated.
Basically I have overridden the Query and Editor components, and over rode the Edit function in the SqlProperty editor, and changed the code so that it did what I wanted, rather than the default.
It works
Hi Erik,
it wood be nice if you can post some source about it here.
I'll get back to you.
Thank you in advance
I then created inherited components from the editor, components and rtti files so I could then override the sql property editor and query editor edit functions and pass them off to a form which has the active query builder components in it via an 'execute' function in that form.
I have attached the units I created to inherit from the frx ibo components.
You should be able to work it out from them.
Note, I added extra properties to the component which we needed, which are, edit sql and user level. This is so we can restrict access to certain tables and field in the query builder according to the user logged in to our application.
I hope this allows you to do what you need to do.