Skip to Content
avatar image
Former Member

refresh form with new db contents

Hi all,

Sorry to bother you all once more...

I'm updating some user defined fields of the currently displayed form as a response to a button-click and I would like the screen to reflect those changes.

According to the help file, this should be possible using form.update, but nothing happens.

When I query the form, the old data is still there and the old data is displayed as well. When I query the di-object the new data is there (after I did an oSboQuotation.update). when I close the form and re-open it, the new data is displayed

btw: I'm accessing the udf-form through

getFormBytypeandCount(-masterform.type, masterform.typecount) and I really appear to get the right form, so that is not the problem

Any ideas?

Thanks once more,

Jacques

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 25, 2004 at 09:18 AM

    Hi,

    Form.Update updates the UI Items properties on the form and <b>not the data</b> (works for item Enabled/Visible/location).

    Data requery is not exposed until SAP Business One version 2004(6.7).

    until then - data requery should be done in your code(retrieving the data from DB and load it to the UI)

    Regards,

    Yaniv G.

    SDK Consultant,

    SAP Manage Israel.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Yaniv,

      So form.update is more of a repaint than a requery. Not exactly what I hoped for, but okay that's the way it is...