Query region needs to be modified

Hi friends,
I have a query region which is by default displaying all the search criteria fields as a single column but I want to make them displayed as two columns, how can I do this??
Please help me achieve this..
Thanks in advance.
Rdgs,
Ven.

Please refer below link http://oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/280-advance-search-page-without-using-query-bean.html
Regards,
Reetesh Sharma

Similar Messages

  • I have a query below need to be modify so the correct number rows can be fetch, where as it's fetching double numbers of rows.

    SELECT A.BZID01 callId,
    D.CNLL03 as unitLength,
    D.CNBG03 as grossWeight,
    RTRIM(D.HDTP03) as handlingType,
    RTRIM(D.CNBT03) as loadstatus,
    RTRIM(D.CNTI03) as transshipment,
    RTRIM(B.MVVA47) as vessel, 
    RTRIM(A.RSIN01) as voyage,
    RTRIM(A.ATAD01) as arrival,
    RTRIM(A.ATDD01) as departure,
    RTRIM(F.NPRM28) as rotation,
    RTRIM(E.BTNB26) as berth
    FROM CTVSIT A
    INNER JOIN CTMDVL B ON A.VMID01=B.MVV147 AND B.MVID47='VMDIDF'
    INNER JOIN CTLTHD C ON A.BZID01=C.BZID10
    INNER JOIN CTHNDL D ON D.HDID03=C.HDID10 
    INNER JOIN CTVSEI E ON A.BZID01=E.BZID26
    INNER JOIN CTVSNP F ON A.BZID01=F.BZID28 AND (F.NPCD28='POB' OR F.NPCD28 = 'PRN')
    WHERE 
    A.VMSR01='VS'
    --AND VMID01=?
    --AND RSIN01=?
    AND A.VMID01='BHJZ'
    AND A.RSIN01='005'
    AND D.HDFS03='EXE'
    AND D.HDTM03='XXX'
    AND A.TRMK01='XXX'
    Shareef

    As more replied your question was not clear , but you could try the fallowing.
    try to use Distinct before your first column, even though there is duplication in the results. try scan all the columns then you will find some values are not the same.
    SELECT
    DISTINCT A.BZID01 callId,
    D.CNLL03 as unitLength,
    D.CNBG03 as grossWeight,
    RTRIM(D.HDTP03) as handlingType,
    RTRIM(D.CNBT03) as loadstatus,
    RTRIM(D.CNTI03) as transshipment,
    RTRIM(B.MVVA47) as vessel, 
    RTRIM(A.RSIN01) as voyage,
    RTRIM(A.ATAD01) as arrival,
    RTRIM(A.ATDD01) as departure,
    RTRIM(F.NPRM28) as rotation,
    RTRIM(E.BTNB26) as berth
    FROM CTVSIT A
    INNER JOIN CTMDVL B ON A.VMID01=B.MVV147 AND B.MVID47='VMDIDF'
    INNER JOIN CTLTHD C ON A.BZID01=C.BZID10
    INNER JOIN CTHNDL D ON D.HDID03=C.HDID10 
    INNER JOIN CTVSEI E ON A.BZID01=E.BZID26
    INNER JOIN CTVSNP F ON A.BZID01=F.BZID28 AND (F.NPCD28='POB' OR F.NPCD28 = 'PRN')
    WHERE 
    A.VMSR01='VS'
    --AND VMID01=?
    --AND RSIN01=?
    AND A.VMID01='BHJZ'
    AND A.RSIN01='005'
    AND D.HDFS03='EXE'
    AND D.HDTM03='XXX'
    AND A.TRMK01='XXX'
    Working as a Senior Database Analyst & Architect at Ministry of Higher Education in KSA

  • 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

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

  • Problem with SQL query region source containing OLAP clauses

    Hi team,
    I believe I found a bug when HTMLDB validates the SQL Query in a report region.
    My query includes an ORDER BY clause within a windowing function and HTMLDB refuses to accept the source owing to the presence of the ORDER BY and the column heading sort preference.
    Clearly the order-by in a window function has little to do with the column heading sort, but this error prevents me from updating the conditional display item in the page definition.
    Note also that the page was imported smoothly from the 1.5 version, so probably the region source is not checked at that time, but only when you update it "manually".
    So, in the end, if I don't change anything the page works because the sql query is assumed to be correct but unfortunately I need to change the condition and I cannot.
    The problem shows up in page 126 of app 21670, SQL query region.
    Bye,
    Flavio
    PS: may be I can work around this by using the pl/sql function returning the sql query.

    Flavio,
    We're aware of this problem. For now, your workaround is described in this thread:
    HTMLDB 1.6 and "order by" in analytic functions
    Sergio

  • 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

  • Query region (search) displaying error

    Hi
    i have a strange problem, i have made a query region for searching and it is doing fine the first time, but when i search again it is displaying the following error:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT csi.instance_id AS productid, csi.instance_description,
    mtl.description, stat.NAME, csi.active_start_date, csi.active_end_date,
    attribute_value current_active_lines, csi.attribute1 monthly_revenue,
    csi.attribute2 quarterly_revenue, csi.attribute3 yearly_revenue,
    csi.attribute7 accumulative_revenue
    FROM csi_item_instances csi,
    mtl_system_items_b mtl,
    csi_instance_statuses stat,
    csi_iea_values attr_val
    WHERE mtl.inventory_item_id = csi.inventory_item_id
    AND mtl.organization_id = csi.inv_master_organization_id
    AND stat.instance_status_id = csi.instance_status_id
    AND mtl.attribute7 = 'P'
    AND owner_party_account_id = 15059
    AND location_id = :2
    and mtl.DESCRIPTION <> csi.INSTANCE_DESCRIPTION
    AND csi.instance_id = attr_val.instance_id
    AND attr_val.attribute_id IN (SELECT attribute_id
    FROM csi_i_extended_attribs
    WHERE attribute_code = 'ACTV_LINES')
    UNION
    SELECT csi.instance_id AS productid, csi.instance_description,
    mtl.description, stat.NAME, csi.active_start_date, csi.active_end_date,
    attribute_value current_active_lines, csi.attribute1 monthly_revenue,
    csi.attribute2 quarterly_revenue, csi.attribute3 yearly_revenue,
    csi.attribute7 accumulative_revenue
    FROM csi_item_instances csi,
    mtl_system_items_b mtl,
    csi_instance_statuses stat,
    csi_iea_values attr_val
    WHERE mtl.inventory_item_id = csi.inventory_item_id
    AND mtl.organization_id = csi.inv_master_organization_id
    AND stat.instance_status_id = csi.instance_status_id
    AND mtl.attribute7 = 'P'
    AND owner_party_account_id = :1
    AND location_id = :2
    and mtl.DESCRIPTION <> csi.INSTANCE_DESCRIPTION
    AND attr_val.instance_id(+) = csi.instance_id
    AND attr_val.attribute_id IS NULL) QRSLT WHERE (( UPPER(INSTANCE_DESCRIPTION) like :3 AND (INSTANCE_DESCRIPTION like :4 OR INSTANCE_DESCRIPTION like :5 OR INSTANCE_DESCRIPTION like :6 OR INSTANCE_DESCRIPTION like :7)))
    java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:226)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7868)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7545)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8156)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:8179)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3916)
         at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
         at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13746)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:801)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:666)
    please help

    You need to look into your code to figure out what is getting executed the next time you are running the query? I would recommend picking the query and the bind parameter from the Jdev log and testing it out in TOAD/SQL Developer.
    Regards
    Sumit

  • Query Region - Changing "Go" Button

    Using JDeveloper 10.1.3.3 with R12.
    I was going through the tutorial and I completed the "Search" tutorial. After I was done, I wanted to customize it and play around with it and I'm trying to change the "Go" button to something different, but I can't seem to find where to change the text of the button.
    I guess because when you tell it to make a query region and search panel etc it automatically puts in those buttons? But how do I change the text of the buttons.
    Thank you in advance.
    Edited by: Pierre on Jun 14, 2012 12:09 PM

    Pierre,
    Yes this is possible. The trick here is to not start with the webBean, but the OAPageLayoutBean. Also you need to attach this controller as the controller of the table beneath your query region so that when it is called, the GO button exists.
    Here is the code (presume simpleSearchRN is the name of your query region, change to match your query region name):
    OAPageLayoutBean pl = (OAPageLayoutBean) pageContext.getPageLayoutBean();
    OAQueryBean qb1 = (OAQueryBean)pl.findChildRecursive("simpleSearchRN");
    OASubmitButtonBean sb = (OASubmitButtonBean) qb1.findChildRecursive(qb1.getGoButtonName());
    sb.setText("SmartyPants");
    Hope this helps.
    Kristofer Cruz

  • Search by Date in Query Region Not working

    Hi,
    I have created a custom page with query region -autocustomization construction mode.
    This query region has a vo which contains one of the fields is requestedDate of date datatype.
    Requirement is :
    I need to fetch all records..based on requestDate (also)in search panel. But i am getting all the records in the table..
    Please advise me to solve this issue..
    Thanks in advance,
    Pradeep

    Pradeep
    You should check and compare the date field mapping with other fields that you have done the correct mapping like other fields , because there should be no issue if mapping is correct, is this entire custom page created by you ? or are you doing changes in existing custom page ?
    thanks
    Pratap

  • Auto Populate of Results Table in Query Region

    I have create Custom Page with Query Region. Region has Table For Results and Simple Search Panel. I want the Results pre populated when I Launch Page, with Option to Repopulate When User Enters Search Criteria If Needed.
    How Can I have this achieved?
    Thanks

    You can do like kumar specified. For more information on the search page implementation, refer Exercise: Search on the developer guide.
    Thanks
    PK

  • SubTab region under Query Region not consistent

    Hi,
    I have to query a table with 10 columns.Insted of showing all 10 columns in a horizontally scrollable page ,I am trying to show 5 columns in a subTab and other five in 2nd subtab.
    I created a 'Query' region with ACC , under that created a SubTab region with 2 stacklayout .Each Stack layout have its own result table(with same VO) with the Data columns I need to display.
    The problem is when you switch between Subtabs, the 'SubTab2' queries all records. SubTab1 always looks at query criteria and queries only that meets the criteria.
    'SubTab2' queries correct records only when u select 'subtab2' and the press 'GO' button in search panel. If u then press 'SubTab1' and agian 'SubTab2' , it will query all records.
    Why is 2nd subtab behaving this way , any thoughts ,suggestions on how to over come this?
    Thanks
    Sudeep

    Hi Tapash,
    There was no code under formrequet , however I was able to overcome it by setting a new controller and using code following to render the whole web bean initially.
    setAttributeValue(MODE_ATTR, SUBTAB_FORM_SUBMISSION_MODE);
    Thanks
    Sudeep

  • How to hide "Note that the search is case insensitive" text from Query Region

    Hi,
    When create a search page with Query region : Autocustomizationcriteria mode, page is showing automatically "Note that the search is case insensitive" text is showing automatically.
    this is not needed. can you please let me know how to hide this one from page.
    Regards,
    Ram

    Check this link:
    https://forums.oracle.com/message/9227812#9227812
    --Sushant

  • Query Region MessageChoice Input

    Hii,
    I have a Simple search panel in a Query Region , In this panel I have a MessageChoice(Which is used to filter values) input field
    everything is fine till here . Now I wanna add something
    1)I want to add one more value to my messageChoice , but We don't have any data in the table with that value (Ex: I wanna add "Non-alchoholic")
    2) let's say I have
    BEER
    RUM
    COKE
    PEPSI
    As values in the MessageChoice
    3)When I select "Non-alchoholic" I need to get the data with values COKE , PEPSI
    4)For this I'm Handling "Non-alchoholic" in the go button and tried to filter values only for 1)COKE 2)PEPSI
    Since Query Region Search for that particular value "Non-alchoholic" in the table ,It's not retuning any rows
    Can anybody have an Idea (Note :* I need the query Region functionality as well We can't change it )
    Appreciate your help

    If you provide example data as a table, and DDL I'll take a look for you. Images are not useful to us at all.
    Ex:
    DECLARE @table TABLE (col1 INT, col2 VARCHAR(20))
    INSERT INTO @table (col1, col2) VALUES
    (1, 'AAAA'),(2, 'CCCC')
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How to Create Master Detail Page with Query Region

    Hi,
    1. I have a requirement that i need to create a Master(Supplier) Detail(Supplier Site) Page with Query Region.
    Eg. Supplier A in Australia has Supplier Sites X in Melbourne and Y in Sydney.
          Supplier B in US has Supplier Sites C in New York and D in California.
    I need to have Search, based on two fields Supplier Name and Country
    Let us assume i am searching with Supplier Name A then the page should be in the below layout
    Query Region
    Supplier Name : A
    Country:
    Master
    Supplier Name  Country
        A                     Australia
    Detail
    Supplier Site  City
    X                   Melbourne
    Y                   Sydney
    In detail VO it should allow me to add new sites which means i need to connect this VO to database to insert new records
    I have gone few threads and understood that this can be achieved by creating SupplierVO, SupplierSiteVO and a ViewLink.
    But when tried i don't know how can i relate my query region with the Suppleir Table(Header Reagin and Table Using Wizard) and Supplier Site Table(Header Region and Table Using Wizard) i am not sure if i am correct or not, please advise
    2. Also i need to have a Open button in this page and if click the button it should navigate to some other page.
    Please help me how can i achieve this.
    - How to design my page with query region and master detail tables
    - what is the AM and CO code need to be handled
    - What is the code should i write in Open button to open new OAF page.
    Thanks,
    CSK

    Hi,
    This link will be useful for your requirement.
    Master Detail Page using Hide Show and Advanced Table inside Advanced Table - OracleArea51.com
    Let me know if you need more help in this.
    Thanks and Regards,
    Myvizhi

  • 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

Maybe you are looking for