Project

General

Profile

Bug #2456

BUFFER-HANDLE attribute doesn't always work

Added by Stanislav Lomany over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/09/2014
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:

History

#1 Updated by Stanislav Lomany over 9 years ago

Testcase (uast/buffer/buf-handle-pres-multi.p):

DEFINE TEMP-TABLE tt
     FIELD f1 as integer
     index idx1 f1.

DEFINE TEMP-TABLE tt2
     FIELD f2 as integer
     index idx2 f2.

create tt. tt.f1 = 1.
create tt. tt.f1 = 2.
create tt. tt.f1 = 3.
create tt. tt.f1 = 4.
create tt. tt.f1 = 5.

create tt2. tt2.f2 = 1.
create tt2. tt2.f2 = 2.
create tt2. tt2.f2 = 3.

def query q1 for tt, tt2 scrolling.

open query q1 preselect each tt, each tt2.
get first q1.

message string(query q1:get-buffer-handle(1):buffer-field("f1"):buffer-value).

4GL output:

1

P2J output:

Query method argument must be the name of a query buffer or an integer from 1 to 2 for query q1. (7361)
Invalid handle.  Not initialized or points to a deleted object. (3135)
Cannot access the BUFFER-FIELD attribute because the widget does not exist. (3140)

#2 Updated by Eric Faulhaber over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Just re-tested this -- I'm not sure in which revision it was fixed, but it works now.

Also available in: Atom PDF