Uniface User Forum

 View Only
  • 1.  Multiline property change in a field in a grid

    Posted 15 days ago

    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
    ------------------------------


  • 2.  RE: Multiline property change in a field in a grid

    Posted 15 days ago

    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
    ------------------------------



  • 3.  RE: Multiline property change in a field in a grid

    Posted 13 days ago

    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
    ------------------------------



  • 4.  RE: Multiline property change in a field in a grid

    Posted 13 days ago
    Edited by Gianni Sandigliano 13 days ago

    Hi Ivan,

    just a small hint: my C/S standard includes usually an added Logical Widget into .INI file, something like:

    TextArea=ueditbox(font=editfont;autoselect=on;dimmedbackcolor=off;multiline=on)

    It is already there between Web Widgets.

    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------