Skip to Content
author's profile photo Former Member
Former Member

UI: Edit box gets enabled

Hi All,

I've added an extra tab (folder) to an existing form. Under the new tab is an EDIT field, that I want to have disabled, and to stay disabled.

When I add the EDIT field to the form I set it to enabled=false.

When the folder is clicked (event ITEM_PRESSED) and before_action true, the field is still disabled, but when I get ITEM_PRESSED and before_action=false, the field is enabled.

If I set the field as disabled when the folder has been clicked (ITEM_PRESSED and before_action=false)the field is disabled on the form, but if the Next Record, Last Record etc. is pressed the fields is enabled again.

How can I keep the field enabled??

I hope some of you can help.

Thanks in advance

Jesper Carstensen

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2004 at 03:26 PM


    When a form changes status (like in Add/Find/Records Manipulation) it returns to its default settings.

    since an EditText is - by default - an enabled Item, it returns to that status (you can use StaticText for permanent disabled field).

    In case you still need to use EditText - make sure that you cover all events that will cause the form to return to its default (mainly MenuEvents).

    this is done for system fields as well

    Hope I helped.

    Yaniv G.

    SDK Support,

    SAP Manage Israel.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      A solution for avoiding the flash in matrix (only work on user matrix, not in system matrix) is putting this before the update


      and when finished updating


      where oMatrix is your user matrix


      Salvador Biot

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.