Can we handle 'GO' button in a 'QUERY' region

Hi,
Is it possible to handle 'GO' button in a 'QUERY' region.
Can we modify its behavior by a controller kind of thing.
Thanks & Regards,
Swaroop

Straight from the devguide :-)
processFormRequest (OAPageContext pageContext, OAWebBean webBean)
// Make sure that you are in the right panel
OAQueryBean queryBean = (OAQueryBean) webBean;
queryBean.getCurrentSearchPanel();
// Handle the "Go" button click on the simple search panel
if (SEARCH.equals (currentPanel) &&
queryBean.getGoButtonName() != null)
// retrieve your item and process it here.
String value = pageContext.getParameter (<projectIdSimpleSearch>);
// Build the appropriate where clause for projectIdSimpleSearch
// and set it on your vo and execute its query
// using the initQuery method.
// Handle the "Go" button click on the advanced search panel
if (ADVANCED_SEARCH.equals (currentPanel) &&
queryBean.getGoButtonName() != null)
// retrieve your item and process it here.
String value = pageContext.getParameter(<projectIdAdvSearch>);
// build the appropriate where clause for projectIdAdvSearch
// and set it on your vo and execute its query
// using the initQuery method.
Thanks
Tapash

Similar Messages

  • Can you add a button to a query screen ?

    Hi
    I am working on SP01 PL36, my customer would like me to add an email button to a query screen and create an email based on the email addresses in the query
    I am fine creating the email but I can't seem to detect when the screen is being loaded so I can add a button to it
    Is it possible ?
    Thanks
    Regards Andy
    Regards Andy

    Paul,
    To Add a Button to a form you would need to write SDK code.  This involved coding using the SDK tools.
    Please refer your question to the SDK Forum to get details on how to go about this.
    Suda

  • Can we add button in query region  along with go and clear

    Hi Friends,
    i have a requirement as below steps-
    1)i have developed search pgae by using query regiion
    2) in pgae,first we have search items,go and clear(submit buttons), table region.
    3)here go and clear buttons came automatically.
    4) i can able to add button in front of the page and end of the page.
    4) my requirement is i need to add one more button along with go and clear(here go and clear button are in between search items and table region) .
    5)i am not able to add button along with go and clear.
    Can any one know how to do this--
    Thanks in Advance
    vamshi

    Hi Vamshi,
    You can not create extra buttons in Standard Query region.
    Alternatively you can create your custom region for the search and there you can add a button. If you don't need advanced region, you can create the custom region in place of standard one.
    Anoop

  • 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 +++++++++++++++++++++++++

  • Create a Button on a Query

    Hello,
    I want to know how can I put a Button on a Query.
    I want to put a Print Button.
    I know that in the left button there is a option to print. I want to know if I can put that option as a Button directly in the web page of the query.
    Thank you in advance & Best regards...
    Pablo Mortera.

    Hi
    Yes you can have that option in WAD template. Please find below link for more information
    Re: WAD (BW 3.5)  - Export to PDF
    In BW 3.5, Export to PDF is not available as a standard setting.
    This feature is provided in BI 7.0.
    With 3.5 you can have an addon like the Camelot Document convertor for exporting to PDF.
    Refer to the below link for more info on this...
    http://www.camelot-idpro.de/fileadmin/content_admin/downloads_en/Document_Conversion_and_Printing_Framework.pdf
    Regards
    Ravi

  • OA Query Region shows previous search results when moving between pages

    Hello All,
    I have a custom OA Page which has a query region based on a LOV for searching device names. The problem I am facing is once device name is searched and I go to another page through the quick links and come back to same Search Device page, it shows the previous searched results. I am not retaining AM for any page navigation.
    Things I have already tried :
    1 . I have tried refreshing VO by using clearcache and reset methods on VO.
    2. Get the Go button from the query region in ProcessFormRequest and on Go button click I use forwardImmediatelyToCurrentPage. And in Process Request method I am querying the results manually when Go button is clicked. Otherwise I am manually making the where clause condition 1=2 and ensuring that the VO does not return any rows.
    But still I am not able to get rid of the issue.
    The code used is pasted below for your reference. It is urgent. Can you please provide any pointers.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    try
    VpaAdminAMImpl am = (VpaAdminAMImpl)pageContext.getApplicationModule(webBean);
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.clearCache();
    deviceAll.reset();
    deviceAll.setWhereClause("1=2");
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String goAction = queryBean.getGoButtonName();
    if(pageContext.getParameter(goAction) != null)
    getSearchResult(am, pageContext, webBean);
    catch(Exception ex)
    throwException("SearchDeviceCO.processRequest",ex);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String action = pageContext.getParameter(EVENT_PARAM);
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String Go = queryBean.getGoButtonName();
    System.out.println(pageContext.getParameter(Go));
    if(pageContext.getParameter(Go) != null)
    pageContext.forwardImmediatelyToCurrentPage(null,false,"N");
    public void getSearchResult(VpaAdminAMImpl am, OAPageContext pageContext, OAWebBean webBean)
    try
    String device = pageContext.getParameter("deviceSearch");
    StringBuffer sb = new StringBuffer();
    if(device != null && device != "")
    sb.append(" DEVICE_NAME = '");
    sb.append(device);
    sb.append("'");
    String sql = sb.toString();
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.setWhereClause(sql);
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    }catch(Exception e)
    e.printStackTrace();
    Thanks in Advance,
    Abhishek Mishra

    Hi Anand,
    The getSearchResult method also does the same thing. I have also tried to remove the dependency on getSearchResult and wrote the same code in ProcessRequest() but still it does not solve the problem.
    In fact, I have ensured that the VO does not contain any records and have checked these by using SOPs and debug in JDEV. The interesting point is the VO does not have any records but still the previous search data and search criteria is shown when we navigate to the page. Printed the query just before performing execute query and that query does not return any records. Also tried printing something if there are any records in the VO by using vo.hasNext().
    Data gets stored somewhere and it is shown when the page is navigated from other page. FYI, this page is accessed from quick links and there are other pages also in the quick links and when we navigate between these pages we get to see the previous search results. Tried methods clearCache(), reset() on VOs but still unsuccessful.
    Not even that I thought that the VO may be corrupted in some sense so I created a new VO instance in the AM and then used newly created VO instance in the query region. But still no luck.
    Any pointers will be appreciated.
    Thanks in Advance,
    Abhishek

  • Handling Go button in query region

    Hi Guru,
    I am working on standard page for Order Lines under Purchasing. When i am trying to get the query bean its returning null value. I have tried as below
    OAQueryBean lineQueryBean = (OAQueryBean)oawebbean.findChildRecursive("LinesQueryRN");
    This lineQueryBean is returning null value.
    Can you tell me what could be the problem.
    The standard page for tihs query region has these properties
    Construction Mode: autoCustomizationCriteria
    Include Simple Panel: False
    Include Views Panel: True
    Include Advanced Panel: True
    Initial Panel: advanced
    Please reply on priority.
    Thanks a Lot.
    Edited by: user13316556 on Dec 11, 2010 2:20 PM

    f you want to get an handle of the GO button click you need write the following code in the processFormRequest of your controller.
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    OAQueryBean queryBean= (OAQueryBean)page.findChildRecursive("LinesQueryRN");
    String Go = queryBean.getGoButtonName();
    if(pageContext.getParameter(Go) != null)
    }Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Can we handle exceptions for the expressions in select query?

    Hi all,
    Can we handle exceptions for the expressions in select query.
    I created a view, there I am extracting a substring from a character data and expected that as a number.
    For example consider the following query.
    SQL> select to_number( substr('r01',2,2) ) from dual;
    TO_NUMBER(SUBSTR('R01',2,2))
    1
    Here we got the value as "1".
    Consider the following query.
    SQL> select to_number( substr('rr1',2,2) ) from dual;
    select to_number( substr('rr1',2,2) ) from dual
    ORA-01722: invalid number
    For this I got error. Because the substr returns "r1" which is expected to be as number. So it returns "Invalid number".
    So, without using procedures or functions can we handle these type of exceptions?
    I am using Oracle 10 G.
    Thanks in advance.
    Thank you,
    Regards,
    Gowtham Sen.

    SQL> select decode(ltrim(rtrim(translate(substr('r21', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('r21', 2, 2)), null) from dual;
    DE
    21
    SQL> ed a
    SQL> select decode(ltrim(rtrim(translate(substr('rr1', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('rr1', 2, 2)), null) from dual;
    D
    -

  • Glass Pane( preventUserInput when user clicks on Search button in af:query)

    Hi,
    We are using glass pane implementation on a search screen.
    When I click on Search button in af:query component (having selectInputDate (Date Picker) components)., glass pane is firing correctly,
    but second time when I am trying to select date using Date Picker (and Change the Month), glass pane is fired (entering into handleBusyState function) and calendar popup is not opening.
    I folled the below article for implementation.
    url: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf used for glassPane implementation.
    Can any one help me for this issue.

    Hi am using the following code (javascript) -- Jdev(11.1.1.3)
    function preventUserInput(evt){   
    var eventSource = evt.getSource();
    var popup1 = eventSource.findComponent("showGlassPanePopup");
    if (popup1 != null){
    AdfPage.PAGE.addBusyStateListener(popup1,handleBusyState);
    evt.preventUserInput();
    //JavaScript call back handler
    function handleBusyState(evt){ 
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('r3:0:r1:0:showGlassPanePopup');
    if(popup!=null){
    if (evt.isBusy()){
    popup.show();
    } else if (popup.isPopupVisible()) {
    popup.hide();
    AdfPage.PAGE.removeBusyStateListener(popup, handleBusyState);
    ... End of Code..
    This line .. (popup.isPopupVisible()) removes the Popup , if popup is visible...
    If u want the view am using..
    SELECT EMPNO , DEPTNO , HIREDATE FROM EMPLOYEE (sample Application i have created), created a view criteria for this..
    ( (EMPNO = :empNum ) AND (DEPTNO = :deptNum ) AND (TO_CHAR( TO_TIMESTAMP(HIREDATE), 'yyyy-mm-dd hh24:mi:ss.ff') = :hireDts ) ) (View Criteria)
    .. <af:clientListener method="enforcePreventUserInput" type="query"/> (added for af:query)
    Popup Used: <af:popup id="showGlassPanePopup" contentDelivery="immediate">
    <af:dialog id="d2" type="none" closeIconVisible="false">
    <af:panelGroupLayout id="panelGroupLayout1" layout="vertical">
    <af:outputText value="Processing......Please Wait.." id="ot97"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    1. When i click search for first time.. it is showing like -- Processing .. Please Wait'
    2. When i click select Date picker it is show -- Processing .. Please Wait'
    and show a calender popup window.. If we change the month ... it will again show like -- Processing .. Please Wait'
    and it will not open calender window.
    Please Help me on this..Am facing trouble due to this.
    Thanks in Advance.
    Edited by: user10115793 on Nov 15, 2011 12:58 AM

  • Can't get IVI Power Meter error query to work properly.

    I have been trying to use the IviPwrMeter Error-Query.vi to read possible errors coming from the Power Meter.  However, I have found that no errors can be detected using this vi.  This is because the returned value 'status' is wired over to the 'error code' input of 'IviPwrMeter Error Converter.vi' and the status value will always be equal to VI_SUCCESS as the attached code signifies.
    All of this code was generated by either LabWindows/CVI and/or LabView.
    If I wire the error code output of 'IviPwrMeter_error_query' function to the error code input of 'IviPwrMeter IVI error converter.vi', the errors on the Power Meter is at least detected.
    Am I doing something wrong here or are there other work arounds?
    Source listing of driver call:
    ViStatus _VI_FUNC age4418b_error_query (ViSession vi, ViInt32 *errCode,
                                            ViChar errMessage[])
        ViStatus    error = VI_SUCCESS;
        checkErr( Ivi_LockSession (vi, VI_NULL));
        if (errCode == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 2, "Null address for Error Code");
        if (errMessage == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 3, "Null address for Error Message");
     if (!Ivi_Simulating(vi))                /* call only when locked */
         ViSession   io = Ivi_IOSession(vi); /* call only when locked */
         checkErr( Ivi_SetNeedToCheckStatus (vi, VI_TRUE));
         viCheckErr( viPrintf(io, "YST:ERR?"));
      viCheckErr( viScanf (io, "%ld,\"%256[^\"]", errCode, errMessage));
     else
             /* Simulate Error Query */
         *errCode = 0;
         strcpy (errMessage, "No error.");
    Error:
        Ivi_UnlockSession(vi, VI_NULL);
        return error;

    Dennis,
    I get the same results as you if I don't have a power meter connected.  However, this doesn't supprise me because the session handle is probably checked at a higher level.
    The calling hiearchy is as follows (I think, because I don't have all of the code)  IviPwrMeter Error Query.vi -> IviPwrMeter_error_query (IviPwrMeter.dll) ->age4418b_error_query (age4418b.dll).  I would guess that the session is validated in the second layer and not the bottom layer where the actual instrument error query is happening.
    Something you may try.  If you have any instrument, write a simple program to get a valid handle then call the error query using the error cluster to link them together.  Set a breakpoint before the error query, run the program, use MAX to send an invalid command and create an error.  Then resume your original program and see if an error is reported in the error cluster after executing the IVI error query.
    Bob

  • How can we handle CLOB in Universe and WebIntelligence

    Hi,
    Could  you explain how can we handle CLOB in Universe and WebIntelligence?If we use CLOB in either of this,how is the  Report performance ?Is the perfomance of report degraded? Appreciate your help.
    Thanks,
    Swapna

    Hi,
    There is no way around this, long texts are big chunks of data that have to be moved from the database to the webi report.
    Depending on how many rows of data you retrieve this can become a problem in various spots.
    1) network traffic (lots of data to move over the network).
    2) webi report memory (lots of data that needs to be stored in memory to work with the data).
    So you need to limit the query in either the number of rows being retrieved,
    or in the size of the data that is retrieved per row.
    Depending on your use of message text, you can limit long text object to a smaller number of characters.
    (Universe, Parameters, Controls...)
    Depending on your version of database and BO, the default of this value is 1000 or unrestricted.
    It might be that you just need an idea of the message and can limit this to 100 chars or similar, which should help performance.
    It is also possible that the text is always 'long' padded with spaces, in this case it can help to trim the message column in the universe already.
    Good luck,
    Marianne

  • PQAH- can't see SAVE button

    Hi friends,
    I have a test user into 2 environments, Prod and QA. Into prod, using PQAH t-code test user can see SAVE, NEW and OPEN button to use query. But into QA environment, user can't see any of these buttons.
    User has same roles into both environment, as well as S_QUERY objects with 02 and 23 values for activity field.
    Anyone knows how I can solve this issue ? Thanks..

    Hi,
       This all depends on your USER GROUP and the USER
       in which the program is run.
       U can have a look at the program RHADHOC0.
      check, if user is assigned to this usergroup
        READ TABLE dbbn TRANSPORTING NO FIELDS
                        WITH KEY num = dbbs_wa-num
                                 bname = user.
        here sy-subrc must be 0 then only U'll get
        the save,new,open buttons.
        check for this in both your environments.
      Hope this helps.
    Regards,
    GSR.

  • Create Buttons in the Query Designer, is that possible??????????

    Hello,
    When I Start the Query, I want to choose. For Expample:
    For Display the Query with the Rows or not....
    1.Button with Film Production
    2.Button without Film Production
    Can I realize 2 Buttons for that ?`??
    Thanks and Happy Easter..
    Barish
    Edited by: Baris Ozcan on Mar 19, 2008 8:12 AM

    Hi,
    Selections means... your column or row.
    In 7.0 QD .Select your keyfigure from column. right side you can see property window. where you have tab "Display". check that whether it should be "Always show". if it is there, definitely the keyfigure will show the result. and also, if you are not getting any output value, when u r executing the query. check that any filter have u used in Query..
    might be ur query restriction doesn't give any value, that's y ur report looks empty.
    note: there is no Query change mode in BI7.0 query designer, as we have in bw3.5.
    Regards,
    senthil

  • Using command button to select query - WAD 7.0

    Hello all
    Can anyone please tell me how to configure a command button (button group) to display a particular query in WAD 7.0?
    Here's what I mean -
    I have a web template with three queries. I have inserted 3 command buttons on the template. I want to assign one button to one query, so that the users can select which of the three they want to view. Which Command do I select in the command wizard to do this? Also, is it possible to hide the other two queries, when one is selected?
    Thanks
    Karen

    Hi,
    Here is one approach - Keep three analysis items in the WT. Assign three different data providers to all three analysis items. If you do not want to show any query when the WT first loads, don't assign any query to the data providers. When a button is pushed, you can use the command SET_DATA_PROVIDER_PARAMATERS to assign a query to a DP so that that query will show up.
    Other commands that will help you would be SET_ITEM_PARAMETERS using which you can hide analysis items and also, you can use the command BACK_TO_INITIAL_DP_STATE on data providers so that they do not show up if they were blank at the start.
    Another way to hide a query is to assign the analysis item to a data provider which is blank.
    For your requirements, you will have to put multiple commands behind each button - you can decide which of the above commands suit you best.

  • Check Box or  Drow Radio Button on Bex Query

    Hi Experts,
    Does anyone know to how to put a "Check Box" or  "Drow Radio Button" variable on query selection screen?
    The user want to switch the order data between open and completed on a same report by a check box / radio button.
    Thnaks

    Hi Linkzhou,
    Why don't you directly use a var on Actual Delivery Date & include/exclude on # cases to report open/closed shipments.
    Alternatively, You can achieve the same without making changes to backend, if you are ok with using WAD. In WAD 7, you can use a DropDown webitem instead of a RadioButton/Checkbox webitem since you cannot assign a Command on selection from a RadioButton/Checkbox webitem. Also, you would need to design the same in a web template since this will not be made available on your query selection screen.
    In the DropDown webitem, use Data Binding Type -> 'Fixed List of Options' , here you can configure
    Open -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> INCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
    Closed -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> EXCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
    Now when the user selects Open option from the DropDown webitem, the data provider query will be filtered for open shipments & vice versa for Closed option.
    --Priya

Maybe you are looking for

  • Hide command-box in portal

    I create a ABAP report with ALV grid layout. I link the report to a transaction. This report will be used in the gui and add to a roll in the portal. The transaction iview works well, but the command box is also visible. We use      ~webgui_simple_to

  • Can't save project as disc image...

    Hello I am trying to save a project and am getting an error when I try to save it as a disc image. It says that there is an error that needs to be fixed before burning. First off, I must say that I created my own menu screen (thanks to Karsten Schule

  • "Message type LIP805 is unknown

    hi friends, i am facing problem with "Message type LIP805 is unknown". i am saving the MC61 create planing Hierarchy. it is giving the message document created in status bar. but the message "operation was terminated"  getting to inbox. appricate <<

  • Now my episodes won't work - I get a ! in iTunes when I "get"

    I use Podcast Maker to upload my podcasts. Tonight I added another server for a new set of podcasts....I accidentally started changing my current server info. I realized what I was doing, added a new server and put my settings back in for the first p

  • Troubleshooting ethernet on new refurb

    Could use some ideas on how to get the wired ethernet working on a new C2D 1.83 GHz Apple-refurb Intel Mini that I just took delivery on today. Using wireless I just spent the day upgrading to the latest releases on Apple's software. Now running 10.5