Page 2 of 4

Re: Horizontal scroll bar on the subfile grid

Posted: Tue Sep 17, 2013 10:08 am
by georg.merten
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...

Re: Horizontal scroll bar on the subfile grid

Posted: Wed Sep 18, 2013 3:38 pm
by Scott Klement
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

Re: Horizontal scroll bar on the subfile grid

Posted: Thu Sep 19, 2013 4:00 am
by georg.merten
Hi Scott,

see attached the dump.
Thank you!

Re: Horizontal scroll bar on the subfile grid

Posted: Thu Sep 19, 2013 11:16 am
by justinkporter
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.

Re: Horizontal scroll bar on the subfile grid

Posted: Thu Sep 19, 2013 8:44 pm
by Alex
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

Re: Horizontal scroll bar on the subfile grid

Posted: Thu Sep 19, 2013 9:37 pm
by Alex
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.

Re: Horizontal scroll bar on the subfile grid

Posted: Fri Sep 20, 2013 5:44 am
by p.baum
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.

Re: Horizontal scroll bar on the subfile grid

Posted: Fri Sep 20, 2013 1:54 pm
by Scott Klement
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:

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;                                                     
This worked for me (even in Genie) on our development box.

Re: Horizontal scroll bar on the subfile grid

Posted: Mon Sep 23, 2013 3:46 am
by p.baum
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

Re: Horizontal scroll bar on the subfile grid

Posted: Mon Sep 23, 2013 9:26 am
by Scott Klement
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.
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.

Was this the problem you were having before, too?