Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

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.