You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BUI Pass Field Value in Link or Extension

Received Response
51
Views
1
Comments
edited Jun 13, 2022 4:11AM in General Technical Discussions 1 comment

Content

In the BUI, we are unable to pass the value of a field through a link. The values return null. As a workaround, I am trying to build a button add-in that will read the value of the field and open a new tab with the field values in the url. Does anyone have any tips to help me get started? So far I have been able to add the button to the GlobalHeaderMenu, but now I want it to read field values when it is pressed. My code seems to have broken the button.

Code Snippet

ORACLE_SERVICE_CLOUD.extension_loader.load("GlobalHeaderMenuItem", "1.0").then(function (sdk) {
    sdk.registerUserInterfaceExtension(function (IUserInterfaceContext) {
        IUserInterfaceContext.getGlobalHeaderContext().then(function (IGlobalHeaderContext) {
            IGlobalHeaderContext.getMenu('').then(function (IGlobalHeaderMenu) {
                var icon = IGlobalHeaderMenu.createIcon("font awesome");
                icon.setIconClass("fas fa-thumbs-up");
                IGlobalHeaderMenu.addIcon(icon);
             

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!