List boxes in Microfocus Dialog System/Net Express?
From: TofuTheGreat (cswearingen_at_co.wood.wi.us)
Date: 09/10/04
- Next message: TofuTheGreat: "Re: Microfocus Netexpress question : COBSQL vs openESQL"
- Previous message: Tom Morrison: "Re: RM/Cobol runtime slow startup"
- Next in thread: James J. Gavan: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: James J. Gavan: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: Robert Wagner: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: TofuTheGreat: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: TofuTheGreat: "Re: Microfocus Netexpress question : COBSQL vs openESQL"
- Previous message: Tom Morrison: "Re: RM/Cobol runtime slow startup"
- Next in thread: James J. Gavan: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: James J. Gavan: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: Robert Wagner: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Reply: TofuTheGreat: "Re: List boxes in Microfocus Dialog System/Net Express?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|