Dynamic Queries

taqvia

Member
Is there a way to identify wether a query is dynamic or static without looking at the code.(runtime identification)

Arshad
 

parul

Member
There is attribute called "Dynamic" which should tell you that.
eg.
DEFINE QUERY q FOR CUSTOMER.
DEF VAR a AS HANDLE.
a = QUERY q:HANDLE.
MESSAGE a:dynamic
VIEW-AS ALERT-BOX INFO BUTTONS OK.

DEFINE VARIABLE qh AS HANDLE.
CREATE QUERY qh.
MESSAGE qh:DYNAMIC
VIEW-AS ALERT-BOX INFO BUTTONS OK.

It would be more clear if you could tell us ,what is exactly, you are trying to accomplish.

-Parul.
 

taqvia

Member
I expected you to be the first person to reply to this post. when it comes to dynamic query you are the boss.

Ok i just wanted to figure out if there is any keyword which can identify wether the query is staic/dynamic.

The code snippet diidnt work with following error "dynamic is not queryable......" 4052.

Arshad
 

parul

Member
Yes, that what the documentation says but it works for queries in 9.1E and 10.1B 03 for me.

-Parul.
 
Top