Repeating a field in a query region

I have a htmldb_item generated query region with an editable text field. In a after submit process, I want to take some action if the value of the text field has changed.
The only way I could think of to determine if the field changed was to fetch it twice from the database, once as a hidden field and then the real text field.
select ...
htmldb_item.hidden(1,(scalar query))||htmldb_item.text(2,(scalar query)
Then in my after submit process, I can compare g_f01(i) to g_f02(i).
But that "scalar query" in there is an expensive one and I want to avoid running it twice if possible.
Is there a better way to do this?
Thanks

Repost. Thanks.

Similar Messages

  • Reg Message Lov Input Field In Query Region Search.

    Hi ,
    I have a issue to implement a Message Lov Input Field in Query Region Search(AutoCustomizationSearch).
    Please Help on this Issue
    Thanks & Regards
    Santhu

    Santhu ,
    Please Let us know the step you have followed to achieve this , and what is the error you are getting .
    Regards ,
    Keerthi

  • Query Region Update Operation problem

    Hi All,
    I have one Query region in Oracle seeded page.
    In Query region one table is there.
    My Client Requirement is he wants to add one text input field in table. so that user can enter comments in text input field.
    He also wants Update button as a Table Action and when he clicks on Update, this comments should get store into Database.
    I want to know that Update operation is possible in Query region's table.because when i handle event in controller, it gives me Following Exception.
    Logout
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
         at oracle.apps.po.common.server.PoBaseAMImpl.executeServerCommand(PoBaseAMImpl.java:115)
         at oracle.apps.po.autocreate.server.ReqLinesVOImpl.executeQueryForCollection(ReqLinesVOImpl.java:67)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:742)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:891)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:805)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:799)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3575)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:437)
         at xxadat.oracle.apps.po.autocreate.webui.XXADATAttr15CO.processFormRequest(XXADATAttr15CO.java:73)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:815)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:382)
         at oracle.apps.fnd.framework.webui.beans.layout.OARowLayoutBean.processFormRequest(OARowLayoutBean.java:366)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1027)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
         at oracle.apps.fnd.framework.webui.beans.table.OAMultipleSelectionBean.processFormRequest(OAMultipleSelectionBean.java:481)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1042)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:993)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:848)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processFormRequest(OAAdvancedTableHelper.java:1671)
    The page which i have cutomized is /oracle/apps/po/autocreate/webui/ReqSearchPG.
    It is on R12.
    Can anybody throw some points on this?
    Regards
    Hitesh

    Hi,
    I got the problem,
    It is a standard functionality of oracle that we can not update Requisitions which are approved.
    My client requirement is that after approval of Requisition, he wants to update the Requisition.
    I said that it is not possible in Forms as well as OAF.
    The system will not allow to update Requisition once it is approved.
    Regards
    Hitesh

  • OA Query Region: How to remove "like" clause in background query

    I have an <oa:query/> region that has an id field as a parameter.
    The problem is if I enter "534" it will run a query with a where clause of "COLUMN like '534%' ", which is not what I want.
    I want it to search for an exact match and not a partial match. Is there a way to do this using the standard attributes (without having to build the where clause manually)?
    TIA,
    -C

    Hi,
    You can specify the Data type of the field as Number..then the Query region will use '=' instead of 'LIKE'.
    Arun

  • Query Region (autoCustomizationCriteria) search criteria issue

    Hi All,
    In my search page I have used a Query Region with Construction Mode as autoCustomizationCriteria. Fot this regionin in Simple search panel I have 3 dropdowns and 2 Date Fields(OAMessageDateFieldBean) which in turn are mapped with related simpleSearchMappings fields.
    On this page , for search result table as table actions i have a create button which transfers me to create page. On create page I have the same dropdowns and date fields which are there on search page as search criteria.
    Now when i create a record , on click of create button records gets created and controls returns back to the search page with this newly created record in the search result table.(by default whenever search page is rendered it shows all records)
    The problem here is the search criteria dropdown and date fields gets populated with the values with which a new record was created .
    Why these values are getting populated as the page is difference and whenever the VO is querried I am already clearing its cache?
    Any suggestions regarding this ?
    Thanks and Regards,
    Anant Nimbalkar.

    Hi RamKumar,
    I have tried not to retain the AM and it worked but now there is a different problem.
    On create page on click of save button the record gets saved and related message is displayed on search page. (Used to work before i made retail AM flag false)
    But now as i have set it to false I am unable to show these messages on the Search page .
    Any idea how both these things ie dropdown with no values(on search page) and message can be achieved ?
    Thanks and Regards,
    Anant Nimbalkar.

  • Issue in LOV Region in query region

    Hi ,
    I hava a query region with autocustomization true, include simple panel=true initial pane: simple
    In search field i add a field of User Id LOV and attached the vo. UseridLOV :
    set search allowed true
    map with table values.
    Issue is : IN LOV region of User Id when i click go it shows all records . But if i search a value with A% it shows no records eventhough it is having records starts with A.
    Why is it happening...Anybody help me.
    Thanks,
    Pradeep
    Edited by: user11165897 on Oct 4, 2012 6:13 AM

    Hi Pradeep,
    I have tested my lov it is working fine .Sometimes LOV doesn't work ,can you please remove and recreate lOV and add to your userid field
    Thanks
    Shiva
    Edited by: 940580 on Oct 5, 2012 12:18 AM

  • Stack overflow error in query region

    HI All
    I have a query region with advanced table. I also have a detailed region inside this advance table. I.e. table inside table master detail type. I have advance search and view panel set to true . Everything is working fine I.e. simple , advance and save search, and my search result shows show hide and I can drill down to detail.
    The problem
    I have set user personalization true so I got list of all fields in save search , this list have fields from master and detail table both and I can add fields from master table to save the view, but same does not work for detail table fields , I can see them in save search but can't save them in views because I have set user personalization to false for detail table fields which is fine. But strangely when I set user personalization to true on detail table field I get stack over flow error when the page loads.
    I know it's not a common thing so any help on debugging this will be helpful

    HI All
    I have a query region with advanced table. I also have a detailed region inside this advance table. I.e. table inside table master detail type. I have advance search and view panel set to true . Everything is working fine I.e. simple , advance and save search, and my search result shows show hide and I can drill down to detail.
    The problem
    I have set user personalization true so I got list of all fields in save search , this list have fields from master and detail table both and I can add fields from master table to save the view, but same does not work for detail table fields , I can see them in save search but can't save them in views because I have set user personalization to false for detail table fields which is fine. But strangely when I set user personalization to true on detail table field I get stack over flow error when the page loads.
    I know it's not a common thing so any help on debugging this will be helpful

  • 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

  • Rendered=false column is not returning value in simpleSearch Query Region.

    Hi Guru's,
    I have a simpleSearchPanel with two search columns Order Number (Rendered=true, i.e Visible to User in the form) and Order Id(Rendered=False, i.e Non visible to User in the form) which are getting values from LOV. The LOV selection Order Number and Order Id are getting values and Order Number column is rendered true(visible) query able to return the values, but Order Id is not getting values because Rendered=False/Not visible Field.
    Unfortunately i can't make OrderId filed as "formValue" because of simpleSearchPanel (autoCustoomizationCritirea) query region.
    I appreciate your help.
    Regards
    Pathi

    its not the problem with simpleSearchPanel, it is the messageComponentLayout within simpleSearchPanel which is restricting the formValue.
    just change the region style to defaultDoubleColumn and create the formValue into it.
    This should solve your problem..
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

  • Query region Search mappings issue

    Hi,
    I have components laid out like the following in my app
    Query Region
    |
    |-subTabLayout
    | |
    | |- AdvanceTable 1
    | |- AdvanceTable 2
    |
    |-Query Components
    |-Simple search panel
    |-Simple search mappings
    Issue: I mapped each of the search inputs to the valid column ids from Advancetable1 and advancetable2 in the simple search mappings. When I run the application with some search parameters in the search fields belonging to both the tables, I only see AdvanceTable1 criterias being passed and advancetable2 criterias not appearing. (I am getting the criterias in the controller using queryBean.getCriteria() which returns a Dictionary[]).
    Is there a limitation for Query region to have one region alone or am I missing something? Your help is appreciated.
    Thank you for your time.
    Regards,
    Arun

    If you have a complex serarch region structure, its always better to go for a custom region where you can manipulate the things as you want.
    --Shiv                                                                                                                                                                                                                                                                                                           

  • Query Region Rendering Issue between RUP4 and RUP5 Env.

    Dear OAF gurus
    We currently face an issue with a custom built OAF query region, where the regions works perfectly well, i.e. the page renders in a timely fashion with all its fields in one Apps environment (Dev) and then “Hangs and eventually times-out” in another environment (SysTest).
    Clearly this leads us to believe that there must be an issue with the environment configuration and/or patch/product levels, namely the OAF tech-stack.
    The Development Env. where this is working:
    ===========================================
    OAF Version : 11.5.10 RUP 4.
    MDS Version : 9.0.5.4.89 (build 555)
    UIX Version : 2.2.24
    BC4J Version: 9.0.3.13.93
    The System Test Env. where this is NOT working:
    ===========================================
    OAF Version : 11.5.10 RUP 5.
    MDS Version : 9.0.5.4.89 (build 555)
    UIX Version : 2.2.24.1.0
    BC4J Version: 9.0.3.13.97
    As you can see there are differences in Rollup Patches and OAF platform.
    The System Test Environment is clearly a head of the Development environment and this is where we are facing the issue. If we patch the Development environment to the same level as the Test, then the issue will manifest itself in both environments. The client will be going live with RUP5 or higher.
    The offending region is has the following structure:
    The parent/root page is : XxxMyQueyRegionRN, which is a “defaultSingleColumn” Region Style with its own controller class.
    Immediately under the above region there is a “query” region style child, which has the following attributes:
    Construction Mode : resultBasedSearch
    Include Simple Panel : False
    Include Views Panel : False
    Include Advanced Panel : True
    Initial Panel : advanced
    Show Views Panel Control: True
    The above Query Region has underneath it a “table” region style, which essentially is the results table.
    This table node has a number of “messageStyledText” fields under it. Each field is mapped to a VO and VO attribute.
    A number of these items have their “Search Allowed” property set to True, which means that are search-able fields in the Search Panel.
    There is nothing special or extraordinary about the above region and yet it renders in one environment and then hangs (i.e. the page times-out) in another. How do I know it is this specific region that causes the time-out? well when I take it out of the parent Page, the page works fine in both environments and as soon as include it, it times-out.
    Has anyone encountered this issue before? Has the OAF technology changed between RUP 4 and RUP5 sufficiently, so that certain custom pages will have to be re-developed?
    Any help and Guidance is appreciated.
    Thanks
    Patrice.

    Patrick,
    Check the apache log to see if contains any error or whether it lists the process which is taking so much time to lead to timeouts.
    In case you have a blind query based search result table population on page rendering, try to render the page without the query execution.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • 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

  • 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

Maybe you are looking for

  • How to "select a Directory" from Browse button

    Hi all, I am new to Swing API. All I want is to create a TextField and a Browse button. User has to select a directory from Browse button and upon selection of the directory and clicking OK, the directory should be placed into TextField. Hope this is

  • How to print pdf on a legal sized paper

    I can't seem to print pdf files on legal sized paper properly. They always shrink it down. I have tried going to "paper handling" and clicking "scale to fit paper size" to US Legal. On Copies and Pages I have to click "Fit to Printable Area" otherwis

  • I restore and itunes tells me to restore on and on

    Whwn I connect my 2nd gen nano to the usb port, it says on its display not to disconnect, after a brief moment a dialogue window appears on itunes and tells my to restore, confirmation window appears: "are you sure...?" - yes - it restores, the apple

  • Working with Multiple Track Mattes-Help

    I have 2 track matte questions: 1 - I have created a shape in Titler to use as a matte....white verticle rectangle. I want this "shape" to hold its postion in frame while I move video underneath to reveal a portion of the image. I have video on v1...

  • Cisco 5508 Hreap - slow wireless throughput

    I have a Cisco 5508 setup at a host site with 3 other sites connected using hreap on 1252APs. When doing testing of network speed I find that the throughput from the wireless to wired network is at about 18mbps yet the same test  on wired side is 85-