We previously showed you how to create an Oracle Application Builder Cloud Service application that reference Oracle Sales Cloud data and create additional custom UIs and objects. The next logical step that you might want to do is include that application as an integral part in your Oracle Sales Cloud application.
You can actually embed the full ABCS app as either its own menu option, or even as one more tab on an existing object like this:
Below we have a video that shows you how to do this.
In the video we are showing several steps:
- Stage the application - useful for further testing by other users
- Publish the application - allow other people to use a production copy of the application
- Version the application - manage changes to your application without disturbing the current app
- Enable application embedding - allow other apps to include your ABCS app in a frame
- Stage & Publish the new app
- Use the nonav parameter to eliminate surrounding chrome in your layout
- Add a tab in Oracle Sales Cloud with the Application Composer
- Add Oracle ABCS application into the new tab - pass in a parameter (in this case the PartyNumber which identifies an account)
- See the Oracle ABCS app inside your account details
Here is a quick demo:
A few tips on what you see in the video
Removing the surrounding chrome
This is useful if you don't want to show the ABCS template and navigation menu. To achieve this add the ?nonav parameter in your application's URL before the # sign. Like this:
Passing a parameter
If you navigate into a page that shows the details for an object in ABCS (for example the account details page) you'll see that at the end of the URL there are several characters that identify the specific object instance. You can then go to the External Service tester in ABCS to find out which field returns this identification.
In the case of the Account object that field is the PartyNumber field.
So if you want to show the page for a specific account you need to embed this field's value to the URL.
This is why in the video we are using the following groovy expression to return the page to show:
return "https://yourserver/release/Budget_Planner/live/?nonav#/editcrm_accounts_accountsPage/" + PartyNumber;
(note that the spacing and the ; at the end are important).