Hi Sanjay,
For your issue, you can refer to the following link for the detail.
https://docs.appeon.com/pb2019r3/pbug/ch04s04.html#d0e23714
Normally, we suggest you put this XML file into a specified location where the PowerBuilder executable application is deployed at the client end.
You can also refer to these links below to dynamically modify the related Ribbon bar properties via the functions like GetItemByTag function of the Ribbon bar control.
https://community.appeon.com/index.php/qna/q-a/ribbonbarcategoryitem-visible-property
https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s04s274.html
The GetItemByTag and GetItem functions can be used to get items including ApplicationButton, TabButton, Category, Panel, Group, LargeButton, SmallButton, CheckBox, and ComboBox; but cannot get RibbonMenuItem, RibbonApplicationMenu, and RibbonMenu.
BTW, you can also try to download this PowerBuilder-RibbonBar-Example to experience the Ribbon bar related functionalities.
This example shows you how to replace an application menu with a RibbonBar using the 2019 R3 version. For more information, check the tutorial How to Replace an Application Menu with a RibbonBar.
Regards,
Have you downloaded the demo to experience it yet? In the demo, it shouldn’t have the problem you mentioned.
The ribbon item controls have no event and must be bound with user events.
https://docs.appeon.com/pb2019r3/pbug/ch04s04.html#_Important_notes
Different ribbon controls have different requirements on the number of parameters and types of the user event. For how to define the Clicked user event for ribbon controls, see Clicked in PowerScript Reference.
https://docs.appeon.com/pb2019r3/objects_and_controls/ch03s48.html
If you are afraid that the XML file could have been modified, you can load the XML string using the ImportXML function, no need to use the XML file. In this way, you don’t need to deploy the XML file, so you don’t have to worry about it being modified.
You can refer to the following link for detail.
https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s04s378.html
Regards,