02-13-2009 12:55 AM
Hi,
I have a question. I have to do something in my addin in ACT with current company (action from menu). But user can change any fields in company page (without saving) and click my action. When I get company attributes – attributes are not changed – previously saved.
Question – how I can force saving current company before I do my action?
Best regards
bernardo
02-13-2009 01:32 AM
Call actapp.applicationstate.currentcompany.update() before you do your stuff.
Tom
02-13-2009 01:47 AM
Hi Tom
update is not enough, because fields in current company are not set. In this moment changes are made only in controls on the forms (e.g. city name) ant update is not working in this case