Posts

Showing posts from 2014

OAF SWITCHER FUNCTIONALITY

Image
      1) Creation of Attribute in VO( View attribute = UpdateSwitcher)       2) creation of column 3) Creation of switcher region     View attribute = UpdateSwitcher 4) ID: UpdateDisable  this value should be equal to the value of  View attribute (UpdateSwitcher) 5) ID: UpdateEnable  this value should be equal to the value of View attribute         (UpdateSwitcher) 6) Prompt: Record needs Correction  

OAF Basic Concepts

This post will explains some terminologies that is used in Oracle Application Framework (OAF). Entity Object - business component entity objects maps to database table or view that allow DML operations and that used to cache data result set and perform validation before post changes to database. Association Object - business component association objects implement the relationships between different entity objects and can mapped to database referential integrity constraint or non existing referential integrity constraint and this case constrain will be validated in OAF but not in database. View Object - business component view objects are used to display data in UI pages and it can be based on 1- Entity Object or many entity objects and this case it supports DML operations. 2- SQL queries : that's doesn't support DML operations 3- Static : Programmer create structure of view object attributes and can add static data also. 4- Programmatic : Programme...

How to move .jpx file from one environment to anothr using personalization

JPXImporter command to import the jpx to other environment. and move the extended class files and xml files to $JAVA_TOP java oracle.jrad.tools.xml.importer.JPXImporter $AP_TOP/xxx/Setup.jpx -username apps -password -username <data base user name> -password <data base password> -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp)(host =<hostname> (port = <port id>)))(connect_data = (sid = <sid>)))"

OAF SMS SENDING FEATURE

Fron Controller Call xxx_SendSMS class. Controller Code: xxx_SendSMS oSendSMS = new xxx_SendSMS(); String balance = oSendSMS.checkBalance("MobileNumber", "Password"); oSendSMS.sendMessage("MobileNumber", "Password", "Sender", " Message","Number"); xxx_SendSMS Class File:===> package xxx.oracle.apps.per.selfservice.user.webui; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; import java.net.Authenticator; import java.net.HttpURLConnection; import java.net.InetSocketAddress; import java.net.Proxy; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import oracle.apps.fnd.framework.webui.OAPageContext; public class xxx_SendSMS { private String msg = ""; private String balance = ""; static char[] hexDigit = { '0', '1', '2', '3', '4'...

CAPTCHA IMAGE GENERATION IN OAF PAGE

Image
THE DOCUMENT DESCRIBES HOW TO CREATE CAPTCHA IMAGE IN OAF PAGE: Step 1: get captcha: // to get the captchaImage Field in OAF page(code to be written in controller)=>     OAImageBean captchaImage = (OAImageBean)webBean.findIndexedChildRecursive("CaptchaImageField");     captchaImage.setSource("captchaservlet"); Step 2: Creation of captcha servlet: Step 3:  captchaservlet code to generate captcha image: import com.sun.java.util.collections.Random; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.awt.GradientPaint; import java.awt.RenderingHints;   public class CaptchaServlet ex...