Friday, 19 May 2017

Printable Button in OAF



1.       Create a button on Page Layout Region like

2.       Change Properties of Printable Button in Property Inspector

ID: PrintablePageID
Item Style: button
Attribute Set: /oracle/apps/fnd/attributesets/Buttons/PrintablePage
Note: After specifying Attribute set just Tab Out, Comments will add automatically.
Comments: UI Standards 'Printable Page' button as of 12/09/02

BC4J
View Instance:  XXEmpDetails          (select any View Object)
View Attribute: (Optional)

Navigation
Destination URI: OA.jsp?page=/xxvem/oracle/apps/ont/order/webui/XXVEMOrderAttachmentsPG&retainAM=Y&OARF=printable&HeaderId={@XXHeaderId}
Target Frame: _blank
Note: Here  
 /xxvem/oracle/apps/ont/order/webui/XXVEMOrderAttachmentsPG is the Actual Page Path and  {@XXHeaderId} is the View Attribute

VISUAL
Prompt: Printable Page


Add Code in Controller: In Process Form Request

 if (LafUtils.isPrintableFacet(pageContext))
   {
       // Printable page mode processing
        OAButtonBean print =(OAButtonBean)webBean.findIndexedChildRecursive("PrintPageId");
        print.setRendered(Boolean.FALSE);
     

   }

No comments:

Post a Comment

SCript to Migrate OAF Personalizations To Other Instances

Download OAF form personalization java oracle.jrad.tools.xml.exporter.XMLExporter \/oracle/apps/ar/hz/components/account/site/webui/cust...