• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

SetError() and first display of form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SetError() and first display of form

    I have a form with data and the form fields need to be highlighted as being in error when the form (a pop-up) is displayed. (The form is displayed from a button on a grid row).
    This works fine on the 2nd display of the form, but not the first time the form is displayed. On the first execution of the pop-up form, fields that have been set as errors with SetError() are not showing the error highlight nor message. But subsequent presentations of the form do show the errors highlighted and the error messages. Also, once it is working, it works for all subsequent presentations of the form - with or without errors.
    Scenario:
    1. Display pop-up form - SetError() has been executed on a field. - No error indication
    2. Close the form and display it again - now the field is showing the error highlight and the message.
    3. Close the form and open same form for another record where there is no error. The form is displayed correctly with no error indication.
    4. Close the form and open a completely different record with errors and the errors are displayed correctly.

    So it seems that once the pop-up form is presented to the user and the user interacts with the form (closing the form is the only available action the user has), now the SetError() function is working.
    Until the user interacts with the form, the SetError() seems to not work.

    Is there a way to make this work on the initial presentation of the form?

    Thanks for your indulgence.
    Attached Files

  • #2
    Hi Paul,

    What option did you choose to when the form should call the helper program?

    Also is the form auto load and when you display the form are you just filtering the widget?

    Thanks

    Comment


    • #3
      1. At form creation and each time a field is changed
      2. I tried doing a Show/Hide for the form and I also tried filter the widget.

      Comment


      • #4
        The next update is reworking the whole form creation, data source load, etc... process and this will be resolved.

        Comment


        • #5
          Ok, Thanks.

          Comment

          Working...
          X