Hide "Note" Form From Outlook If Record Is Not Synchronized Yet

(Doc ID 2414587.1)

Last updated on JUNE 22, 2018

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.13.17.11.0 and later
Information in this document applies to any platform.

Goal

We have created a custom object, named Quote (API: EPCQuote_c), and we have exposed it on both SUI and OUTLOOK pages. Moreover, we have added the OOTB entity of Notes (on both SUI and OUTLOOK).

We have a requirement saying that: when a quote has created in OUTLOOK but has not been synchronized yet, the note form to be hidden.

In order to achieve this we wrote the following script in "After Shown" event:

--
var form = get_form();
var notes_widget = form.get_widget("EPCQuote_c.FormView.note");

if (!security_utils.item_is_synced(item))
{
notes_widget.set_visible(false);
}
--

However, the above script does not work properly. Please have in mind that the same script for another child entity of EPCQuote_c works properly.

So, we believe that we have registered an invalid widget name for the function get_widget.

Could you please advise?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms