LOV always auto-querying on second use

Hi,
I have an LOV with about 220,000 rows, so for obvious reasons, I've turned auto-query off (users must enter search criteria to use the LOV). This works great the first time someone populates a field in a multi-row table from the LOV, but the next time they use it, the LOV auto-queries all 220,000 rows. Am I doing something wrong? Is this a bug, and if so, is there a workaround?
Thanks much,
Avrom

Avrom,
We have fixed this for the upcoming release. You can apply a similar fix by creating a custom subclass of JhsDataAction for the Lov struts action, with the following code in it:
public void onQuickSearch(DataActionContext daContext)
HttpServletRequest request = daContext.getHttpServletRequest();
if ("true".equals(request.getAttribute(LOV_CHECK_FIND_MODE)))
return;
super.onQuickSearch(daContext);
Steven Davelaar,
JHeadstart Team

Similar Messages

  • Auto query LOV when window pop's up

    Hi,
    I have external LOV and I'm trying to auto query all raws when user opens LOV window.
    The thing is that user is too lazy to put % in criteria item and since its in Advanced table I can't initialize value there.
    Any idea?
    I putted this in my lov CO ProcessREquest
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObjectImpl vo = (OAViewObjectImpl)am.findViewObject("otItemsVO1");
    vo.executeQuery();
    but it is not working.
    I do not know why

    Hi.
    Thank you for your help.
    I tried your code and here is the result.
    the first time that I open the LOV printed query is the one below
    select distinct pll.inventory_item_id,
    pll.item_description,
    pll.list_price,
    lv.lookup_code
    from qp_price_list_lines_V pll,
    fnd_lookup_values lv
    where pll.price_list_id = lv.attribute5
    and lv.lookup_type = 'XXA_ASN_QT_TYPES'
    order by pll.item_description asc
    the second time I open the LOV the query is this one with bind variables
    SELECT * FROM (select distinct pll.inventory_item_id,
    pll.item_description,
    pll.list_price,
    lv.lookup_code
    from qp_price_list_lines_V pll,
    fnd_lookup_values lv
    where pll.price_list_id = lv.attribute5
    and lv.lookup_type = 'XXA_ASN_QT_TYPES'
    order by pll.item_description asc) QRSLT WHERE (( UPPER(LOOKUP_CODE) = :1 AND (LOOKUP_CODE like :2 OR LOOKUP_CODE like :3 OR LOOKUP_CODE like :4 OR LOOKUP_CODE like :5)))
    none of times I got the result queried.
    this is my LOV
    <oa:listOfValues version="10.1.3_1086" xml:lang="en-US" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:jrad="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:user="http://xmlns.oracle.com/jrad/user" xmlns="http://xmlns.oracle.com/jrad" file-version="$Header$" amDefName="oracle.apps.xxa.qt.lov.server.qtLovAM" postDefault="false" controllerClass="oracle.apps.xxa.qt.lov.webui.qtOTItemsLOVCO">
    <ui:contents>
    <oa:table id="ssItemsTAB" serverUnvalidated="false" name="qtOTItemsLOV" blockSize="100">
    <ui:contents>
    <oa:formValue id="InventoryItemId" dataType="NUMBER" prompt="InventoryItemId" viewName="otItemsVO1" viewAttr="InventoryItemId"/>
    <oa:messageStyledText id="ItemDescription" dataType="VARCHAR2" prompt="Servicio" viewName="otItemsVO1" viewAttr="ItemDescription" maximumLength="240" queryable="true"/>
    <oa:messageStyledText id="ListPrice" dataType="NUMBER" prompt="Precio" viewName="otItemsVO1" viewAttr="ListPrice"/>
    <oa:messageStyledText id="qtType" viewName="otItemsVO1" viewAttr="LookupCode" selectiveSearchCriteria="false" rendered="false"/>
    </ui:contents>
    </oa:table>
    </ui:contents>
    </oa:listOfValues>
    and this part is my mapping
    <oa:messageLovInput id="itemDescription" externalListOfValues="/oracle/apps/xxa/qt/lov/webui/qtOTItemsLOV" viewAttr="Description" unvalidated="false" translatableDefaultValue="%">
    <lovMappings>
    <lovMap id="lovMap1" lovItem="InventoryItemId" resultTo="inventoryItemId"/>
    <lovMap id="lovMap2" lovItem="ItemDescription" resultTo="itemDescription"/>
    <lovMap id="lovMap3" lovItem="ListPrice" resultTo="grossAmount"/>
    <lovMap id="lovMap4" lovItem="ListPrice" resultTo="grossAmountDsp"/>
    <lovMap id="lovMap5" lovItem="ListPrice" resultTo="netAmount" useForValidation="no"/>
    <lovMap id="lovMap6" lovItem="qtType" requiredForLOV="true" criteriaFrom="Qttypecode"/>
    </lovMappings>
    </oa:messageLovInput>
    :(

  • HT201263 When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong

    When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong?

    - Try a reset. Nothing is lost:
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Connect the iPod to your computer and try to restore via iTunes. Try placing in Recovery mode if necessary to restore.
    - If you can't turn the iPod completely off, let the batter fully drain. After charging for at lerast anhour try again
    - If still not successful time for an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.

  • I use 1 Icloud account with 2 devise but the other devise arrest out mine, than my devise was not able to connect to itune anymore. My devise still can swich on but it always restart after afew seconds. So can it fix ?

    I use 1 Icloud account with 2 devise but the other devise arrest out my devise throue find my iphone, than my devise was not able to connect to itune anymore. My devise still can swich on but it always restart after afew seconds. So can it fix ?

    Looking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
    emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
    As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
    -Ramesh

  • Auto querying using Portal form?

    A friend of mine has a report that is linked to a form, where users can edit the data. The value from the report is passed to the report, no problem, but the user must manaully click on the query button to display the information. My question is: how can I make the report query on the passed value without having to manually click the "query" button? Thanks
    Rich

    Richard,
    Please take a look at our FAQ:
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm
    "Building Applications" section has several examples of links how to call a form in "auto-query" mode.
    Thanks,
    Dmitry

  • Cached results returned from LOV even though query criteria has changed

    Hi,
    JDeveloper 10.1.3.4
    JHeadstart 10.1.3.3.81
    We have a screen that is entered in create row mode. Just prior to entering the screen the user has to select a study for which the record is to be created for. On the screen we have an LOV and a few read-only fields that are populated from the LOV selection. The LOV includes a "study id" as one of its query bind parameters. The data returned by the LOV is very study specific in that a code used in one study will be the same as another however have a very different meaning. We are finding that the first time a code is used, the LOV dialog is shown, however it doesn't get shown again (just automatically populated) for any other further records created even though the user has changed study. It appears as though the code entered by the user is checked against the cache for a match and ignores the fact that the query bind parameter value has changed and should therefore either re-display the LOV dialog or retrieve the results from the correct study.
    The requery condition on the LOV seems irrelevant here (as I changed it to Always and nothing different happened). And of course there isn't a requery condition on the main view object as it is in create row mode.
    Can you point me in the direction of how to clear this cache when a new study is selected? I am unsure how to get at this cache.
    Thanks.

    Barry,
    Hard to help you as it is very specific to your app.
    Can you run in de bug mode and set a breakpoint in LovItemBean.validateWithLOV?
    This should help you find out why the LOV is not shown the second time.
    Steven Davelaar,
    JHeadstart team.

  • LOV's auto refresh and having unique values.

    Hi, I'm having LOVs connected with few attributes of a table, and those fields are used in view criteria of the table.
    This view criteria is used in the af:query component as search fields.
    To avoid the duplicates in the LOV, i created a separate view for each of the attribute, using the distinct key , and connected them with the attribute via view accessors. So that the af:query component , search field drop downs can give unique value of the column.
    There is an another requirement, to refresh the LOVs of the search field, when there is a change in the database. To accomplish this auto refresh property of the view's query, i added the PK of the table with each view. By doing this i can see the latest values of the database in the UI . ie, the LOVs of af:query getting the changes of database.
    But this one causing, the duplicate values to be in LOV, and the distinct key word in the view's query will not work because of the PK of table is added to query.
    I tried different ways to query , like groupby . But no success.
    I need both auto refresh as well as unique values in the LOVs of the af:query . Could some one point me a reference to solve this. Thanks .
    Edited by: user642477 on Oct 7, 2010 10:52 AM

    user642477 wrote:
    Hi, I'm having LOVs connected with few attributes of a table, and those fields are used in view criteria of the table.
    This view criteria is used in the af:query component as search fields.
    To avoid the duplicates in the LOV, i created a separate view for each of the attribute, using the distinct key , and connected them with the attribute via view accessors. So that the af:query component , search field drop downs can give unique value of the column.
    why you have done that what is your reason?!!! it seems so wierd to me? you could easily add distinct on query of the viewobject!

  • Save date with precision (Hour, Minutes, seconds ) using V.O.

    Hi all,
    I'm using Jdeveloper 11g.
    I have an Entity object with a column called 'createdOn' of type Date and an entity based View Object with the same type.
    I'm trying to save today's Date with precision (day, month, year, hour, minutes, seconds) Using the view Object, but when I look in the Data Base, always appears the date without time.
    Here is my code in the application Module to save the data, I've tried some things but nothing...
    First I've tried using oracle.jbo.domain.Date, and I've tryed using Calendar as well. Nothing with
    ViewObjectImpl voSample = getSamples1View1();
    //Date creation for View Object
    oracle.jbo.domain.Date today = new Date(Date.getCurrentDate());
    //Calendar today = Calendar.getInstance();
    //loop through the list of samples (TESTGROUPTYPES), and create the objects
    while( it.hasNext())
    Row rowSample = voSample.createRow();
    SequenceImpl sequence = new SequenceImpl("SAMPLES_SEQ", voSample.getApplicationModule());
    rowSample.setAttribute("SampleId", sequence.getSequenceNumber());
    rowSample.setAttribute("CollectionId", stCollectionId);
    rowSample.setAttribute("TestgroupType",it.next());
    rowSample.setAttribute("UnitId",stUnitId);
    rowSample.setAttribute("SampleStatus", "ORDERED");
    rowSample.setAttribute("SampleBackup", "false");
    rowSample.setAttribute("CreatedOn", today);
    voSample.insertRow(rowSample);
    voSample.getApplicationModule().getTransaction().commit();
    Any help will be usefull,
    thanks in advance
    XAVI.

    Hello John,
    yes, I changed the date mask using
    alter session set NLS_DATE_FORMAT='DD/MM/YYYY-hh24:mi:ss'
    if i execute to_char(<date_column>, 'YY-MON-DD HH:MI:SS') on that column, the result is:
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    09-MAY-27 12:00:00
    To launch the queries and see the results I'm using the JDeveloper's SQL WorkSheet.
    I can update the data and time and the time persists in the DB
    08-FEB-26 08:07:56
    so, i think there's something in hte EO, VO or App Module method that I'm doing wrong...
    The Entity Attribute is confirured:
    name: CreatedOn
    Type: Date
    Value type: literal
    Values checked: Persistent, Precision Rule and Queryable
    database column: CREATED_ON, type: DATE
    The View attribute is configured:
    Name: CreatedOn
    Type: Date
    Value type: Literal
    checked: Mapped to Column or SQL, Selected in query, queryable
    query column: Alias: CREATED_ON, Type: DATE

  • Help :My 9860 bad now,always auto-restart.

    My 9860 USB charge yestoday. Now it always auto-restart,
    install the battery connected to a computer show repeated 10 seconds the LED light off.
    If without batteries then it display battery "X"  when connected to a computer.
    9000 bad now |*_*| auto restart wiping....

    Hi and Welcome to the Community!
    Please try this sequence...note that, throughout the entire 4h15m process, your BB must remain directly connected to a known-good wall charger (not PC USB, not a cradle):
    With the battery inside, connect your BB to the wall charger
    Leave it alone for 2 hours, no matter what the LED or the display does
    Remove the battery
    Wait 15 minutes
    Insert the battery
    Wait another 2 hours, no matter what the LED or the display does
    This has been known to "kick start" some BBs.
    It is also possible that your battery or BB has experienced a problem...to test, this sequence is needed:
    Obtain an known good and already fully charged additional battery...use it in your BB and see what happens
    Obtain access to a known good and identical BB...use your battery in it and see what happens
    The results of this will indicate if it's your BB or your battery that has the problem. Note carefully please that "new" and "know good" are not necessarily the same things. While rare, a "new" battery certainly could be defective. Rather, the simplest (and least costly, btw) method to conduct this test is to find someone with an identical BB who has no issues...trade batteries and see what happens.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • Passing a default value to the master block and do the auto query

    Hi
    My problem is i have a MD FORM to which i have to pass a default value and do an auto query so that when i run the form the form should open with this default value and do the query and get the details.
    I tried many things like trying to set the value of the column using p_session.set_value and then calling the same form using wwa_app_module_link by using the value in the condition but every time unless i press the query button i did not get the values.
    Now i don't know what to do.
    My portal version is 3.0.7.6.2
    Some body please help me
    thanks
    Sreedhar

    I don't think this works for 3 parameters, but I know it will work for 1. Maybe you can do something with it.
    1. Create a link to the destination component (YourProvider.YourLink)
    2. Use the code below to use that link to pass the value of a form field to the destination component. 'FieldName' is the field on the destination component you want to query, and '_FieldName_cond' is the condition. This creates the destination URL.
    3. wwa_app_module.set_target(l_url) will send you to the URL you generated.
    l_url := PORTAL.wwv_user_utilities.get_url('YourProvider.YourLink', 'FieldName', v_YourParameterValue, '_FieldName_cond', '=');
    portal.wwa_app_module.set_target(l_url);
    I'm not the best at this, but this works for me in most cases.

  • Handling query errors when using ADO connection in MSAccess

    Hello,
    I'm working on enhancing a data pull from a terrabyte sized Oracle database for use within an MSAccess front end. The current plan is to append and update tables within Oracle using ODBC pass through queries or ADO connection objects, then copy the resulting much smaller data set to Access for further processing.
    Oracle client: 11g
    Access DB: 2010
    Tnsnames.ora in place
    Connection via ADO connection, or DAO/ODBC pass thru queries
    connect string:
    "ODBC;DSN=dbname;UID=username;PWD=password;DBQ=dbname;"
    i have also tried:
    "ODBC;driver={Oracle};DSN=dbname;UID=username;PWD=password;DBQ=dbname;"
    there are two issues i'm facing:
    1) comparing performance with the SQL developer, where for some runs, Access is significantly slower, other times its fine
    2) trapping errors, where it appears that all i get is the query timeout error, rather than a more informative error, such as a key violation.
    in the first instance, creating about 6000 rows in the Oracle table takes about a 2 seconds using the SQL developer, and sometimes about 6 minutes with either ADO or DAO methods of queriing, but then sometimes its nearly as quick (?). Is there any way to figure out how to make the performance equivalent or consistent? This is probably not the forum, but maybe someone could post a link to where people are doing this more often (my google searches are returning spotty results)
    But in addition, it seems like if there is an error in the query, such as a key violation, the query will wait all the way until the timeout value in many cases before returning just the timeout error, which tells me nothing. I need to keep that value pretty high, as sometimes the client will pull a lot more than 6000 records. Its also inconsistent, sometimes i get the key violation in 5-6 minutes, other times its all the way to 10 minutes before the timeout error happens, rather than almost immediatly with SQLdeveloper. is there any way to return error messages more quickly?
    thanks much for the help - I'm going round in circles here.

    Hi,
    I am working on OLAP catalog. I created one cube and 6 Dim. And OEM Console mgs showing this as valid CUbe. When I m trying to create Presentation after selecting my Measure it gives this error:-
    oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to execute the query, Generic at TxsOqCursorManager::fetchInitialBlocks
    SEL: Unexpected error occurred. Contact Oracle Support!, Generic at null
    java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to execute the query, Generic at TxsOqCursorManager::fetchInitialBlocks
    SEL: Unexpected error occurred. Contact Oracle Support!, Generic at null
         void oracle.dss.dataSource.common.QueryDataDirector.addDataDirectorListener(oracle.dss.util.DataDirectorListener)
              QueryDataDirector.java:687
         void oracle.dss.dataView.ModelAdapter.setDataDirector(oracle.dss.util.DataDirector)
              ModelAdapter.java:145
         void oracle.dss.crosstab.CrosstabModelAdapter.setDataSource(oracle.dss.util.DataSource)
              CrosstabModelAdapter.java:49
         void oracle.dss.dataView.Dataview.setDataSource(oracle.dss.util.DataSource)
              Dataview.java:386
         void oracle.dss.addins.wizard.presentation.PresentationWizardState.applyQuery()
              PresentationWizardState.java:106
         void oracle.dss.addins.wizard.presentation.PresentationWizardDialog.wizardFinished(oracle.bali.ewt.wizard.WizardEvent)
    It is little urgent.
    JDev version is 9.0.3.3 (Build 1205)
    Business Comp Version 9.0.3.11.50
    OS Win 2000 Proff
    DOwn Loaded BIBean9032 and bibeans90321 patch

  • BESX SP3 MR6 - Email attachments are now ALWAYS Auto-download - not good with duplicate attachment names

    Does anybody else see where email attachments are now always auto-download on all devices. The policy option was phased out in 5.0 but the default at that time was no (to auto-download). Now they all auto-download.
    1. PDF will not display because they must stay as attachment to render on Blackberry device. Says
    “This attachment type cannot be viewed on your device”
    2. Phone messages attached as voicemail.wav - first one works, but since no longer the "Preview" option second says "Fielname exists - Rename?" Some devcies you can save and go back - others you can't.

    Surely there's an expert on this forum who can help?

  • Auto Query Form on Page not working

    Hi,
    I created a simple form portlet and want to autoquery it on a certain record. I added this code to "Before displaying the page" :
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_STC_SAMPLINK',
    p_value => 620352);
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'STC_SAMPLINK');
    PORTAL.wwa_api_module_event.do_event('DEFAULT', 'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    This performs the query but i see this first record of my table, while it should show the record with STC_SAMPLINK = 620352. When I remove the do_event statement, i can see the field filled in correctly and when pressing the query-button manually, it does show the record with STC_SAMPLINK = 620352.
    What am I doing wrong?
    Using Application Server 10.1.2.0.2 on HP-UX

    I just discovered that it does work using p_session.set_shadow_value (with extra p_language parameter). Does this mean that note 316158.1 on metalink (based on Auto Query Form on Page is no longer valid for 10g ?

Maybe you are looking for