on 03-15-2019 12:48 PM
Dear Experts,
I was analyzing Manage Quota Arrangements and in the Items , I have seen an BOPF Action in BOBX Transaction.
But When I see the app in UI , On click of that BOPF Button ,SAP is showing some dialog box on the front end side.
I would like to understand how SAP made back end action button designed through BOPF and created UI for that button.
In the app logic, I saw under the EXT Folder ,there is logic for action button and custom fragment for the pop up thing.
But how i should map the button to front end? Please shed some light on this
Hi Pawan Kalyan
Actually they are calling the action manually, you can find the custom action defined in the manifest.json and it's press handler function, you can go and check the function handler code in the controller extension.
There is an extension api method => invokeAction where they will pass the action name to it. So before calling that you can write your custom code or custom popup as per your requirement and once confirmed, you can cal that method to perform the action.
https://ui5.sap.com/#/topic/dd78acad2f164560ad6b0e24ed2cd8ee
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pawan,
The main purpose of accessing RAP via SAPUI5 should be to access and manage CDS Behavior Implementation Classes in RAP, right?
But unfortunately this cannot be done, or I could not find a way. Do you know about this?
I can access RAP-oData from an empty UI5 project. No problem with that. However, I don't know how to reach the annotation (action-button) in this RAP-oData. Because when I press the button on the UI, I want this button to be able to reach the "Behavior Implementation Class" that I created together with the CDs, as in fiori. But I can't find how to do this? I have also read the SAP Flexible Programming Model topic, but I do not think it is relevant to my position.
If you know this, could you suggest me how to do it please?
UI5 Freestyle Application call (RAP) BOPF Custom Action
Thank you very much in advance.
Thank you
Orhan
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.