Showing posts with label OAF. Show all posts
Showing posts with label OAF. Show all posts

Tuesday, 3 September 2019

Link, Icon Event Sample

/*===========================================================================+
 |   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
 |                         All rights reserved.                              |
 +===========================================================================+
 |  HISTORY                                                                  |
 +===========================================================================*/
package ItemStyles.oracle.apps.fnd.webui;

import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;

/**
 * Controller for ...
 */
public class LinkImageCO extends OAControllerImpl
{
  public static final String RCS_ID="$Header$";
  public static final boolean RCS_ID_RECORDED =
        VersionInfo.recordClassVersion(RCS_ID, "%packagename%");

  /**
   * Layout and page setup logic for a region.
   * @param pageContext the current OA page context
   * @param webBean the web bean corresponding to the region
   */
  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
  }

  /**
   * Procedure to handle form submissions for form elements in
   * a region.
   * @param pageContext the current OA page context
   * @param webBean the web bean corresponding to the region
   */
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
   
    String eventNameStr = pageContext.getParameter(EVENT_PARAM);
   
    if (eventNameStr !=null && "dynamicLinkEvent".equals(eventNameStr))
 
   {
    OAException infoMsg = new OAException (" User clicked on Dynamic Event", OAException.INFORMATION);
   
    throw infoMsg;
   
   }
 
   //addEvent
 
    else if (eventNameStr !=null && "addEvent".equals(eventNameStr))
   
    {
    OAException infoMsg = new OAException (" User clicked on Add Image Event", OAException.INFORMATION);
   
    throw infoMsg;
   
    }
 
 
      //deleteEvent
     
       else if (eventNameStr !=null && "deleteEvent".equals(eventNameStr))
     
       {
     
       String nameStr = pageContext.getParameter ("pName");
     
       OAException infoMsg = new OAException (" User clicked on Add Image Event"+"Parameter Value-->"+nameStr, OAException.INFORMATION);
     
       throw infoMsg;
     
       }
 
 
  }

}

Thursday, 6 June 2019

How to set JDeveloper path for OAF



1. Navigation

2. set path in  JDEV_USER_HOME in User Variables



3. set path in  Path Variable in User Variables


4. set path in  JDEV_USER_HOME in system Variables


5. set path in  Path Variable in system Variables



6. Create Desktop Short Cut





Tuesday, 21 February 2017

TextItem and Button Sample

/*===========================================================================+
 |   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
 |                         All rights reserved.                              |
 +===========================================================================+
 |  HISTORY                                                                  |
 +===========================================================================*/
package ItemStyles.oracle.apps.fnd.webui;

import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;

/**
 * Controller for ...
 */
public class ItemStylesCO extends OAControllerImpl
{
  public static final String RCS_ID="$Header$";
  public static final boolean RCS_ID_RECORDED =
        VersionInfo.recordClassVersion(RCS_ID, "%packagename%");

  /**
   * Layout and page setup logic for a region.
   * @param pageContext the current OA page context
   * @param webBean the web bean corresponding to the region
   */
  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
  }

  /**
   * Procedure to handle form submissions for form elements in
   * a region.
   * @param pageContext the current OA page context
   * @param webBean the web bean corresponding to the region
   */
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);

      //To click the button-Lokanadham
    if(pageContext.getParameter("clickBtn") !=null)
 
    {
 
    OAMessageTextInputBean nameBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("nameID'");
    String nameStr = (String)nameBean.getValue (pageContext);
 
      //To validate the Item either null or empty -Lokanadham
    if(nameStr !=null && !"".equals(nameStr))
 
    {
 
        //To Disply message message after entering the value--Lokanadham
    OAException welcomeMsg = new OAException ("Welcome to OAF"+nameStr,OAException.INFORMATION);
    throw welcomeMsg;
 
    }
 
 
    else
    {
 
    OAException erroMsg = new OAException ("Pleae Enter Valid User Name");
 
    throw erroMsg;
    }
  }

  }

}



You have insufficient privileges for the current operation.

Issue:


Resolution:




Solution: Opening the Page after changed to Default Local IP Address

Monday, 2 November 2015

How to Enable Personalization link for OAF Pages

To Access OAF Personalization in Oracle Apps, we need to set the values of following profiles options to enable Personalization Page link in OAF Pages. You can enable these profile options at all levels (Function, Site, Responsibility, User)

These four profile options are mandatory for working on OAF personalization in apps. To Assign these Profile Options, we need to go to System Administrator or Functional Administrator Responsibility.

Navigation:
System Administrator -> Profile -> System

Profile Name
Profile Value
FND: Diagnostics
Yes
Personalize Self-Service Defn
Yes
FND: Personalization Region Link Enabled
Yes / Minimal
Disable Self-Service Personal
No


Meanings:

1. FND: Diagnostics
Setting the FND: Diagnostics (FND_DIAGNOSTICS) profile option to "Yes" will enable the diagnostics global button to be rendered on the screen.

2. Personalize Self-Service Defn
Set the value to Yes to allow ‘Personalize’ link to appear at the right top of the OAF page.

3. FND: Personalization Region Link Enabled
It renders the "Personalize  Region" links above each  region in a page. Each link  takes you first to the Choose Personalization Context page, then to the Page Hierarchy Personalization page with focus on the region node from which  you selected the "Personalize  Region" link.

Two Options
Set the value to Yes to display all the personalization links above each OAF page region.
Set the value to Minimal to display key regional links.

4. Disable Self-Service Personal
Set the value to No will enable all OAF personalizations on all pages at all levels (Function, Site, Responsibility, User)








Tuesday, 28 April 2015

Launch JDeveloper


Steps

  • Assign Toolbox Responsibilities.
  • Launch JDeveloper and configure the database connection and user..
  • Test the Setup. 

In Detail

Assign Toolbox Responsibilities.


Launch JDeveloper and configure the database connection and user.
Navigate to Connection>Database. Right click on database and click on New Database connections

Make it as Apps

Enter Your Data Base Connection User name and Password

Congure 3rd step of connection with Host Name, JDBC Port and Service Name like below.

Test Connection

Connected to Database

Connected to Database

Navigate to Application>Tutorial>Right Click on Tutorial > Click on Project Properties.

Navigate to Run Options>select Diagnostic and OADeveloper Mode

Go To Runtime Connection, configure with DBC File Name,User name, password, Applicaltion short name, Responsibility Key.

Right Click on Tutorial>Click on Rebuild

Navigate to test_fwktutorial.jsp>Right Click on Run

Connected to Database
Connected to Database
Connected to Database
Connected to Database
Connected to Database
Connected to Database
Connected to Database

Test the Setup. 

Configure your JDeveloper for OA Framework Release 12

Steps:

  1. Download the suitable patch.
  2. Configure the JDEV_USER_HOME Environmental Variable.
  3. Obtain a Data Base Connection File.
  4. Create a Desktop shortcut to JDeveloper


1. Download the suitable patch. (Click below link to see the Steps) 

Download Relevant 10g JDeveloper Patch for OAF




2. Configure the JDEV_USER_HOME Environmental Variable.
    Crate directory and Unzip the patch file.

copy the path, create the environment setup by clicking on environment variables.

Step3: Click New. set the variable value as path for variable  JDEV_USER_HOME.


Test the environmental variable in command prompt.



3. Obtain a Data Base Connection File.
Type  echo $FND_SECURE in server through Putty to get the path.


Navigate to above path through WINScp to get the .dbc file

Copy .dbc file into Local Direcoty where dbc_files are located. (Ex: D:\LOKA_OAF\jdevhome\jdev\dbc_files\secure)



4. Create Shortcut for JDeveloper.
Create a New Shortcut on Desk top. Select path for jdevW.exe. Click Next and finish.


Click on Icon to Open JDeveloper.

Thursday, 23 April 2015

Download Relevant 10g JDeveloper Patch for OAF

Step1: Login into your Oracle Account

Step2: Navigate to Patches&Updates. If you know the patch number then put the number in filed and click on Search.

Step3: Download the Zip file If you have Download permissions.


Step4: If You don't Know the Patch Number then type Key word in search option.
          (Ex: 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1.3)

Step5: Click on selected topic

Step6: Find the suitable Patch and click on it;

Step7: Download the Zip file If you have Download permissions.


Thursday, 26 December 2013

How to find correct version of the OAF Page.

Step 1: Login with Your Name, Click on About this page

Step 2: Navigate to Technology Componet Tab. Find the Version details as i Marked in Red Circle.