Subscribe for automatic updates: RSS icon RSS

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

Pages: [1] 2 3 ... 10
 1 
 on: October 09, 2019, 03:55:16 pm 
Started by Lu?s T. - Last post by Lu?s T.
Hi Sebastien and Reuben,

I did some experiments and made it work.

The problem was that I didn't know how to make the equivalent of (count=-1) in the Dynamic Dialog version. Without that fgl_dialog_getbufferlength() and fgl_dialog_getBufferStart() don't work as expected. I had to call d.setArrayLength() after creating the Display Array Dialog
Code
  1.    CALL d.addDisplayArrayTo( thFielList, theSreenRecord )
  2.    CALL d.setArrayLength( theSreenRecord, -1 )
  3.  

Infomix SQL allows me to select only certain rows using SKIP and FIRST:

Code
  1.    SELECT SKIP ofs FIRST len field1, ..., fieldn FROM ...
  2.  

I prepare the select and only get the rows based on what is returned by fgl_dialog_getbufferlength() and fgl_dialog_getBufferStart().

Works very well.

Thanks

Luis



 2 
 on: October 07, 2019, 12:07:09 am 
Started by Lu?s T. - Last post by Reuben B.
Luis,


One puzzling thing you said

Code
  1. As I am using "ON FILL BUFFER" ... and d.getArrayLength() seems to return the number of elements of the array and not the maximum elements.
with ON FILL BUFFER, the screen array only has the visual rows in memory.  That is if the database cursor returns 1000 rows but on the screen only 10 rows are visible, only 10 rows will ever be in the array at a time.  So note in this example https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_prog_dialogs_dafill_paged.html the line FETCH ABSOLUTE row c1 INTO arr.*, i.e i is a value between 1 and say 10, not between 1 and 1000

Also my example fgl_zoom https://github.com/FourjsGenero/fgl_zoom is an example of a generic use of dynamic dialog with a display array (and a construct), probably similar to what you are trying to achieve although it doesn't use ON FILL BUFFER.    In particular around lines 776 of https://github.com/FourjsGenero/fgl_zoom/blob/master/fgl_zoom.4gl.  I actually keep a copy of the entire array in memory, hence the use of this.data[row, column] instead of using base.SqlHandle.getResultValue directly.

Reuben






 3 
 on: September 30, 2019, 08:11:25 pm 
Started by Lu?s T. - Last post by Sebastien F.
Luis,

ON FILL BUFFER trigger should work see

https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_ClassDialog_addTrigger.html

Please prepare a sample that reproduces your issue and send it to the support.

We will then contact you to help.

Seb

 4 
 on: September 30, 2019, 01:24:49 pm 
Started by Lu?s T. - Last post by Lu?s T.
I have several forms with screen arrays (tables), The interaction I want with all of them are similar. That's why I prefer to generic code. In other hand I prefer to design the form manually because each has is owns additional elements.

As far I understand I write directly in screen array with setFieldValue() method. So it is my problem of mapping an eventual program array to the screen array or getting directly the info from the database, using base.SqlHandle.

As I am using "ON FILL BUFFER" I am stuck because I don't know how to get the dimension of the array.  fgl_dialog_getBufferLength() returns 0 and d.getArrayLength() seems to return the number of elements of the array and not the maximum elements.

Should I inspect the XML of the form (TableElement.buffersize), or there are a method for this?

 5 
 on: September 30, 2019, 07:47:30 am 
Started by Lu?s T. - Last post by Sebastien F.
Hello !

First of all please can you tell us why you want to use dynamic dialogs?

Is there a good reason to not use static dialogs?

Then, to answer your question:

The purpose of dynamic dialogs is to handle data models dynamically, so it makes no sense to associate a program array with a static structure to a dynamic dialog!

For more details see:

https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_dynamic_dialogs_fields.html

Seb

 6 
 on: September 26, 2019, 05:47:56 pm 
Started by Lu?s T. - Last post by Lu?s T.
I want to transform a static display array in a dynamic one.

The manual says it is possible using the method addDisplayArrayTo of the ui.Dialog.Class.

Code
  1. ui.Dialog.addDisplayArrayTo(
  2.   fields DYNAMIC ARRAY OF RECORD
  3.                        name STRING,
  4.                        type STRING
  5.                    END RECORD,
  6.   screenRecord STRING )

What I don't understand is where should I refer to the program array!

The static code I want to replace is:

Code
  1. DEFINE myArray DYNAMIC ARRAY of
  2.    RECORD
  3.        code        INTEGER
  4.        description STRING
  5.    END RECORD
  6.  
  7. DISPLAY ARRAY myArray to myScreenArray.*

Anyone has experience with this?

Thanks


 7 
 on: September 26, 2019, 04:21:19 pm 
Started by Christine R. - Last post by Christine R.
[ANNOUNCE] Genero Enterprise 3.10 - Genero BDL Maintenance Release


 Genero Enterprise 3.10 - Genero BDL
 Maintenance Release


Four Js is pleased to announce a Maintenance Release of Genero BDL 3.10.22.

The Genero BDL bundle (FGLGWS) 3.10.22 is including
  • Business Development Language (FGL) 3.10.19
  • Web service extension (GWS) 3.10.19
  • Testing tool (GGC) 1.10.08
  • Application Server for Java (JGAS) 1.00.15
  • Web Components and wrappers (WCG) 1.00.17
  • Genero Browser Client (GBC) 1.00.54

These versions include the following fixes :

These versions are now downloadable from the web site : http://www.4js.com/download/products/.

Note : All Four Js Genero customers under maintenance have free access to the new release.

Best regards,

Four Js Development Tools

 8 
 on: September 25, 2019, 05:50:33 pm 
Started by Gary C. - Last post by Frank G.
Hi Gary,

 Sorry my fault, the auto logout time out has nothing to do with the USER_AGENT timeout, you should get a message that you have been logged out.

What is your GDC and GAS version ? Can you please contact your local support center to follow your case.

Frank


 9 
 on: September 25, 2019, 05:41:45 pm 
Started by Olivier E. - Last post by Olivier E.

  Genero Mobile 1.40 - iOS 13.1 and Xcode 10



Dear Customer,

 
Apple released iOS 13 on Friday, September 20, 2019.

Genero Mobile for iOS (GMI) 1.40 supports iOS 13 with Xcode 10.

To support Xcode 11, we must fix some issues encountered. We  will let you know when support is added for Xcode 11.


Best regards,
 

Four Js Development Tools


 10 
 on: September 25, 2019, 12:52:33 pm 
Started by Gary C. - Last post by Gary C.
Hi

Thanks for the reply. It may by my lack of understanding but is the USER_AGENT element still relevant when using GDC as the front end?

The manual states that USER_AGENT is a child of the TIMEOUT element which itself is a child of the UA_OUTPUT element. I only use UA_OUTPUT for our GBC applications.

Gary

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