just a small hint: my C/S standard includes usually an added Logical Widget into .INI file, something like:
It is already there between Web Widgets.
Original Message:
Sent: 11-22-2024 07:44
From: Ivan Toussaint
Subject: Multiline property change in a field in a grid
Hi Ingo,
Thanks for your reply.
Given the explanations you gave me, I will now check with the team if we go further in this way or if we simply let the current behaviour as it is.
Many thanks once again
Ivan
------------------------------
IvanToussaint
Original Message:
Sent: 11-20-2024 08:04
From: Ingo Stiller
Subject: Multiline property change in a field in a grid
Hi Ivan
The property "multiline" is not dynamic i.e it can't be changed on runtime
Do you really need to change it at runtime?
If so, you have to code some tricky workaround
Define two fields, one with multiline/one without and move it with $paintedfieldproperties to the proper position
If not, why not set the flag multiline to false?
BTW:
You can set/rest this flag in FRM_WIDGETPROPS.UXFIELD
Just create a simple form with UXFIELD as the entity and and search for all suitable fields ( i.e a search form and the entity is the grid one)
Then you can set MULTILINE=T for all such fields
Ingo
------------------------------
Ingo Stiller
Aareon Deutschland GmbH
Original Message:
Sent: 11-20-2024 03:28
From: Ivan Toussaint
Subject: Multiline property change in a field in a grid
Hi,
I'm still pretty new in Uniface coding and I don't reach to solve a problem that is maybe really simple.
I have an editboxlong field defined in several forms, sometimes in grids, sometimes not. For one of these grids which is a search form, I need to change the behaviour of the field so that once a have type a value in it and pressed the enter button, I start a trigger instead of going on a new line.
I thought I could do it with $properties("fieldname") = "multiline=false" in the a sub_entry in the exec operation of the form but unfortunately, the behaviour remains the same : the cursor goes on a new line instead of having the search launched.
Of ourse, I could go in the property window of the field in the form and uncheck the checkbox of the multiline property. But actually, I'm looking for a standard solution for all search forms that is applied in the coding.
Does anybody has an idea of why the behaviour doesn't change and what I could do to et the expected result?
Thanks in advance
Ivan
------------------------------
IvanToussaint
------------------------------