Manually refreshing a business object

Is there a way to manually refresh a scripted business object that has the property 'Always Refresh' set to false?

 

I have a scripted business object that takes a long time to refresh (it is calling a web service) and I would like it to refresh once a user has selected a particular value in a drop-down field.

 

Any help would be appreciated.

Tagged:

Comments

  • Hi Xavi

     

    Yes, you can call .Refresh()

     

    I think this method was introduced in 9.1.2

     

    Thanks

     

    iain

     

  • Hi Iain,

    Thank you very much for your reply.

    In scripted business objects there is no Refresh() method unless we create them ourselves. Calling the Read() method on my scripted business object refreshed the data as I wanted.