List boxes in Microfocus Dialog System/Net Express?

From: TofuTheGreat (cswearingen_at_co.wood.wi.us)
Date: 09/10/04


Date: 10 Sep 2004 08:30:04 -0700

I've got a legacy system with all GUI's built with Dialog System. I
needed to add a "status" field to the client record (pic 9(1) with
valid values of 1-6). I then added a drop-down listbox to the GUI so
the users wouldn't be required to remember 6 codes for data entry.
The listbox shows the acceptable choices for the field (1-Not
Applicable, 2-In Assessment, 3-Recommended, 4-Not Recommended,
5-Enrolled, and 6-Not Enrolled).

When the user selects an item from the list I correctly capture the
item's row number and store it in the client record's status field.
However when I go back and bring up a client's record I can't get the
listbox to "jump" to the listbox row that matches the value in the
record's status field. In other words if the status field holds a
value of 3 then I want the GUI list box to be positioned to
"3-Recommended").

I've tried using the SET-LIST-ITEM-STATE (Set a list item state to
selected or unselected) and SET-TOP-LIST-ITEM (Set a specified
occurrence of a group data item to be the first visible item of a list
box) functions when the record is retrieved and the window is
refreshed. Examples:

     SET-LIST-ITEM-STATE CBO-DRUG-COURT 1 MCS-DC-STATUS(1)
     SET-TOP-LIST-ITEM CBO-DRUG-COURT MCS-DC-STATUS(1)

Instead of positioning the listbox to the row that I want a new row is
always added to the bottom of the list with the text of the row being
the numeric value of the field. What am I doing wrong? The
documentation and examples for Dialog System is absolutely ZERO help.
In fact I've found that Microfocus' documentation just flat sucks.



Relevant Pages

  • Re: List boxes in Microfocus Dialog System/Net Express?
    ... translate the description to a number. ... >Instead of positioning the listbox to the row that I want a new row is ... >documentation and examples for Dialog System is absolutely ZERO help. ...
    (comp.lang.cobol)
  • Re: List boxes in Microfocus Dialog System/Net Express?
    ... >the users wouldn't be required to remember 6 codes for data entry. ... >Instead of positioning the listbox to the row that I want a new row is ... - display Dropdown List and make selection ... now you redisplay any Client Record - OK so far? ...
    (comp.lang.cobol)
  • Re: Retrieving objects for a TListBox
    ... I can add objects indexed by a string to a ListBox by using the following ... Alan Lloyd ... I can't find any documentation of most ...
    (alt.comp.lang.borland-delphi)
  • Re: Listbox: ListFillRange
    ... Mangesh ... > documentation for ListBox and ComboBox do not detail this requirement ...
    (microsoft.public.excel)
  • Re: Official name of File Folder Drop Down
    ... It is Folder Name ListBox or File Directory List or something like this. ... find it in the documentation any more. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)