<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>1 Sep 2015 18:09:00 Z</lastBuildDate><pubDate>30 Aug 2015 16:41:00 Z</pubDate><description>Hi,&#13;
&#13;
in my project I have a monster query (created with the query editor)&#13;
Some of these parameters should be dynamic, thats means that they can be different in special scenarios.&#13;
&#13;
For example: The number of a drawing in a architecture project has the following format "AAABBBCCC"&#13;
&#13;
AAA= house number&#13;
BBB= company number&#13;
CCC=status number&#13;
&#13;
In another project it has such a format "AABBBBCC" and so on. I save the drawing number schema in a table and build the query parameters to select the different elements of the drawing number at runtime.&#13;
&#13;
My first idea was to use this query and run this without the dynamic part (HExecuteQuery).&#13;
The second query (based on the first query) is created with the dynamic parameters (HExecuteSQLQuery).&#13;
&#13;
So can I use the query editor for 90 % of the parameters. Works so far.&#13;
&#13;
The problem is: If the user needs only the dynamic parameters the first query returns the full table content (+100.000 records) and only the second query reduce it. The whole process is to slow.&#13;
&#13;
Any ideas how to put that in one query without loosing the comfort of the query editor ?&#13;
&#13;
My hope was, that Myquery..Sqltext give me the Sql text with the content of all the parameters at runtime but it doesn´t.&#13;
HExecuteSQLQuery doesn´t allow me to use parameters so I have replace all parameters with the correct notation and thats a lot ...</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp</link><title>[WX20] Need ideas for dynamic query generation</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53807/read.awp</comments><pubDate>1 Sep 2015 18:09:00 Z</pubDate><description>Hi Piet,&#13;
&#13;
yes I know. But my Query has approx. 100 different parameters and I was hoping to avoid this ...</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53807/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53807/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53790/read.awp</comments><pubDate>1 Sep 2015 00:38:00 Z</pubDate><description>Maybe out on a limb here.. If you have a key field in the drawing file that is used to look up the schema, then this should work…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53790/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53790/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53776/read.awp</comments><pubDate>31 Aug 2015 11:02:00 Z</pubDate><description>Hi Michael,&#13;
&#13;
It's not too hard to use hExecuteSQLquery and Stringbuild to generate tailor made queries.&#13;
First you can use the…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53776/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53776/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53772/read.awp</comments><pubDate>31 Aug 2015 09:35:00 Z</pubDate><description>Yes, you got it.&#13;
&#13;
I have a table "drawingnumberschema", which has the following structure:&#13;
&#13;
From Length Description&#13;
-------…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53772/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53772/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53770/read.awp</comments><pubDate>31 Aug 2015 08:46:00 Z</pubDate><description>Hi,&#13;
&#13;
if I understand it correctly, you need to define the different parts of the drawingnummer of every project. Based on thes…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53770/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53770/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53765/read.awp</comments><pubDate>30 Aug 2015 20:40:00 Z</pubDate><description>Hi again&#13;
&#13;
I still don't understand...&#13;
&#13;
The fixed part (in the file) is a string... It's content depend on the user defined s…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53765/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53765/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53763/read.awp</comments><pubDate>30 Aug 2015 19:32:00 Z</pubDate><description>Hi Michael,&#13;
&#13;
you could read all drawings in an array at program start. If the user searches for one parameter you search the a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53763/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53763/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53762/read.awp</comments><pubDate>30 Aug 2015 19:26:00 Z</pubDate><description>...and house number and company number are examples. These are not existent in all projects.&#13;
&#13;
my drawing number field is a str…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53762/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53762/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53761/read.awp</comments><pubDate>30 Aug 2015 19:19:00 Z</pubDate><description>Hi,&#13;
&#13;
of course your example should be work.&#13;
&#13;
And of course I simplified my example. In fact I need for every part from the d…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53761/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53761/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53760/read.awp</comments><pubDate>30 Aug 2015 19:07:00 Z</pubDate><description>Hi Michalely..&#13;
&#13;
One more thought, if you are using HFCS, you maybe able to programmatically generate separate query fields for…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53760/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53760/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53759/read.awp</comments><pubDate>30 Aug 2015 18:35:00 Z</pubDate><description>Hi Michalely..&#13;
&#13;
I'm sorry to hear that. If a LIKE {param1} doesn't work for you where Param1 is generated at run time, then I …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53759/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53759/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53758/read.awp</comments><pubDate>30 Aug 2015 17:47:00 Z</pubDate><description>Hi Blacky,&#13;
&#13;
it doesn´t work. I don´t know these conditions at designt time. The user creates the format and lenght of the draw…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53758/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53758/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53757/read.awp</comments><pubDate>30 Aug 2015 17:43:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
the problem is, that I doesn´t know all parameters at design time.&#13;
&#13;
Look at my example. My program is used in d…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53757/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53757/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53756/read.awp</comments><pubDate>30 Aug 2015 17:36:00 Z</pubDate><description>Assuming that drawing number is a text/string field in of your tables, then using the query editor and creating a condition wher…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53756/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53756/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53755/read.awp</comments><pubDate>30 Aug 2015 17:24:00 Z</pubDate><description>Hello Michael&#13;
&#13;
I do not understand what the problem is.&#13;
The query editor supports of course dynamic parameters in the conditi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53755/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation-53755/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53750-wx20-need-ideas-for-dynamic-query-generation/read.awp">[WX20] Need ideas for dynamic query generation</source><title>Re: [WX20] Need ideas for dynamic query generation</title></item></channel></rss>
