Subfile shows 4 columns but only has 1

Use this board to ask questions or have discussions with other Genie users.
Post Reply
rmarsh
Profound User
Posts: 56
Joined: Tue Jan 20, 2015 4:28 pm
First Name: Raymond
Last Name: Marsh
Company Name: Cracker Barrel Old Country Sto
Phone: 615-235-4215
Address 1: PO Box 787
City: Lebanon
State / Province: Tennessee
Zip / Postal Code: 37088
Country: United States
Contact:

Subfile shows 4 columns but only has 1

Post 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
onecolsubfile.JPG (124.68 KiB) Viewed 897 times
QuickAccess.JPG
QuickAccess.JPG (122.02 KiB) Viewed 897 times
json (7).txt
(7.58 KiB) Downloaded 141 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Subfile shows 4 columns but only has 1

Post 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.
rmarsh
Profound User
Posts: 56
Joined: Tue Jan 20, 2015 4:28 pm
First Name: Raymond
Last Name: Marsh
Company Name: Cracker Barrel Old Country Sto
Phone: 615-235-4215
Address 1: PO Box 787
City: Lebanon
State / Province: Tennessee
Zip / Postal Code: 37088
Country: United States
Contact:

Re: Subfile shows 4 columns but only has 1

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Subfile shows 4 columns but only has 1

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests