Project

General

Profile

Bug #7250

PROMPT-FOR with a table field reference resolves to NO-REFERENCE in OpenEdge

Added by Constantin Asofiei about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version:

History

#2 Updated by Constantin Asofiei about 1 year ago

There is a weird behavior in OpenEdge. This test:

prompt-for customer.customerName with frame f1.

compiles with these warnings(?):
 ** PROMPT field customerName should be used with INPUT prefix or ASSIGNed. (208)

and its listing is:
.\a.p                                 04/04/2023 16:03:38   PROGRESS(R) Page 1   

{} Line Blk
-- ---- ---
      1     prompt-for customer.customerName with frame f1.
.\a.p                                 04/04/2023 16:03:38   PROGRESS(R) Page 2   

     File Name       Line Blk. Type   Tran            Blk. Label            
-------------------- ---- ----------- ---- --------------------------------
.\a.p                   0 Procedure   No                                    
    Frames:  f1



There is no buffer references created by PROMPT-FOR. Except that compile message, the test executes fine in OpenEdge.

#3 Updated by Greg Shah about 1 year ago

The warning is because the code as written is useless. The user will go into edit mode, make changes and then the changes are never saved. OE detects this and emits the warning.

As far as why it is a no-reference in 4GL, I can't say. That is the weird part for me.

#4 Updated by Constantin Asofiei about 1 year ago

Greg Shah wrote:

The warning is because the code as written is useless.

It's not entirely useless - the customer's application is built to work entirely with the frame widget associated with that table field, via the INPUT, ENTERED and SCREEN-VALUE. So the record is never updated, but the frame widget is used.

#5 Updated by Constantin Asofiei about 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Review
  • Assignee set to Constantin Asofiei

I've fixed this in 7199b/14529

#6 Updated by Greg Shah about 1 year ago

  • Status changed from Review to Test

Code Review Task Branch 7199b Revision 14529

No objection.

#7 Updated by Constantin Asofiei about 1 year ago

7199b/14533 was merged to trunk rev 14528 and archived.

#8 Updated by Greg Shah about 1 year ago

  • Status changed from Test to Closed

#9 Updated by Constantin Asofiei about 1 year ago

There is another case related to PROMPT-FOR: when a record reference is used instead of individual fields. I'm testing a change related to this now...

#10 Updated by Constantin Asofiei about 1 year ago

  • Status changed from Closed to Review

Branch 7250a was created trunk 14552.

The change in previous note is in rev 14553.

#11 Updated by Greg Shah about 1 year ago

Code Review Task Branch 7250a Revision 14553

No objections.

#12 Updated by Constantin Asofiei about 1 year ago

7250a changes were committed to 7199c rev 14556.

7250a was dead-archived.

#13 Updated by Constantin Asofiei 12 months ago

7199c was merged to trunk rev 14610 and archived

#14 Updated by Greg Shah 12 months ago

  • Status changed from Review to Closed

Also available in: Atom PDF