Need to make the Attachment Bean mandatory. Use the below line of code in PFR.
OAMessageAttachmentLinkBean oamessageattachmentlinkbean = (OAMessageAttachmentLinkBean)oawebbean.findChildRecursive("");
String attachVal = (String)oamessageattachmentlinkbean.getAttributeValue(oapagecontext.getRenderingContext(),TEXT_ATTR);
if("None".equals(attachVal))
{
throw new OAException(“Attachment mandatory”,OAException.ERROR);
OAMessageAttachmentLinkBean oamessageattachmentlinkbean = (OAMessageAttachmentLinkBean)oawebbean.findChildRecursive("");
String attachVal = (String)oamessageattachmentlinkbean.getAttributeValue(oapagecontext.getRenderingContext(),TEXT_ATTR);
if("None".equals(attachVal))
{
throw new OAException(“Attachment mandatory”,OAException.ERROR);
Thanks Anna. This was very helpful :)
ReplyDeleteHi Chiranjeevi,
ReplyDeleteAttachment mandatory code is working fine in English pages but in Arabic it is not. Can u help me out?
This comment has been removed by a blog administrator.
ReplyDeleteHi, how can we do the same functionality in 12.2.10 ?? The above code is not working as expected. Please suggest
ReplyDelete