Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: 4rp refresh/ cache behaviour on GAS/GBC  (Read 13636 times)
Peter M.
Posts: 4


« on: November 26, 2017, 11:58:16 pm »

Hi All,
Not sure whether this is a GRE/GBC/GAS or BDL issue.  Also throwing it out here on the forum as a general query to see if there is a simple answer before raising a support request.

I am testing changes to a .4rp  report template and notice that in the GDC if I start the BDL program that uses the template, each time I change the template and re-start the report that the changes are reflected in the output.
However, if I do the same thing using the GBC (1.00.40) , the changes are not reflected unless I completely exit and reload the BDL program between each running.

It appears that when using the GBC, that the 4rp is not being reloaded each time the report is started.  Is this the case?


Reuben B.
Four Js
Posts: 1119


« Reply #1 on: November 27, 2017, 02:11:32 am »

Peter,

Just be careful about your use of "report template".  I think you mean a report file (.4rp) and not a report template (.4rt).

With regards to your issue, you should state how you are viewing the report, and ensure that you are not being caught out by the browser cache, as there is no difference to the fglrun process and the fgl_report_loadCurrentSettings between desktop and web

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Peter M.
Posts: 4


« Reply #2 on: November 27, 2017, 10:19:54 am »

Hi Reuben

Yes, sorry, template in this case is our internal terminology for a .4rp.

Further investigation, it is only when I am using the preview mode to PDF.

call fgl_report_selectDevice("PDF")
call fgl_report_selectPreview(true)

Whatever report I generate after that in preview mode keeps showing the originally generated temporary file. Until I completely exit the program and restart. 

Using
call fgl_report_selectDevice("Browser") 
call fgl_report_selectPreview(true)
...
on the other hands works fine

I don't currently have a 3.0 environment to test against but I am sure this wasn't an issue under 3.0. 
I will try and resurrect one of the old environments and if it confirms that, I will raise a support issue.

Cheers

Peter
Reuben B.
Four Js
Posts: 1119


« Reply #3 on: November 27, 2017, 10:36:23 pm »

Peter,

I think there is an issue that will need to be dealt with via support.

if you do a diff on GREDIR/src/bin/gviewdoc.4gl betweeen GRE=3.10.05 and 3.10.06 there is a change.  You may note the URL does not change for each report you view for the one instance of the program.  I suspect the issue is that the browser has cached the first report you viewed.  If you click Reload/Refresh in the browser then you see the most recent report generated.   We should probably have a date/time stamp or counter in the URL.

Also note the new env variables which are being set automatically by the GAS for this
http://4js.com/online_documentation/fjs-gas-manual-html/#gas-topics/c_gas_gre_local_mode.html
http://4js.com/online_documentation/fjs-gst-manual-html/#gst-topics/c_grw_bdl_output_browser.html

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Reuben B.
Four Js
Posts: 1119


« Reply #4 on: November 28, 2017, 09:28:57 pm »

To tidy this up, there was an issue identified in GRE 3.10.06 to do with browser caching.  Task is https://4js.com/support/issue/?id=GRE-00663&redir=true

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines