Horizontal scroll bar on the subfile grid
-
- New User
- Posts: 17
- Joined: Thu Aug 23, 2012 3:24 am
- First Name: Georg
- Last Name: Merten
- Company Name: Kuehne + Nagel
- Contact:
Re: Horizontal scroll bar on the subfile grid
Hi,
we tried this in a program but received an error msg from genie.js (firebug)
TypeError: a is null
anonymous()genie.js (line 1044)
anonymous()genie.js (line 1173)
...nged=true;d.designer.O[d.designer.f.screenId]=true;d.designer.p.I();return true}...
it appears when I click on a button and expected exfmt...
we tried this in a program but received an error msg from genie.js (firebug)
TypeError: a is null
anonymous()genie.js (line 1044)
anonymous()genie.js (line 1173)
...nged=true;d.designer.O[d.designer.f.screenId]=true;d.designer.p.I();return true}...
it appears when I click on a button and expected exfmt...
-
- 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: Horizontal scroll bar on the subfile grid
hello Georg,
Can you send me a JSON dump of the screen that's producing this error? To create a JSON dump, navigate to the screen, and press Ctrl-F9. The browser will ask you to save a file named json.txt... save this file, and then send it to me.
You can attach it to a forum post, or e-mail to support@profoundlogic.com
Can you send me a JSON dump of the screen that's producing this error? To create a JSON dump, navigate to the screen, and press Ctrl-F9. The browser will ask you to save a file named json.txt... save this file, and then send it to me.
You can attach it to a forum post, or e-mail to support@profoundlogic.com
-
- New User
- Posts: 17
- Joined: Thu Aug 23, 2012 3:24 am
- First Name: Georg
- Last Name: Merten
- Company Name: Kuehne + Nagel
- Contact:
Re: Horizontal scroll bar on the subfile grid
Hi Scott,
see attached the dump.
Thank you!
see attached the dump.
Thank you!
- Attachments
-
- json.zip
- (1.37 KiB) Downloaded 360 times
-
- New User
- Posts: 2
- Joined: Thu Aug 11, 2011 7:55 pm
- First Name: Justin
- Last Name: Porter
- Company Name: Westside Produce
- Contact:
Re: Horizontal scroll bar on the subfile grid
Thanks for the info and sample. I think this will work---if nothing else, I may use it on a mobile app that I'm working on.
I ended up defining a hidden output field for the column widths of the grid as well as the width of the panel the grid is on. As data is populated, I dynamically increase or decrease the width of both the columns and the panel so that the width of the subfile "appears" larger on the fly. The browser automatically provides the horizontal scroll as this happens and our sales department seems happy with the output.
I ended up defining a hidden output field for the column widths of the grid as well as the width of the panel the grid is on. As data is populated, I dynamically increase or decrease the width of both the columns and the panel so that the width of the subfile "appears" larger on the fly. The browser automatically provides the horizontal scroll as this happens and our sales department seems happy with the output.
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: Horizontal scroll bar on the subfile grid
Georg,
It looks like capturing the JSON dump did not work. It captured the screen before (Command Entry). The error must have occurred too quickly.
Perhaps you can just supply the Display File, and we can look at that.
In the Visual Designer, you can select Save As, then select Local File to save it to your desktop.
Thanks,
Alex
It looks like capturing the JSON dump did not work. It captured the screen before (Command Entry). The error must have occurred too quickly.
Perhaps you can just supply the Display File, and we can look at that.
In the Visual Designer, you can select Save As, then select Local File to save it to your desktop.
Thanks,
Alex
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: Horizontal scroll bar on the subfile grid
For our next update of Profound UI, we have added new properties to the Simple Layout Container (Overflow X and Overflow Y). This will make it possible to create a scrolling layout using standard browser scrollbars, rather than mobile scrollbars.
-
- New User
- Posts: 6
- Joined: Fri Sep 20, 2013 5:26 am
- First Name: Patrick
- Last Name: Baum
- Company Name: Kuehne+Nagel
- Contact:
Re: Horizontal scroll bar on the subfile grid
Hi Alex,
I’m answer for Georg :)
It’s exactly the example from Scott (widesfl.json.txt). Saved as DSPF and compiled.
The RPG is very easy...
ftestr cf e workstn handler('PROFOUNDUI(HANDLER)')
/free
exfmt rec;
*inlr = *on;
/end-free
If you press any button in the screen, the hourglass starts running but nothing else happened.
In the debugger you can see, that the program don’t reach the *INLR statement.
I’m answer for Georg :)
It’s exactly the example from Scott (widesfl.json.txt). Saved as DSPF and compiled.
The RPG is very easy...
ftestr cf e workstn handler('PROFOUNDUI(HANDLER)')
/free
exfmt rec;
*inlr = *on;
/end-free
If you press any button in the screen, the hourglass starts running but nothing else happened.
In the debugger you can see, that the program don’t reach the *INLR statement.
-
- 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: Horizontal scroll bar on the subfile grid
Hello P. Baum,
I suspect the problem is in your RPG code. The "WIDESFL" example has a subfile in it, but you are not declaring that subfile on your F-spec, and you are not loading it with data in your RPG program.
Try changing your RPG to work like this:
This worked for me (even in Genie) on our development box.
I suspect the problem is in your RPG code. The "WIDESFL" example has a subfile in it, but you are not declaring that subfile on your F-spec, and you are not loading it with data in your RPG program.
Try changing your RPG to work like this:
Code: Select all
H DFTACTGRP(*NO) OPTION(*SRCSTMT:*NODEBUGIO)
FWIDESFLD CF E WORKSTN
F HANDLER('PROFOUNDUI(HANDLER)')
F SFILE(SFL: RRN)
D RRN s 4s 0
/free
for RRN = 1 to 50;
field2 = 'XXXX';
write sfl;
endfor;
exfmt rec;
*inlr = *on;
-
- New User
- Posts: 6
- Joined: Fri Sep 20, 2013 5:26 am
- First Name: Patrick
- Last Name: Baum
- Company Name: Kuehne+Nagel
- Contact:
Re: Horizontal scroll bar on the subfile grid
Hi Scott,
Thanks for explaining. It was only an example and I don’t believe that the F-spec has that impact.
Therefore I tried a correct example (yours) with all necessary statements and it also doesn’t work. I cannot leave the screen. The Program come not back from the exfmt statement.
Thanks for your help...
Patrick
Thanks for explaining. It was only an example and I don’t believe that the F-spec has that impact.
Therefore I tried a correct example (yours) with all necessary statements and it also doesn’t work. I cannot leave the screen. The Program come not back from the exfmt statement.
Thanks for your help...
Patrick
-
- 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: Horizontal scroll bar on the subfile grid
I see what you mean. There's a JavaScript error that happens when you exit the screen. This happens on the current release of Profound UI, but does not happen in our development copy of the code -- that's why I didn't see it.p.baum wrote:Therefore I tried a correct example (yours) with all necessary statements and it also doesn’t work. I cannot leave the screen. The Program come not back from the exfmt statement.
Was this the problem you were having before, too?
Who is online
Users browsing this forum: No registered users and 1 guest