Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36898
    slh
    Participant

      Hi

      I’m updating a custom field after a calculation that happens frmEditorPatient.OnAfterLoadRecord()

      The database is updated but the field does not display the new value until the screen is closed and re-opened.

      Is there a way to either set the value in the number field or force a screen refresh?

      thanks

      Sean

      #36902
      Joshua Barrs
      Keymaster

        Hi Sean,

        Please see the example in this post:-

        https://pioneersoftware.co.uk/forums/topic/how-to-set-a-default-town-city-for-new-patients

        To access a “custom” control, you need to prefix the field name with “customEditor_”

        For example, for a custom field called “my_custom_field” it would be :-
        DevExpress.XtraEditors.BaseEdit ed = Editor.FindControl("customEditor_my_custom_field") as DevExpress.XtraEditors.BaseEdit;

        #36904
        slh
        Participant

          thank you. That works brilliantly.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.