Subscribe for automatic updates: RSS icon RSS

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

Pages: 1 ... 8 9 [10]
 91 
 on: June 11, 2020, 04:28:52 am 
Started by Reuben B. - Last post by Reuben B.
Stored Settings is where the Front-end client remembers certain properties about a Window or Table so that when the Window or Table is reused, the certain property values are retained.  For Windows this include the position, size, and state of the window.  For Tables this can include the column width, the order of the columns, and the sort column.

For a Window, this means that the user can position multiple windows on their screen so they can see the information they require, and then the next time they run the program, the windows appear in the same position and with the same sizes.

For a Table, this may mean the user adjusts the widths of each column so that they are wide enough to display the typical data.

Most of the time, the Stored Setting behaviour is desired but there are times where it is not, and I will cover some of the ways you can disable the stored settings.

Read more at https://4js.com/ask-reuben/ig-33/

 92 
 on: June 10, 2020, 07:10:08 pm 
Started by Brad D. - Last post by Brad D.
Hi Reuben:

Sorry I have been tied up and have not had a chance to get back to this case.

I tried as well from within the GDC to use an environment variable in the specification of the path to the icon to use but the GDC would not allow it.  I think this is further proof that the GDC is not resolving environment variables.  If it was, the path I entered would have been accepted as it is valid.

The case you listed has to do with the GDC editing the values within a shortcut definition within the GDC.  I have not seen this behaviour and the GDC does not replace environment variables but just does not seem to resolve them.

Fore the second reference, I use the environment variable within a field and not for the entire field.  I don't know if that makes a difference.

 93 
 on: June 09, 2020, 12:01:12 pm 
Started by Jos? V. - Last post by Jos? V.
I found out the problem!
Due to an enviroment problem I was using fglwsdl 3.0 for generating the stubs which did not included the xmlnillable because Fgl 3.0 does not support this property.

We do use some clients with FGL3.0 and others with FGL3.1 and that caused the enviroment confusion.

With fglwsdl from version 3.1 the xmlnillable property is placed on the stubs and that solves the problem.
Thanks you for the replies!

 94 
 on: June 09, 2020, 11:29:42 am 
Started by Jos? V. - Last post by Sisavanh S.
Hi,

That is rather a support case than a question for the forum.
May I suggest you contact your local support center ?
Indeed, we would require the WSDL so we can test the generation of the stub.

Best regards,
Sisa.

 95 
 on: June 09, 2020, 10:17:50 am 
Started by Jos? V. - Last post by Frank G.
Hi, can you please provide the WSDL file so we can check how the 4GL stub is generated.

Thanks,

Frank

 96 
 on: June 04, 2020, 12:07:28 am 
Started by Tim B. - Last post by Leo S.
Hi Tim, I had a look at the official plugin at https://github.com/apache/cordova-plugin-geolocation.
However I noticed that under Android there is no native part for the geolocation .... one would need to use a webcomponent in order to retrieve coordinates.
So I forked the plugin under
https://github.com/leopatras/cordova-plugin-geolocation and added some java code to do roughly the same what our built-in frontcall does.
The advantage to our built-in is that the cordova frontcall returns immediately and later on the cordovacallback action is triggered ->you retrieve the coordinates with the cordova getAllCallbackData frontcall.
This allows the Genero program to continue processing and being user responsive .
If you leave however the current dialog and switch to another one and still want to be able to get the cordova notifications you need to add the cordovacallback action as well in this new dialog.
For Linux/Mac the build of the plugin should be straightforward:
Code
  1. git clone https://github.com/leopatras/cordova-plugin-geolocation.git
  2. cd cordova-plugin-geolocation/fgldemo/simple
  3. make gma.build
  4. make gma.install
  5.  
On Windows one would need to add a .bat script or to use a bash (path separators probably need an update then)

On my Nokia 6.1 the first getGeolocation needs about 3 to 4 seconds, subsequent calls are faster (1-2 seconds).
Let us know if you are able to build the demo, it can be refined later on to use a RECORD for the return values , the plugin can be tuned to use parameters for the wanted accuracy etc.
Regards, Leo

 97 
 on: June 03, 2020, 08:48:50 am 
Started by Reuben B. - Last post by Reuben B.
The initial size of a Genero Desktop Client window is the minimum size necessary to display the content.  With forms that only have a small number of fields, that means the form can be too narrow to see the whole of the statusBar, toolBar,  topMenu,  action panel or ringMenu panel, or in the other dimension be too short to see the whole of the toolBar, action or ringMenu panel.  (Note: by using presentation styles, toolBars, action panels, and ringMenu panels can be displayed in both horizontal and vertical directions.)

There are a few ways this can be alleviated. If the statusBar was a concern, you could change the statusBarType to an entry that begins lines*.  You can add a blank line between rows of a GRID as in 4js.com/ask-reuben/ig-11.  You donít really want to be getting into scenarios where you are making fields wider, or restructuring toolBar, topmenu, actions, simply because you have a small window.

The often overlooked solution is to use the MINHEIGHT, and MINWIDTH properties of a form.   Experiment to come up with suitable values to suit your situation, I typically use MINHEIGHT=25, MINWIDTH=80, the rationale being that was the size of the TUI green screen form of the past, and so most of my normal windows will be close to that size anyway.

Read more at https://4js.com/ask-reuben/ig-32/

 98 
 on: June 02, 2020, 10:51:47 am 
Started by Tim B. - Last post by Tim B.
Our mobile app currently obtains the lan & lng at regular intervals using a FRONTCALL.  This works fine except for the delay of several seconds, which can be a little annoying for our drivers.  I was advised several years ago that Cordova plugins could solve this issue because they can be called asynchronously.   Can anyone recommend a plugin and/or method?  Is Cordova still the recommended route? 

Alternatively, have there been any thoughts about being able to call a 4Js function asynchronously to achieve the same result with FRONTCALL?

Thanks

 99 
 on: June 01, 2020, 10:00:41 am 
Started by Efisio S. - Last post by Efisio S.
Hi Efisio, my advice would be more conservative :
IMHO its very easy to break the GBC by adding custom CSS at the wrong place.
I never worked with Animate.css , but regardless which kind of CSS you add: it might has an impact on your existing widgets.
So you really need expert level to achieve something successful.
So I'd rather recommend to follow the "How do I. " guides and try to understand the intrinsics of GBC step by step.
If you feel something is missing in the "How do I .." guides , ask the support for filing a feature request.
Regards, Leo
Thanks Leo, so, as I stated before, handling this kind of customisations requires mastering javascript.
I'll keep in mind asking for specific guides when I will have concrete ideas.

Hi,

I have been using Animate.css (https://daneden.github.io/animate.css) in my GBC project for quite some time, and so far no issues found.

You can add any custom css to your GBC customization. Below is what i did.

1. Download the required css file
2. Change Extention to scss (eg: Animate.scss)
3. Copy the scss file to [GBC_CUSTOMIZATION_DIR]/sass
4. Edit [GBC_CUSTOMIZATION_DIR]/sass/customization.scss and add a line at bottom to add the new scss file
    @import "Animate.scss";
5. Use the required classes of the Animate.css in your customization.
6. Build GBC   


Thanks And Regards
Susobh Sugathan
Thanks Susobh, I will definitely try this!

 100 
 on: June 01, 2020, 06:05:47 am 
Started by Efisio S. - Last post by Susobh S.
Hi,

I have been using Animate.css (https://daneden.github.io/animate.css) in my GBC project for quite some time, and so far no issues found.

You can add any custom css to your GBC customization. Below is what i did.

1. Download the required css file
2. Change Extention to scss (eg: Animate.scss)
3. Copy the scss file to [GBC_CUSTOMIZATION_DIR]/sass
4. Edit [GBC_CUSTOMIZATION_DIR]/sass/customization.scss and add a line at bottom to add the new scss file
    @import "Animate.scss";
5. Use the required classes of the Animate.css in your customization.
6. Build GBC   


Thanks And Regards
Susobh Sugathan

Pages: 1 ... 8 9 [10]
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines