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: Is the mode of dynamic dialogs WITHOUT DEFAULTS  (Read 9237 times)
Candy M.
Posts: 139


« on: March 27, 2018, 11:07:47 pm »

I tried to set the defaultValue attribute when creating my form dynamically to see if the value would default in in dynamic dialog.   I'm using the dialog method createInputByName.  It did not default the value.   I apologize if this is documented somewhere but I did not see it.

Thanks,
Candy
Rene S.
Four Js
Posts: 111


« Reply #1 on: March 28, 2018, 08:01:26 am »

Hello Candy,
an dynamic input behaves like a normal INPUT WITHOUT DEFAULTS.
When adding a new row in an dynamic INPUT ARRAY, then the defaults of the form-fields should be used (the input of a new row in INPUT ARRAY behaves like INPUT - without the WITHOUT DEFAULTS clause).
Rene
Sebastien F.
Four Js
Posts: 509


« Reply #2 on: March 28, 2018, 09:39:54 am »

Hello,

We will add a note about this in

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

Seb
Reuben B.
Four Js
Posts: 1062


« Reply #3 on: March 28, 2018, 09:50:01 am »

Seb,

We may need to consider going as far as noting the 4gl syntax available e.g. http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_record_input_003.html and noting what is available via a ui.Dialog method, what is not available via a ui.Dialog method but one day maybe, and what will never be available via a ui.Dialog method

Reuben

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


« Reply #4 on: March 28, 2018, 10:26:03 am »

Reuben,

I understand your request regarding the doc, but to me dynamic dialogs can still be improved, and we doc writers need to clearly distinguish a bug from a feature.

Knowing that, today I do not feel comfortable to start to list what static-dialog features are not available in dynamic dialogs, to finally end up with a wrong documentation, because a (missing) feature is finally considered as a bug.

For example, one could have doubts about the combobox initializer management discussed in
   http://4js.com/support/forum/?topic=1230.new
Rene has answered, so this is now clear: it's not a bug, it's a feature...
I could not guess what is expected before this answer.

Seb
Candy M.
Posts: 139


« Reply #5 on: March 28, 2018, 01:11:23 pm »

Very good.  Thanks Rene for the clarification.
Candy
Reuben B.
Four Js
Posts: 1062


« Reply #6 on: March 29, 2018, 03:04:48 am »

Reuben,

I understand your request regarding the doc, but to me dynamic dialogs can still be improved, and we doc writers need to clearly distinguish a bug from a feature.

Knowing that, today I do not feel comfortable to start to list what static-dialog features are not available in dynamic dialogs, to finally end up with a wrong documentation, because a (missing) feature is finally considered as a bug.

For example, one could have doubts about the combobox initializer management discussed in
   http://4js.com/support/forum/?topic=1230.new
Rene has answered, so this is now clear: it's not a bug, it's a feature...
I could not guess what is expected before this answer.

Seb


Seb,

Whilst the combobox initializer question came up in a discussion about dynamic dialogs, I don't believe it was a dynamic dialog question as you could encounter the same issue with a static dialog and building your form dynamically.

What I am more concerned about is if you look at static INPUT syntax, the question Candy is asking about relates to the WITHOUT DEFAULTS control attribute, but there are other control attributes, she could have equally asked the same question about   ...

{ ACCEPT [ = boolean ]
| CANCEL [ = boolean ]
| FIELD ORDER FORM
| HELP = help-number
| NAME = "dialog-name"
| UNBUFFERED [ = boolean ]
| WITHOUT DEFAULTS [ = boolean ]

... or more likely from my own experience with dynamic dialogs, the action attributes ...

ON ACTION action-name
             [ INFIELD field-spec ]
             [ ATTRIBUTES ( action-attributes-input ) ]

where action-attributes-input is:

{ TEXT = string
| COMMENT = string
| IMAGE = string
| ACCELERATOR = string
| DEFAULTVIEW = { YES | NO | AUTO }
| VALIDATE = NO
| CONTEXTMENU = { YES | NO | AUTO }
    [,...] }


That is, is it implementable in Dynamic Dialogs.  There are a number of these attributes that are not currently implementable via Dynamic Dialgos, and for those we don't want developers such as Candy going off on a wild goose chase trying to figure out if it has been implemented or not. 

In most cases I would expect this to be implementable via a ui.Dialog call in the BEFORE INPUT trigger, but for some there maybe other techniques required, or it may not be possible.

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