Page 1 of 1
Subfile shows 4 columns but only has 1
Posted: Tue Feb 24, 2015 7:30 pm
by rmarsh
This is the reverse of the issue I had where the subfile showed one column but actually contained 4. Well sort of the the reverse. In that case the "column" actually was 4 columns. In this situation I have what appears to be 4 output columns in a subfile but is actually one wide column.
Here is the green screen and the Genie screens as well as the jcon.
Thank you.
- onecolsubfile.JPG (124.68 KiB) Viewed 898 times
- QuickAccess.JPG (122.02 KiB) Viewed 898 times
Re: Subfile shows 4 columns but only has 1
Posted: Wed Feb 25, 2015 8:39 pm
by Scott Klement
Are you certain that the underlying 5250 program isn't putting out just one column? Maybe the developers made the whole subfile record one long field and just space the data out so that it looks like separate columns? Genie, of course, will see the actual start/end of the actual fields, and think it's all one column.
Things should work fine with all one column, though.
If it's important to fix it, you can disable subfile detection for this screen and drag in a subfile and set the columns up the way you want them.
Re: Subfile shows 4 columns but only has 1
Posted: Fri Feb 27, 2015 4:01 pm
by rmarsh
It probably is just one long field. I haven't tried to find the source code for the program. I ended up just having a one column subfile, which looks ok. the problem with it is I have to use a fixed width font like courier or monospace. I was using Arial for everything else, which looks a little better but there are alignment issues to address. For now it will be fine.
Is there a "fix" or technique for spliting the field up and loading it into a grid?
Re: Subfile shows 4 columns but only has 1
Posted: Sun Mar 01, 2015 2:20 am
by Scott Klement
As far as I can tell, there isn't anything to "fix" here. If the screen is sending the data as one large field, then Genie is behaving correctly in showing it as one large field. Not sure how Genie can possibly know what else to do with it?
You could split it up in Javascript code, of course. But, IMHO, I would just keep it one field and use the 'Consolas' font.