RadiButtons Functionality in OAFramework page

Hi All,
I have 3 radiobuttons like HQLocations,Notrequired & OneTimeAddress and having the MessageTextInput button( Attribute1) in a OAF page.
The Requirement is as follows
1). If i select HQLocations Radio Button then MessageTextInput button( Attribute1) should be readonly and display the POPUP LOV window on the same page with a valid HQAddresses.
2.) If i select the Notrequired RadioButton then the MessageTextInput button( Attribute1) should be readonly and click NEXT button then it goes to the next page.
3.) If i click OneTimeAddress RadioButton then MessageTextInput button( Attribute1) should be Readonly 'FALSE' and redirected to same page.
3RadioButtons & RadioGroup are defined in CO.class file and MessageTextInput button( Attribute1) is defined in.XML file only.
This is my CO.class code for 3Radibuttons & radioGroup.
package oracle.apps.icx.por.req.webui;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageRadioButtonBean;
import oracle.apps.icx.por.req.webui.OneTimeLocationCO;
public class OneTimeLocationCO extends OneTimeLocationCO
public OneTimeLocationCO()
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
OAMessageRadioButtonBean hqButton = (OAMessageRadioButtonBean)oawebbean.findChildRecursive("GroupButtonOne");
hqButton.setName("reqRadioGroup");
hqButton.setValue("HQ Location LOV ");
hqButton.setRendered(true);
OAMessageRadioButtonBean naButton = (OAMessageRadioButtonBean)oawebbean.findChildRecursive("GroupButtonTwo");
naButton.setName("reqRadioGroup");
naButton.setValue("Not Applicable");
naButton.setRendered(true);
OAMessageRadioButtonBean onetimeButton = (OAMessageRadioButtonBean)oawebbean.findChildRecursive("GroupButtonThree");
onetimeButton.setName("reqRadioGroup");
onetimeButton.setValue("One Time Address");
onetimeButton.setRendered(true);
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processFormRequest(oapagecontext, oawebbean);
String radioGroupValue = oapagecontext.getParameter("reqRadioGroup");
Anyone help me to change the code for the above requirement. I am a new to OAF and I don't have much more knowledge on JAVA.
IT's Urgent. Please help me on this.
Many thanks in advance,
Nag.

You can solve it by adding a space with the column like
select emp_id || ' '
from ....
This way it won't be considered as Numeric value in the excel.
--Prasanna                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Calling a function in OAF page

    Hi Frnds,
    Iam trying to call a function in oaf page but somehow its not working , can u please identify mistake in my code .
    the below is CO code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule am=oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("CandidateApplicantDetailsVO");
    String Nationality =null;
    CandidateApplicantDetailsVORowImpl row =null;
    int i=0;
    if(vo!=null)
    int cnt= vo.getRowCount();
    oapagecontext.writeDiagnostics(this, "row count is:"+cnt,1);
    if (cnt > 0)
    RowSetIterator rs=vo.createRowSetIterator("rs");
    if(rs!=null)
    while(rs.hasNext())
    row=(CandidateApplicantDetailsVORowImpl)rs.next();
    if(row!=null)
    Nationality = row.getNationality();
    oapagecontext.writeDiagnostics(this, "Nationality is :"+Nationality,1);
    String outputVal;
    try
    OADBTransaction txn = am.getOADBTransaction();
    CallableStatement cs = txn.createCallableStatement("BEGIN :1:= hr_general.decode_lookup(:2,:3);END;",2);
    oapagecontext.writeDiagnostics(this, "Inside the try block",1);
    System.out.println("3");
    cs.setString(2,Nationality);
    cs.setString(3,"NATIONALITY");
    cs.registerOutParameter(1,Types.VARCHAR);
    System.out.println("4");
    cs.execute();
    System.out.println("executed");
    outputVal=cs.getString(1);
    oapagecontext.writeDiagnostics(this,"The Nationality Value is:"+outputVal,2);
    cs.close();
    //txn.commit();
    catch(Exception e)
    //cs.close();
    System.out.println("6");
    throw new OAException(e.getMessage());
    } // row loop
    } // while
    } //rowset loop
    }// count loop
    }//viewobj loop
    } // End of PR
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    when i run this page , the controller was going inside the try block but the Output was not getting. can somebody figure out where iam missing.
    Thanks to all in advance
    have a good day :)
    GK.

    Hi Frnds,
    I got the problem,
    Iam trying to send a Default value NATIONALITY in setString
    cs.setString(2,Nationality);
    cs.setString(3,"NATIONALITY");
    I have changed the lines to
    String lookup_type="NATIONALITY"
    cs.setString(2,Nationality);
    cs.setString(3,"Lookup_type);
    now i got the o/p, hope this may help others

  • Is there a spell check function in iCloud pages?  Doesn't seem to be.

    Is there a spell check function in iCloud pages?  Doesn't seem to be.

    Select the spanner > Settings > Check Spelling.

  • Jquery function calls in page html header

    Hi ,
    I have included the Jquery Js files in my page template as follows :
    <script type="text/javascript" src="#IMAGE_PREFIX#js/jquery-1.3.2.min.js"></script> Now If I use a function like below in my template, it works perfectly well
    <script>
    $(document).ready(function(){
    $("#dialog2").dialog({
    bgiframe: true,
    autoOpen: false,
    height: 300,
    modal: true
    </script>
    {code}
    However if I call the above script in my Page html header it throws an error
    <b> $ is not defined </b> 
    but works well if I add in the tempalte.
    If I look at the page source , i notice that the page html header is displayed and then the page template header section and seems like that is the reason why the error comes when I call Jquery functions in my page html header....
    Now I do not want to add individual functions to the template since they are page specific.
    How do I handle this issue ? Should I include the call to the Jquery JS in my Page html header ?
    Appreciate any pointers/suggestions.
    Thanks,
    Dippy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Becuase the order of execution.
    Once way is move your javascript to region header, otherwise call jquery in page header instead of template

  • The search function of List pages

    I have a question about the search function of List pages.
    If field is chosen, "Equal to" and "Begins with" will be displayed automatically.
    But I want to be displayed "Contains at least one value".
    Is there any method of specifying this value as "Contains at least one value"?

    Hi,
    unfortunately this customization is not possible. You can open a Service Request and submit the Enhancement Request for desired functionality.
    Regards

  • Adding navigation/toc/search functionality to individual pages

    is there any way to add search, print and back/forward functionality to a page without using RH's pre-configured options?
    for example, I want to add Search, Print and Back/Forward buttons into the header of the master page, so that it displays on every page.
    is this possible, and is scripting the answer?

    See if Item 57 at http://www.grainge.org/pages/snippets/snippets.htm helps.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Repeat Function key in pages?

    Hi,
    Is there a repeat function key in pages similar to that in MS Word for PC?
    Thanks,
    Nick

    No.

  • Function to calculate Page size in XML RTF template

    Hi All,
    For one of my requirments, I need to find out the page size of my output.
    And from a given point of the output, i should know the size till bottom of the page.
    My program has an RTF and will generate output in PDF format.
    Please let me know how to do this. This is very important for me.
    Thanks in advance.
    Edited by: DharV on Nov 17, 2011 12:18 AM

    No, the actual requirment is in this thread
    Re: Need to drag the table down the end of page
    I could not get the solution for this, so just checking if I have a function to calculate the horizantal size of the output page, and i can apply some logic.
    Let me know if iam not clear
    Thanks
    Edited by: DharV on Dec 6, 2011 1:14 AM

  • "Open in New Window" function in the page toolbar

    Hi,
    I am new to portal development and I have what looks like as an easy Iview modification:
    I need to implement the "open in new window" Function as a link, directly in the page toolbar (next to History, Back, Forward...) and not as an Option in the menu.
    This should be done in the Pagetoolbar and not the light pageToolbar.
    I downloaded the PAR file "com.sap.portal.navigation.pagetoolbar" but I don't how what I should change.
    Can someone please help me?
    Many thanks and points in advance.
    Regards

    Hi Stephane,
    Are you using the default framework page in your desktop. <b>Use the light framework page. It has the "Open in new window" as a link in the page tool bar.</b>
    If you still wish to stick to the default framework page; firstly you may want to remove the existing "open in new window" from the menu. Then you may need to copy the same code from the light fw toolbar par file for that 1 single link and paste it in your default fw toolbar. I can tell you the exact code tomorrow.
    Hope the first option may be desirable to you.

  • A swf in an iFrame calling javascript function on Parent page

    I have a .swf that has to load in a iFrame and needs to call a browser cookie javascript function that lives on the parent page that loads the iFrame.
    I'm using this:
    ExternalInterface.call("javascriptFunction");
    but of course this call is not making it to the Parent page javascript function.  Is this possible to do?
    Thanks!

    The parent page has the javascript function, and has a iFrame that loads the swf.  The swf needs to call the javascript function that lives in the parent page.
    Thanks!

  • Calling Function on JSP page

    Hi all
    can someone please tell what am I doing wrong here? I'm trying to call Function on a JSP page
    CallableStatement cs = connection.prepareCall("{? = call pa_dump_xml.fn_user_diary(?)}");
    ResultSet rs = cs.executeQuery();
    while (rs.next()) {     
    %>
        <input type="text" name="app1" id="textfields1" size="" value="<% out.println(rs.getInt(11));%>" readonly="readonly"/>
    <%
    rs.close();
    %>... And I keep getting this error
    root cause
    javax.servlet.ServletException: java.sql.SQLException: Missing IN or OUT parameter at index:: 1Thanks

    Thanks for your reply, this is my code ;
    CallableStatement cs = connection.prepareCall("{? = call pa_dump_xml.fn_user_diary(?)}");
    proc.registerOutParameter(1, Types.INTEGER);
    ResultSet rs = cs.executeQuery();          
    while (rs.next()) {     
    %>
        <input type="text" name="app1" id="textfields1" size="" value="<% out.println(rs.getInt(1));%>" readonly="readonly"/>
    ......And the error I'm getting is
    java.lang.NullPointerException It's a JSP page as an index page where I need to show Data in some textfields on load of page. I'm sure there is a better way of doing this but I can not think how to go about it.
    Thanks
    Zed

  • Create a function in my page model header

    Hi everybody,
    I’m trying to do a function. This is my function :
    function Test()
    if(document.getElementById(item.value != "")
    put my item disabled
    Element <i>p32_id_feuillet</i>
    html form element attributes
    <b>onClick="javascript:Test();"</b>
    How I can do this ?
    Thanks Bye

    Check out this page mate
    http://www.reumann.net/struts/lesson1.do

  • Error :Openning Form Function from OA page

    Hi,
    I have an OA page on which advance search is implemented. Result set of search having one column with hyprelink to open a form function.
    In controller we are openning the form UI using using following code..
    pageContext.forwardImmediatelyToForm(destination);
    It is working fine and openning the form first time, while form UI is open and if we go back to OApage and click on any other link, it should refresh the same form UI with new values, but it gives error...
    FRM-92050: Failed to connect to the server: /forms/formservelet:-1
    Error appeares on the applet window.
    Please help me in resolving this issue.
    Thanks in advace. - Atal

    Atal,
    Not sure of any docs, but you surely can try in metalink. Moreover as the forms gets launched on 1st invocation and the error code is related to forms, I will suggest to check this issue with forms forum.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Getting error in calling Java Script function in HTMLB page

    Hi
      I am having a button in HTMLB page which calls the Java Script function for click event.I have included the Java Script in the script folder of the application.
    I am calling the function present in JS like this,
    <SCRIPT src="portalsdc.js"></SCRIPT>
    function buttonClick() {
    someFunc()
    <hbj:button
    onClientClick="JavaScript:buttonClick();"
    disabled="false"
    design="STANDARD"
    />
    The Error i am getting in calling someFunc()is "Object Expected " ..
    Any suggestion how to make it work.
    Thanks in advance
    Saravanan

    Hi,
    My code in page is
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content id="myContext" >
    <hbj:page title="Epcf iView" >
    <SCRIPT src="portalsdc.js"></SCRIPT>
    <script language="JavaScript">
    function buttonClick() {
         someFunc()
    </script>
    <hbj:form>
    <hbj:button
    id="sendEvent"
    text="Send event"
    width="125px"
    tooltip="This button raises an event ..."
    onClientClick="JavaScript:buttonClick();"
    disabled="false"
    design="STANDARD"
    />
    </hbj:form>
    </hbj:page>
    </hbj:content>
    The code in Java script portalsdc.js is :
    function someFunc()
         alert ("HI");
    Even i have set and tried jsObjectNeeded = TRUE for button.
    Thanks and Regards,
    Saravanan

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

Maybe you are looking for

  • After upgrading to 9.02, can't sync iphone, wants to restore it

    After i upgraded to iTunes 9.02, I went to backup my iphone and sync it etc, but instead of syncing, it brought me to a screen that says "An iPhone has been previously synced with this computer" and only offers me the options of setting it up as a ne

  • Converting varchar2 to BLOB or converting CLOB to BLOB

    Hi i am using a table where i have to convert a field currently existing as a varchar2 or CLOB to a BLOB field. while doing this i also have to preserve the data currently existing in the table. Please help. Thanks

  • Trouble Downloading (?) Installing Photoshop Elements 12

    "Completed" the download with the manager but when my Mac asks if I want to open a file from the internet and I say open...Nothing happens!

  • Essbase Cube Linking With Sql

    Hi,experts!!!!!!! I have Essbase Studio From Epm 11.1.2.1 Version,the thing is that i have to link the Essbase cube to sql,can you suggest any solutions or can just give me info about drill back method in essbase studio...

  • How to geofance large area on "Find my friends"

    I work in a large hospital. My wife likes setting Find My Friends so it notifies her when I leave the hospital. Unfortunately, the size of the hospital means that if I move from one end to another, it notifies her (wrongly) that I have left. Is there