today I want to document simple but very useful feature if you work with multiple threads in Winforms application.
Quite often it happens that you execute in some paralel thread long running calculations and would like time from the time notify results to UI.
But if you try to do this then you'll get an error that will say to you that parallel thread doesn't have permissions to some control because it didn't create such a control. So, how then update UI?
The answer is simple, you should use method Invoke of the control. In that case everything inside of method Invoke will be executed from UI thread.
Needless to say that such approach is workable but to some degree … more
recently friend of mine gave me wonderful question:
In PXSelect command, I saw Search, Search2, Search3… keywords, please explain the difference.
Thats really good question which shows his attentiveness to details.
So, no let's go part by part.
First of all, Search statement can be applied to those kinds of attributes: PXSelector, PXDbScalar and PXDefault.
Also you can apply Search statement to cases when you updated something in cache of Acumatica and what to reopen that part. It can look like this:
or like this:
Don' … more
today I want to share some strange behaviour that I faced.
Recently I needed to switch from .Net core 1.1 web app to .Net core 2.0 app.
I found over internet that simplest way to achieve it will be just opening project in Visual Studio 2017 and VS will switch your project by itself. I decided to give to such attempt a try.
Initially all went fine. Visual Studio 2017 gave me very nice looking report which convinced me that life is easy and wonderful. Actually it said that project was switched to .Net core 2.0 with success.
Then I've tried to execute in package manager console Update-Database command. Unfortunately I've seen following error message:
An error occurred … more