jmac13
Member
Hi All, (I'm using open edge 10.2b)
I've got a static browse created in appbuilder which creates lots of scope-defined query info. my question is if I have the handle to the browse how do I get to the Query-string? I know the browse has a query object I can get to but the PREPARE-STRING is "?". how do I get to that info? I know I can open the query by doing {&OPEN-QUERY-BRDetail} but I'd like to get to it via a handle so that I can pass a program a handle and it doesn't care if its static or dynamic and I can open the query.
Thanks
I've got a static browse created in appbuilder which creates lots of scope-defined query info. my question is if I have the handle to the browse how do I get to the Query-string? I know the browse has a query object I can get to but the PREPARE-STRING is "?". how do I get to that info? I know I can open the query by doing {&OPEN-QUERY-BRDetail} but I'd like to get to it via a handle so that I can pass a program a handle and it doesn't care if its static or dynamic and I can open the query.
Thanks
Code:
&Scoped-define FIELDS-IN-QUERY-BRDetail ttRecs.intLineNo ttRecs.chrString
&Scoped-define ENABLED-FIELDS-IN-QUERY-BRDetail
&Scoped-define SELF-NAME BRDetail
&Scoped-define QUERY-STRING-BRDetail PRESELECT EACH ttRecs use-index main NO-LOCK
&Scoped-define OPEN-QUERY-BRDetail OPEN QUERY {&SELF-NAME} PRESELECT EACH ttRecs use-index main NO-LOCK.
&Scoped-define TABLES-IN-QUERY-BRDetail ttRecs
&Scoped-define FIRST-TABLE-IN-QUERY-BRDetail ttRecs