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: Cancel Save on Incident workspace based on condition

Received Response
33
Views
5
Comments
edited Jul 25, 2018 10:00AM in UI Extensibility 5 comments

Content

Hi All,

I have an requirement to disable/Cancel Save.

1. Created dropdown and button in BUI and uploaded in incident workspace tab.

2. Based on the dropdown value i displayed one error message on the button click

after displayed the error message i want to disable Save button, I used the below code but it is not working

ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID" , "1")
        .then(function(extensionProvider)
            {
            extensionProviderIExtensionProvider.registerWorkspaceExtension(function(WorkspaceRecord)
                {
                WorkspaceRecord.addRecordSavingListener(customImplementation);               
                }
            );
            }
);
function customImplementation(parameter)
    {
    // Custom implementation goes here.
    parameter.getCurrentEvent().cancel();
    }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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