by lucabaldini » 17 May 2021, 16:33
Ok, I understand... the "problem" is that "this" is wrong in that case... if you are inside a form.
If you would use any language (C#, Java, Javascript, C++, etc..) where you have the "this" token you have to decide what type this is... if you are inside a class (a form) this is the current instance...
When you write code inside the form "this" is the form... and the form library does not have a openDocument method... The app has one.
In version 20.5 and before this.openDocument was accepted but was wrong... fortunately InDe generated the right code even if the expression was not correct.
In version 21.0 I had to check for method/object match...
If you want to use app's methods (like openDocument) you have to use the app (SolomonAdjiustmentCalculators2022)... Fortunately you don't have to write everything... just type "S" and the first object in the intellisense combo it's probably gonna be the app you are looking for.