Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to force company saving?

Tuned Listener
Posts: 38
Country: Poland

How to force company saving?

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

 

 

Nickel Super Contributor
Posts: 441
Country: UK

Re: How to force company saving?

Call actapp.applicationstate.currentcompany.update() before you do your stuff.

 

Tom

Tuned Listener
Posts: 38
Country: Poland

Re: How to force company saving?

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 Smiley Sad