Showing posts with label attachment. Show all posts
Showing posts with label attachment. Show all posts

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:


Sunday, November 12, 2017

OAF attachment - set insert allowed update allowed and delete allowed programatically






In Oracle EBS OAF attachment we can set "Insert Allowed", "Update Allowed" and "Delete Allowed" properties of an entity map programmatically in process request of controller:


Saturday, April 15, 2017

Oracle EBS OAF attachment to be updated / deleted by creator only

Have you ever got a requirement in Oracle EBS FND attachments where in multiple users can add an attachment of the same category but only the person who has created it can delete or update it.

 For others delete and update column will be disabled. I achieved it recently in OAF by creating a custom DataBoundValueVIewObject class and associating it with update and delete icons of the attachment table. Since attachment table is a seeded region, I had to extend its controller to associate custom DataBoundValueVIewObject with update and delete icons.


  1. Create a custom DataBoundValueViewObject (xxOADataBoundValueViewObject ) class:


Thursday, May 7, 2015

Oracle MAF : Upload an image from camera or library

This blog is to share my experience in implementing a very common requirement - attach a photo by integrating with device camera or photo library and then passing the photo  as Base64-encoded string.

STEP 1: Enable camera plugin in your maf-application.xml


Wednesday, December 25, 2013

ADF - Java Mail with attachments

First create a mail session in weblogic server. In Weblogic server under "Services" you can find Mail sessions. Create a new Mail Session. Give following information:
Name - test
JNDI Name - mail/test
Java Mail Properties
mail.smtp.password=[password]
mail.debug=false
mail.smtp.user=[user name]
mail.from=xx-do-not-reply@abc.com
mail.smtp.host=[host name or IP of exchange server]
mail.smtp.auth=false
mail.smtp.port=25
mail.verbose=false
mail.disable=false
mail.transport.protocol=smtp


The following java method can be called to send mail with attachments

destination - array of email addresses to which mail has to be sent
subject - subject of mail
content - body of mail
data - list containing byte[] of the files to be attached in the email
fileNames - names of the attachement
contentTypes - content types of the attachments