Hello bahman alavi
did you find a solution to your question ? I am facing the same need.
Thanks in advance.
Hi,
The solution is to attach a Command to your Control, and manage the behaviors of the Control through the Command itself.
Commands can be defined using .Net ( https://docs.aveva.com/bundle/engineering-ue/page/911573.html ) or using PML ( https://docs.aveva.com/bundle/engineering-ue/page/1027335.html )
If you want to use PML, here are the steps:
1) Create your Command within a .pmlcmd file in your PMLLIB (you have examples of Aveva Commands in %AVEVA_DESIGN_INSTALLED_DIR%\PMLLIB\common\commands)
2) Register your Command ( https://docs.aveva.com/bundle/engineering-ue/page/1027426.html ). You can use the !!loadUserCommands() function to register your command at startup, as specified in the previous link.
3) Attach your Command to your Control using Customize menu.
Then ,within your Command, you can for example get the value of your Textbox using !this.value(), or use the .execute() method to retrieve the event handler of the textbox validation.
Nice piece of information. Thank you