Kirk and Lahav,
Thanks, both. I know rather more now than I did yesterday.
One of the things I now know, sadly, is that it’s not possible to do what I
want to do, which is to use arrays within an object as parameters to HTTP Get.
There are plenty of other ways to skin that cat, though: I was m
Tim,
Maybe this is what you need to do ...
I believe that if you do not assign the Enter key to something (eg a
button) then it will by default act as the Accept button. If you want to
intercept the Enter key and stop it from having any effect, then you need
to assign it to an invisible button with
Jeremy,
$o.array[1] will do it.
Take note of the square brackets, and be aware that the index starts from 0,
not 1
However, what you are trying to do can be accomplished much easier using a key
pair object without a matched arrays.
Before:
Array_Names{1} = "Tag_Name"
Array Values{1} = text
Jeremy,
On Mon, Jun 10, 2019 at 12:22 PM Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:
> What I was hoping to do was to build a couple of text arrays in a method;
> return them in an object; and then use them directly in calls to HTTP
> methods, something like this:
>
> C_OBJECT($hea
Kirk,
Thanks - very helpful. What I was hoping to do was to build a couple of text
arrays in a method; return them in an object; and then use them directly in
calls to HTTP methods, something like this:
C_OBJECT($headers)
$headers:=BuildHeaders // returns object containing matched arrays
$statu
On Jun 10, 2019, at 2:00 PM, Chuck M wrote:
> Environment Mac client, 4D version 16.5 built client server and 4D standalone
>
> I have an invisible button with Enter as a shortcut. If I disable the button
> and even if I make it invisible and then Hit enter key, the button code does
> not run (
Chuck,
The button with the assigned 'Enter' key will take precedence over the default
settings of 4D global shortcut keys (see Setting/interface/shortcuts).
When you disable your button, or make it invisible, the default shortcut is no
longer trapped and is validating the entry.
Lahav
-Or
Jeremy,
Depends on which version you are using. If you are in v17 then 'arrays in
objects' are essentially gone. They are collections now and you can use dot
notation with collections.
Otherwise, yes 'arrays' are still arrays within the object.
It's possible to mix the nomenclatures in v17. You _c
is there an accept being posted some how along with a modification of
the record?
an accept without a modification of the record does not fire validate.
to mark the record as "dirty" so it gets saved when an accept is posted
in the on load put :
[table]field:=[table]field
Chip
On Fri, 7 Jun 201
Forgive me if this is a silly question: I’m still very much feeling my way when
working with objects (although growing to appreciate them more and more).
Are arrays within objects rather second-class properties? I know that I can put
an array into an object using OB SET ARRAY, and I can retrieve
Hi all,
Environment Mac client, 4D version 16.5 built client server and 4D standalone
I have an invisible button with Enter as a shortcut. If I disable the button
and even if I make it invisible and then Hit enter key, the button code does
not run (This is expected), but the validate code in th
Thanks Armin. I decided that I was a bit reluctant to run code across the whole
database to replace the obsolete commands (even with structure backups in
place!).
I much prefer to inspect each change visually to asses for any potential
implications. As there are actually not that many instan
12 matches
Mail list logo