In the Ribbonbar Builder, it generates XML file with names of events to trigger on Clicked event. How is this XML file deployed if users could change the event names by editing the XML file to access windows that they may not have access to? They could guess window names such as w_employee, w_department, etc.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Ribbon Bar and XML file deployment
- Sanjay B
- PowerBuilder
- Wednesday, 2 June 2021 04:49 AM UTC
- Monday, 7 June 2021 02:26 AM UTC
- PowerBuilder
- # 1
I was worried about Enabled, Visible too that the user could manipulate inside the xml file to access unauthorized areas of the app but importxml seems like a safe option.
Is Ribbon bar control is integrated with PFC?
- Thursday, 3 June 2021 05:32 AM UTC
- PowerBuilder
- # 2
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,
- Sanjay B
- Thursday, 3 June 2021 21:34 PM UTC
-
Helpful Loading... Helpful 0
- Mark Lee @Appeon
- Friday, 4 June 2021 07:55 AM UTC
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,
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.
I don't believe that the PFC has any idea what a Ribbon Bar is.
Regards ... Chris