Hi all,
I am noticing when I try using dynamic queries that include fields that have an extent it will return errors. When i check the output of my message string and run it the query works fine. Is there a specific way you have to specify a field with extent when building your query string?
example:
The output string will run fine in the editor but as a dynamic query I get an error in the logs.
customer cust-address must be a quoted constant or an unabbreviated, unambiguous buffer/field reference for buffers known to query . (7328)
I am noticing when I try using dynamic queries that include fields that have an extent it will return errors. When i check the output of my message string and run it the query works fine. Is there a specific way you have to specify a field with extent when building your query string?
example:
Code:
/* dynamic query string*/
assign v-query =
"for each customer no-lock where " +
"customer.cust-address[1]" + " matches " + "'" + v-address + "':"
message v-query.
create query qh-customer.
qh-customer:set-buffers(buffer customer:handle).
qh-customer:query-prepare(v-query).
qh-customer:query-open.
if qh-customer:is-open then
repeat:
qh-customer:get-next.
if qh-customer:query-off-end
then leave.
etc...
The output string will run fine in the editor but as a dynamic query I get an error in the logs.
customer cust-address must be a quoted constant or an unabbreviated, unambiguous buffer/field reference for buffers known to query . (7328)