• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / Items / How to Disable Submit Button in OA Framework?

How to Disable Submit Button in OA Framework?

October 27, 2012 by techhoneyadmin

Submit button is a very important component of every OAF page and there often arises a situation where an OA Framework technical personnel need to disable (not hide) OA Framework Submit Button dynamically.

We will learn today how to disable OA Framework Submit Button at runtime

Before we begin I assume that you have an OAF page (xxTrialPG) and a controller (xxTrialCO). Also I assume that you have created a submit button bean OASubmitButtonBean(xxTrialSubmitButton)

 

Let’s take this in steps for easy understanding.

Step 1: Import the OASubmitButtonBean bean in your controller xxTrialCO

import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean

 

Step 2: Create a handle or reference of the OASubmitButtonBean bean in controller

OASubmitButtonBean xxTrialSubmitButtonHandle = (OASubmitButtonBean) webBean.findChildRecursive(“xxTrialSubmitButton”);

 

Step 3: Now using the xxTrialSubmitButtonHandle handle created in step 2 we can disable the xxTrialSubmitButton

xxTrialSubmitButtonHandle.setDisabled(true);

 

And it’s done.
Thanks for Reading.

Filed Under: Items, OAF Miscellaneous Tagged With: Disable Submit Button, Disable Submit Button dynamically, How to Disable Submit Button, how to Disable Submit Button at runtime, how to Disable Submit Button dynamically in OAF, OA Framework Disable Submit Button, OAF Disable Submit Button, OASubmitButtonBean

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in