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: GBC static loading page  (Read 682 times)
David S.
Posts: 2


« on: May 25, 2021, 03:27:39 pm »

Hello all, I am very new to the new GBC frontend and was wondering if there is a way to load a page without loading the GBC frontend. We have a .NET homepage that communicates to the Genero backend through an iframe. Since the GBC takes some time to load, it hurts the performance of the parent page.
Reuben B.
Four Js
Posts: 834


« Reply #1 on: May 27, 2021, 02:08:18 am »

First of all, if your GBC is slow to load, make sure you are compiling your customization in prod (production) mode and not cdev or dev.  See the entry for "prod" http://4js.com/online_documentation/fjs-gbc-manual-html/reference/buildtool/configure_compilation.html

Otherwise one technique that is suited to static pages, have a look at this example https://github.com/FourjsGenero/ex_htmlpagegenerator

That uses Genero code to build a static web page so you can re-use your existing 4gl logic to generate data, and you can also reuse the .css from your GBC or your .NET home page, depends what you want to look like.  If you look through the README, there are some links to real world pages created using that technique, either on demand or batch.  What you don't get with that technique is a running 4gl program, so you are not sitting in an INPUT, MENU etc whilst looking at that page.

 

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


« Reply #2 on: June 01, 2021, 02:23:23 pm »

Thank you so much, Reuben. We will take a look at that.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines