Hi All,
I am trying to solve a problem with a profoundui frontend/rpgle backend mobile app.
The app screen is as shown below:
[img] [/img]
Highlighted in red is an icon which opens up another screen which will display a map. This screen's behaviour is what we are trying to optimise.
The map screen is as shown below:
[img] [/img]
Basically, the screen is just displaying an HTML document created by an RPGLE program which places it at an IFS path.
When the app is opened, a loading sub-routine is executed which builds the map HTML file in the IFS as well. The issue is that the map can sometimes be so data heavy that it takes a lot of time to load.
In some instances, the users open up the app and don't even click on the map icon. But even when the user does not want to see the map at all, they have to wait till the map is loaded. Which is unnecessary time wasted.
The solution to this problem is simple: Call the map building routine only when the user clicks the map icon.
But as I am new to Profound/Web development, I am having a tough time achieving this.
There is a single record format which has different layouts for different functionality screens.
What this means is the exfmt is done on a single record format and all the layouts are made available on the screen which are displayed through Javascript code if I understand correctly.
[img] [/img]
As seen the above screenshot, CCS1 is the single record format which contains the below layouts.
Now what I am trying to do is to create a new record format which contains the components of the map layout alone (iframe and html container highlighted above). But this is not working.
I deleted the MapLayout from the CCS1 record format and created a new record format by the name CCSMAP.The record format contains the Maplayout and its components.
When the exfmt on the new CCSMAP record format is done, a blank screen is displayed.
I am not sure what has to be done to get the map displayed on the new record format
Moving a layout into a new record format
-
- Profound User
- Posts: 48
- Joined: Fri Jul 10, 2020 8:35 am
- First Name: Thej
- Last Name: Pav
- Company Name: Confidential
- Phone: 00918310800134
- Address 1: Chennai
- Address 2: India
- City: Chennai
- State / Province: Outside Canada/USA
- Zip / Postal Code: 673592
- Country: India
- Contact:
Who is online
Users browsing this forum: No registered users and 7 guests