Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
Hi Fran,
I believe that you must be referring to Dialog System when you mention Net Express screen?
You can use a treeview control to display a list of items that can be expanded or closed by using the sign.
Please see the example under C:\\Program Files (x86)\\Micro Focus\\Net Express 5.1\\Examples\\Dialog System\\COMMONCONTROLS\\TREEVIEW.
For the Listbox example, yes you can specify a Listbox or ListView as being multiple selection and this will allow you to select a range of items or individual items using the Shift or Ctrl keys with the mouse.and then return those selected items in an array that is specified in the data-block,
For the listbox you can use the function GET-SELECTED-LIST-ITEM to return each of the selected items in a loop until they fill an array.
BTW, this kind of thing is much easier to do in managed .NET WinForms or WPF in Visual COBOL than it is using native COBOL using Dialog System.
Thanks.
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
Thanks - that sounds promising. But it can be done in Net Express, right? We haven't used classes very much.
Example form the example:
TreeView is class "treeview"
TreeViewItem is class "treeitem"
Window is class "window"
Dictionary is class "dictinry"
Association is class "associtn"
CobolComp5 is class "comp5"
CharacterArray is class "chararry"
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
Yes, it can be done but the treeview control is implemented as a class in Net Express so you do need to understand OO programming in order to use this with Dialog System as shopwn in the demo.
The listbox control is a Dialog System control that can be manipulated directly using Dialog System functions so it does not require any OO programming.
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
I have done some OO in VB .net, but in COBOL it seems a bit clumsy.
But thanks for the info.
On a somewhat related note, would you know what the limit is for number of occurences in a list or select box? We have a huge table we want users to be able to scroll through. Also, I have not been able to find doc on GET-SELECTED-LIST-ITEM.
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
Yes, like I said this is a much easier task to accomplish using a Visual COBOL managed .NET application.
I am unsure about the actual number of items that can be placed into a listbox control.
I believe it to be about 64K lines but filling a listbox control with that many entries would probably not be all that useful to a user.
The documentation for Dialog System can be found in the Dialog System Help and not in the standard Net Express help.
It can be accessed by starting the Dialog System painter and then clicking on its Help menu.
Thanks.
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
It seems as if the number of occurs allowed on a Dialog System group is a 4 digit value so 9999 would be the limit if you are assigning a group item to the ListBox control.
Thanks.
Can the plus sign be used to expand a field (say you click on a county and it expands to show all of the cities within it) in a Net Express screen? Also, is there a way to choose/highlight a number of records at a time on a screen and send them back to COBOL?
First example:
KENT
User clicks on and gets:
-Kent
Coventry
East Greenwich
etc.
Example 2 - records are displayed in a list or group box
Customer1 Dawn Break Road Marblehead
Customer2 Munster Path Mockingbirdville
Customer3 8 Yacht Place Warrenburgh
Is there a way they can select all three records at once and send them via an array back to COBOL?
Thanks.
Thanks, I didn't realize it was a 9999, as we always just define them like this:
MCATCCAT-GROUP 50