while working on the project Performance Analyzer, I needed to adapt the two widgets “TextInput” and “NumericInput” via the Development Kit, which allows you to bind the “keyboard” parameter at runtime.
The two new widgets work in all content, except for one content called fhdRegister.
There, switching to the adapted widget triggers three errors that I cannot explain:
Hello @Joerg ,
Please could you minimize the searching area by commenting part of this code?
Just to simplify/confirm if your suspicion regarding the Compound widget is correct or not.
Thank you.
@patrik.simcik here is another piece of information since I looked at this for Joerg last week
If you add the new TextInput widget to the mappView package so it shows up in the toolbar you can’t drag & drop this widget into content. Almost as if the system knows something is missing for the widget / from this package.
As @marcel.voigt illustrate if you can’t drag and drop the widget it’s because there is a missing thing in the widget. I’ve already see this, but I can’t remember what it was.
Is it possible to have the library to test it ? And have a look ? (if you have a test project with just the mappView error that would be nice )
Also is it AS6 ?
One thing, in the TextInput brease widget, it depend on alot of file in the brease/common folder.
You cannot import this files from another widget lib, you need to copy and edit them to include them in your widget library.
I have identify that eventbinding of the compound widget seems to be the problem, when you comment them, the compilation is done without error. I will investigate a bit more why eventbinding are the problem.
Ok so I think there is a problem with MappView compilation, compiler try to access a folder that didn’t exist.
If B&R guys see that :
An exception DirectoryNotFoundException is throw in the class CompoundWidgetEventBindingGenerator in the function GetWidgetDirectory (in BR.IAT.Builder.Content.Widget).
There is something like CustomWidget is detected as a CompoundWidget or the compilation of the CustomWidget library should be complete before calling the this part of the program (missing dependency ?)
So the error message is right, he search the custom widget folder in “C:\projects\PAError\Temp\mappView\Widgets” and it do not exist.
I think this problem will need a B&R Support ticket. I will try to just reproduce a more lite project to test if it’s the fact to have CustomWidget library and CompoundWidget library in same application. And use 1 widget of both library on the same content.
I keep you in touch here, if needed I can contact my local B&R office.