Using "Choose Field" with table records

Posted by Joseph Kreifels on 23-Mar-2016 12:11

To start off, I'm using Open Edge 10.2B Character Interface on a Linux server.

I'm hoping I'm wrong here, it looks like the "Choose Field" only works on Extents.

Can someone tell me if what I'm trying to do is possible or not?

 I got a table with several records. I want to display them all in the frame and have the user select one of the fields so that I can open an additional frame containing descriptions for the selected item.

Here is what I've tried.

for each item:
  repeat:
    display item.id item.name with down frame a.
    choose field item.name with frame a.
  end.
end.

repeat with frame a:
  for each item:
    display item.id item.name.
  end.
  choose field item.name.
end.


All Replies

Posted by Brian K. Maher on 23-Mar-2016 12:16

Look at the browse widget.

Posted by Matt Gilarde on 23-Mar-2016 12:35

I think that it's possible to do what you want to but CHOOSE is only maintained for backward compatibility with version 6 applications. It sounds like you'd be better off using a browse (as Brian suggested) or perhaps a selection-list if you want a solution with a simple interface that is similar to a list presented with the CHOOSE statement.

Posted by Joseph Kreifels on 23-Mar-2016 12:40

, That looks great. Thanks for the quick reply

This thread is closed