Wednesday, December 6, 2017

OAF Attachment Disable File or Url or Short text attachment

In Oracle EBS OAF Attachments you can disable different attachment types like File, URL, Short text, Long Text using the following code in processRequest of your controller:

  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
      OAMessageAttachmentLinkBean att = (OAMessageAttachmentLinkBean)webBean.findIndexedChildRecursive("att1");
      if(att != null)

The four parameters can be set true or false to show the required attachment types:
setDisplayedAttachmentDataTypes([File], [URL], [Short Text], [Long text])

No comments:

Post a Comment