How to get handle of go, clear button in query region.

Hi: I have a search page built using query region, I need to make an API (method) call on clicking on "Go" button.
I tried the following as found in OA Framework discussion forum, but observed that "go" is always true in processFormRequest method and always false in processRequest method.
I did check the methods of OASubmitButtonBean also, but unable to find out how exactly I get "the handle of go button click event" in this case to handle my requirement.
Any idea if its possible or not, and if yes, then how?
OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("QueryRN");
String idGo = queryBean.getGoButtonName();
OASubmitButtonBean go = (OASubmitButtonBean)queryBean.findChildRecursive(idGo );
I did also try to add my buttons in the query region, which work as I require, but in that case I need to hide existing go, clear buttons (which are added by default) in query region. That also doesn't work, as in processRequest method "go" is always false, and in processFormRequest I cannot call "go.setRendered(false);".
Also, button should be disabled even on first loading of page also. Can anyone help?
Regards,
Anvita.

modified code further as follows --
OAQueryBean queryBean = (OAQueryBean)webBean.findIndexedChildRecursive("QueryRN");
String idClear = queryBean.getClearButtonName();
OASubmitButtonBean clear = (OASubmitButtonBean)queryBean.findChildRecursive(idClear);
String idGo = queryBean.getGoButtonName();
OASubmitButtonBean go = (OASubmitButtonBean)queryBean.findChildRecursive(idGo);
System.out.println("I wish it works in +++++++++++++++++++++++++ " + idClear + " xxx " + idGo);
if (pageContext.getParameter("idGo") != null)
System.out.println("I wish it works in GO +++++++++++++++++++++++++ ");
if (pageContext.getParameter("idClear") != null)
System.out.println("I wish it works in Clear +++++++++++++++++++++++++ ");
if (pageContext.getParameter("go") != null)
System.out.println("I wish it works in GO button +++++++++++++++++++++++++ ");
if (pageContext.getParameter("clear") != null)
System.out.println("I wish it works in Clear button +++++++++++++++++++++++++ ");
if (go != null)
System.out.println("I wish it works in GO button direct +++++++++++++++++++++++++ ");
if (clear != null)
System.out.println("I wish it works in Clear button direct +++++++++++++++++++++++++ ");
=============================================
and output print is always the following even if i click on button or not (like select some LOV, or perform PPR action) .. hence it doesn't allow me to catch go button click event .. Please advice ..
output PRINT --
I wish it works in +++++++++++++++++++++++++ clearButton xxx customizeSubmitButton
I wish it works in GO button direct +++++++++++++++++++++++++
I wish it works in Clear button direct +++++++++++++++++++++++++

Similar Messages

  • Unable to clear the data by clear button in Query region in Expenses Home

    Hi,
    I have created two custom regions of query type through JDeveloper,
    Clear button is not working in one region (especially which is on top of both, no matter region 1 or region 2 )
    I didn't write any code there
    please advise how to fix this one
    Thanks
    Suresh

    Extend the controller class file
    Write below code in process request
    OAQueryBean query1 = (OAQueryBean)oawebbean.findIndexedChildRecursive("QueryRN");
         query1.setClearButtonName("CustomClearButton");
         query1.setGoButtonName("CustomGoButton");
    Thanks
    Suresh

  • How to get handle of a button that i created through Customisation?

    How to get handle of a button that i created through Customisation?
    I tried this in processformrequest ..failed :(
    String str2 = paramOAPageContext.getParameter("AutoDialler");
    if (str2 != null) {
    System.out.println("Inside AutoDialler Hurray");
    }

    this works well
    but can you give documentation support of whatever you are saying?
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("xxSubmitAutoDialler");
    oasb.setUINodeName("xxSubmitAutoDialler");
    oasb.setEvent("xxSubmitAutoDialler");
    oasb.setText("xxSubmitAutoDialler");
    paramOAWebBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    if ( strEvent.equals("xxSubmitAutoDialler"))
    //IMPORTANT Get this by calling the Function that loops for records.
    System.out.println("Inside processFormRequest Hurray");
    }

  • How to get the Id of the Button which is clicked?

    Hi,
    I am having some 10 buttons and in the on action property these button i'm opening a popup.
    I have mapped all the 10 buttons to same action. so i want to know in onAction which button is clicked.
    so how to get the Id of the button clicked in the on action?
    Help me out with the detailed code.
    Thanks,
    Suresh

    Hi,
    Write this code in the "wdDoModifyView()" method:
    //let's say the first button ID is btn1
    IWDButton buttonOne = (IWDButton) view.getElement("btn1");
    buttonOne.mappingOfOnAction().addParameter("commandID","btn1");
    //let's say the second button ID is btn2
    IWDButton buttonTwo = (IWDButton) view.getElement("btn2");
    buttonTwo.mappingOfOnAction().addParameter("commandID","btn2");
    Add the parameter "commandID" to the event handler of ur buttons  and it should be of type "String". That will look like:
    public void onActionTest(IWDCustomEvent wdEvent, String commandID){
    //here commandID contains the ID of the button which was clicked
    wdComponentAPI.getMessageManager().reportSuccess(commandID);
    regards
    Surender Dahiya

  • How to get function code of enter button in bdc manually

    hi
    i need to know how to get function code of enter button in bdc manually like in screen i want to capture techincal infor of enter buttion and itd fucntion cod ehow can i get it i mean what is the key in keyboard to display that
    i want to capture enter button and for eg status button etc funtion code
    pls suggest
    arora

    Hi,
    Want you need to do is go to transaction SHDB and record the bdc for the transaction you want, during transaction press the buttons for which you want the bdc code. And after this go press the back button and check the list of all the things recorded in Recorder.
    And for SHDB help check this link:
    http://abaplovers.blogspot.com/2008/02/recording-bdc-using-transaction-shdb.html
    Hope this helps.
    Regards,
    Qamar.

  • How to get number of rows return in SELECT query

    i'm very new in java, i have a question:
    - How to get number of rows return in SELECT query?
    (i use SQL Server 2000 Driver for JDBC and everything are done, i only want to know problems above)
    Thanks.

    make the result set scroll insensitve, do rs.last(), get the row num, and call rs.beforeFirst(), then you can process the result set like you currently do.
             String sql = "select * from testing";
             PreparedStatement ps =
              con.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
             ResultSet rs = ps.executeQuery();
             rs.last();
             System.out.println("Row count = " + rs.getRow());
             rs.beforeFirst();~Tim
    NOTE: Ugly, but does the trick.

  • How to get POF object's field value from query result

    hi,all:
    I want to get field value from the query result, my code is below
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
    Contact c=(Contact)iter.next();
    System.out.println ("firstame####=" + c.getFirstName());
    * but I get error*
    Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
    tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
    at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
    at com.oracle.handson.QueryExample.query(QueryExample.java:86)
    at com.oracle.handson.QueryExample.main(QueryExample.java:43)
    who can tell me how to get POF object's field value from query result

    Hi,
    If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        Map.Entry entry = iter.next();
        Contact c=(Contact)entry.getValue();
        System.out.println ("firstame####=" + c.getFirstName());
    }JK

  • How to get total numbers and total price in query reports

    Hi,
    how to get total numbers and total price in query reports.for example:
    particular item is issued 3 times a week...I need total quantity of item issued
    my query...
    SELECT T0.[DocNum], T1.[ItemCode], T1.[Quantity], T1.[Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'

    Hi,
    Try this:
    SELECT T1.[ItemCode], SUM (T1.[Quantity]) as [Total Quantity], SUM (T1.[Quantity] * T1.[Price]) as [Total Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'
    Group By T1.[ItemCode]
    Beni.

  • How to get rid of a ghost button?

    Hello,
    I'm using JDeveloper 11g for developing ADF Applications. During my work I encountered a very annyoing problem. In one of my jspx sites I added a button for testing reasons. After deleting it and redeploying the application on the internal wls it is still there. Whatever I do cleaning the build, deleting all the classes directories in the project directory, restarting Jdeveloper, rebuilding and redeploying the project, deleting the project files in the directories of the internal wls, the button still remains in the jspx. For some strange reason JDeveloper is not updating the jspx, where the button is placed, when I'm redeploying my project.
    The last time I have been facing this situation, I had to reinstalled JDeveloper to get rid of a component which was not in my project any longer. However this is not an acceptable solution.
    Does anybody know which caches I have to clear, to get rid of my "ghost" button!
    Thank you very much for your replies!
    bweismann

    Hello Frank,
    Thank you for your reply. The problem is not occouring on a exertnal WLS but on my local JDeveloper internal WLS. I alreay used build clear all option and recompiled the project. However these measures were not successful. So I'm pretty sure that my internal wls cached the file! But I do not know how to clear the cache. Can you give me a hint how to do this.
    bweismann

  • How to get the ID of a Button

    Hi,
    There is an interface IF_WD_VIEW_ELEMENT inside the class CL_WD_BUTTON whi has two methods: GET_ID and GET_VIEW.
    My problem is i have to get the ID of a button at runtime inorder to get the text associated with it.  can anybody pls let me know how to get that?
    Points will be rewarded
    Regards
    raghav

    Dear Koen,
    Thanks a lot!!
    Finally I am able to resolve the issue with your help!!
    But why I tried your last posting still i was getting error!!
    "lo_button = wd_this->m_view->get_element( ID )."
    i did a minor correction to the above statement as follows:
    lo_button <b>?</b>= wd_this->m_view->get_element( ID ).
    But to my surprise what is the purpose of the method <b>IF_WD_VIEW_ELEMENT~GET_ID</b>?  When can we use this? 
    This is just for my information. 
    If you have time, please let me know
    Thanks & Regards
    Raghav

  • How to get dispaly value of radio button

    hi i have situation where i what to get display value of radio button,for example i store value A in db but i display Active in my radio button how can i do that
    my radio button is
    <af:selectOneRadio id="sor3" layout="horizontal"
                                   value="#{pageFlowScope.InternalBean.status}"
                                   autoSubmit="true"
                                   valueChangeListener="#{RadiobuttonPopupBean.activationChangedListener}">
                  <af:selectItem label="Active" value="A" id="si10"/>
                  <af:selectItem label="Inactive" value="I" id="si9"/>
                </af:selectOneRadio>
    i what to display the value in this outputtext
    <af:outputText value="Reason: #{bindings.Reason.inputValue}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    am in jdeveloper 11.1.1.6.0

    adf009, the answer was given in my blog I posted to your other thraed JDeveloper: Showing a Popup when Selecting an af:selectOneRadio | JDev &amp;amp; ADF Goodies
    You only have to read it and the link provided inside the blog pointing to the other blog entry.
    use
    <af:outputText value="Reason: #{pageFlowScope.InternalBean.status}" id="ot9"
                               partialTriggers="d1" inlineStyle="height:100px;"/>
    to output the text.
    By the way your code snipplet isn't understandable without knowing the context around it. You always should mention if you post code from someone else (at least give a link to the source).
    Timo

  • How to get rid of new menu button on far right side of toolbar

    Honestly, I don't know why developers can't offer us new features which we can use or not use, by choice. Instead, things are forced upon us.
    Would someone please tell me how to get rid of the new menu button on the right side of the toolbar?
    There doesn't seem to be any option to remove it via the Customize toolbars window.
    Thank you very much.

    Hello brynn2,
    First of all thank you for understanding us and sorry for the delay, it has really been a busy week for all of us out here.
    The interface you see in Firefox 29 is a major re-design (first one since Firefox 4) of Firefox's user interface called "Australis."
    You can use Classic Theme Restorer to get the previous look back. https://addons.mozilla.org/hu/firefox/addon/classicthemerestorer/
    See also:
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/what-happened-to-the-add-on-bar
    *Tabs On Bottom: https://addons.mozilla.org/firefox/addon/tabs-on-bottom/
    *The Addon Bar (restored): https://addons.mozilla.org/firefox/addon/the-addon-bar/

  • How to get current row using submit button ?

    Hello Friends ,
    Is there any way i can capture the value of current row by submit button ?
    Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
    functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
    other oaf page is getting opened .
    Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
    Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
    Any suggestion please ?
    Regards ,
    Vamsi

    Thanks sushant for your response ,
    Well i have tried your approch , i am not getting values for current row .
    if (pageContext.getParameter("paApply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
    if(localOAViewObject1!=null) {
    Row DateVoROw = localOAViewObject1.first();
    RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(localOAViewObject1.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    DateVoROw=iterator.getRowAtRangeIndex(i);
    String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
    Could you please let me know where i am going wrong
    Thanks again ,
    Vamsi

  • How to get the status of the button?

    i want to know how to get the clicked status of the button? whether it is in clicked state or in unclicked state?
    For ex: i have the following code...
    <components:IconButton id="bold_btn" width="22" icon="@Embed('/assets/bold.png')" click="onBoldClick()" enabled="{this.loadCompleted}" toggle="true"/>
    how to find whether the bold button is clicked or not?
    this.bold_btn.????

    Hi Isa,
    You can make use of a Boolean variable to acheive this functionlaity...check out the below simple example...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            verticalAlign="middle"
            backgroundColor="white" width="100%">
        <mx:Script>
            <![CDATA[
             import mx.controls.Alert;
             private var isBtnToggle:Boolean = false;
             private function onButtonClick():void
        isBtnToggle = !isBtnToggle;
        if(isBtnToggle)
         btnToggle.label = "I am Toggled ON";
         Alert.show("Button is Toggled ON");
        else
         btnToggle.label = "I am Toggled OFF";
         Alert.show("Button is Toggled OFF");
            ]]>
        </mx:Script>
        <mx:Button id="btnToggle" label="I am Toggled OFF" toggle="true" click="onButtonClick()" />
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to get handle to all HSSF worksheets

    Hi Friends,
    Is there any way we can get handle to all the worksheets in the excel file using apache POI classes..
    For eg:
    If there are 10 worksheets, how to get all the sheet names without using
    HSSFSheet sheet = wb.getSheetAt(0)
    Thanks and Regards,
    JG

    Hi masijade,
    I was not aware of the property getNumberOfSheets.
    Thanks for notifying me of that property.
    and this will property will resolve my issue.
    Thanks and Regards,
    JG

Maybe you are looking for

  • Xp doesn't recognize ipod touch

    Itunes shows the Itouch and when you sync, the Ipod lights up, but nothing is copied over.  The Itouch doesn't show up in device manager or computer.  I can not download anything.  it says no updates! 

  • External Hard Drive Not Displaying Pictures

    So I recently backed up all my pictures from my MBP to my Western Digital My Passport 1 TB external hard drive to free up some space from my MBP. Before ejecting the hard drive, I had made sure that the files were all transferred completely so that n

  • How to create the instance of a class and to use this object remotely

    I have to change a standalone program to do it working on a local net. the program is prepared for this adjustment, because the only problem for this change came from the use of the database; and, in the application, all the accesses to the database

  • READER XI, CANNOT OPEN FILES OR PROGRAM

    I cannot get the new download of Reader XI to open, neither the program nor PDF files.  What's the fix?

  • ITunes cannot display Chinese

    I have a number of Chinese songs on my iPod that loaded from a Windows pc. Now, I am using MBA with iTunes and all song titles become garbage. I am using English version Leopard 10.5.2 and iTunes. Can someone advise how to configure it to display Chi