how can i open a dialog from POUs and not from Devices via FbOpenDialog.
In an project would it work when i place it in the application, but in a library?
I had a similar situation recently where this didn't work, but read to the end to see the solution.
The reason is that CODESYS only downloads visualisations (dialogs) if they are part of the project or linked to the project. In your case the dialog is not loaded onto the controller.
But the solution is pretty simple:
Double click on the Visualization Manager in your application.
Select the Tab "Visualizations".
Here you can see that your dialog is not "checked". Do this manually and load your project on the controller.
Then your code should be able to open the dialog, because now it exists on the controller.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
how can i open a dialog from POUs and not from Devices via FbOpenDialog.
In an project would it work when i place it in the application, but in a library?
Example attached.
Thanks in advance
Max
Update:
- append a screenshot
Last edit: malie 2024-08-20
I had a similar situation recently where this didn't work, but read to the end to see the solution.
The reason is that CODESYS only downloads visualisations (dialogs) if they are part of the project or linked to the project. In your case the dialog is not loaded onto the controller.
But the solution is pretty simple:
Double click on the Visualization Manager in your application.
Select the Tab "Visualizations".
Here you can see that your dialog is not "checked". Do this manually and load your project on the controller.
Then your code should be able to open the dialog, because now it exists on the controller.
Hello,
thanks for the answer, that helped a little.
How to achieve this behavior automatically when importing from a library, there can be a lot of dialogs from different librarys?