Auto Query LOV

Hi,
Is there a way to automatically query the values without putting the '%' and click the Find button ?
My requirement is when the user click on a LOV field and tab, it should bring up all the values available from the list without putting the '%' and find.
Thanks in Advance!
Ravi

You dont need to enter the '%' sign if you want to do a blind query in the Lov. One way to get the Lov queried when you click on it is to enter partial values. There is a feature call autocomplete which gets invoked therein. The Lov shall try to find the exact match for the partial data you entered in the field. If it finds unique match, it shows that value otherwise opens the window with filtered records.
This update doesn't solve your case, but may be you can set the expectations of the functionality in this way.
Thanks

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>
    :(

  • 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

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

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

  • Need help in Bind variable in AF Query LOV

    Hi,
    i have one problem with bind variable, if i use bind variable in the LOV VO Query then my result is not coming, if there is not bind variable it's working fine and if i use the bind variable in the LOV search option then it's working fine but if i hide the bind variable and set the value in AM prepareSesstion method the LOV is not returning any value. I try to return the values also all values are also coming but those values are not setting to AF Query Attribute.
    Query is:
    select substr(d.description,0,40) description
    from cm_system_users a,
    cm_user_responsibilities b,
    cm_responsibility_processes c,
    cm_processes d
    where a.nt_login =:B_NT_LOGIN
    and a.user_id = b.user_id
    and trunc(sysdate) between b.eff_date and nvl(b.exp_date,sysdate + 1)
    and b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
    and c.process_type = d.process_type
    and d.enabled_flag = 'Y' order by d.arguments_flag
    AM Method:
    CmProcessViewImpl vo = getCmProcessView();
    String nt_login = getUserPrincipalName();
    vo.setNamedWhereClauseParam("B_NT_LOGIN", nt_login.toUpperCase());
    vo.executeQuery();
    Can any one help me in this. it's urgent for me.

    This is a little underdescribed. IIUC, the view object in question is being used as a target for a view accessor, correct? (Otherwise you'll have to be more explicit about what you mean by "Query LOV".
    If I'm right, there are two possibilities:
    1) You are using a VO instance in a shared application module instance. If so, make sure your code is in the prepareSession() for that application module class if it's session dependent (as it seems to be below), you need to make sure the application module instance is shared at session scope.
    2) You've based the view accessor directly on the VO definition. This basically creates an anonymous VO instance; I don't think there's any way to use prepareSession() to set a bind variable on such an instance (which won't be created until the accessor is first used). You might be able to get by with putting similar code into the view object class' create() method, but I haven't tested this.
    If your code is in your primary application module class (as opposed to the class for a shared AM instance), the problem here is that getCmProcessView() returns the VO instance from that application module instance's design-time data model, which is never used by view accessors.
    By the way, why do you need to do this in prepareSession() instead of at the view accessor level? I believe you can get the logged in user name (for the view accessor) in with the groovy expression
    viewObject.DBTransaction.session.userPrincipalName
    or possibly just
    DBTransaction.session.userPrincipalName
    (despite this involving DBTransaction, it returns the web app user name, not the DB username).
    That's a 100% declarative solution, if you don't count the Groovy expression as non-declarative.
    If you're afraid of a user executing the LOV (somehow) before the bind variable value gets set, just ensure that the bind variable is marked "required".

  • Custom Search Portlet: How to specify a page in the auto query?

    I want to specify a page in an auto query (Automatically display search results).
    I'm able to specify a pagegroup (Tab What to Search), but unable to select a specific page and to include/exclude subpages.
    This option is available on the SearchForm Tab. We are running 9.0.4.

    A similar question was asked in this discussion:
    Custom Search Portlet
    A Portal Search Team member replied that this feature might be included in 9.0.4.
    We are testing 9.0.4 and it's not available. When is feature this scheduled?

  • Auto Query Form on Page

    Hi,
    I'd like to have a form on a page and when the user navigates to that page I'd like the form to pick up a session variable and put it in a field on the form and run a query. So effectively auto querying a form.
    I've seen it done before but cant seem to find it again.
    I think that it was done by putting some PL/SQL in the 'before displaying the page' area of the additional PL/SQL section. The code would load the session, get the value, set the field value and somehow make it run a query. doQuery doesn't work here.
    Any help with this would be great.
    Thaks,
    Michelle

    I have a similar problem. In particular:
    There is a private form (named MOD_ANAGRAFE_DITTA) based on a database table. The URL to
    run this form is
    https://portal.websanity.it/pls/portal/PORTAL.wwa_app_module.new_instance?p_moduleid=6994683181.
    There is also a page from which the MOD_ANAGRAFE_DITTA form is called. To do this, a URL element was added to the page in whi
    ch the above url was specified.
    Based on some of the OID attributes of the user who connects to the page, when the user runs the form, the form would have to show only the record that satisfies those attributes.
    To do this the following code was entered in the 'BEFORE DISPLAY PAGE' section of the FORMs Wizard:
    declare
    scopo varchar2(50);
    user varchar2(200) := portal.wwctx_api.get_user;
    BEGIN
    select attrvalue into scopo
    from ods.ct_scope
    where entryid in (select entryid
    from ods.ct_uid
    where attrvalue=lower(user));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_value => to_number(substr(scopo,1,1)));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_SEDE',
    p_value => substr(scopo,5));
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'SEDE');
    PORTAL.wwa_api_module_event.do_event
    ('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    END;
    where scope is the OID attribute of user; ID and SEDE are the two table columns must to be filtered
    The code to auto-query a form doesn't work as it should. The form shows all the table records. .
    Perhaps the attribute used to do the query is not a session variable?
    How can this be resolved?

  • 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

  • How to auto update LOV in Crystal Parameter inherent from SAP MDX query

    Hi,
    I'm using SAP BW MDX as my data source. How do I auto update the LOV in the parameters such that LOVs are always updated from the source.
    I am using Crystal Report 2008.
    Thank you.
    Rose

    Hi
    Please refer to BusinessObjects XI Integration for SAP Solutions User's Guide from [here|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_bip_sap_user_en.pdf]
    Hope this helps!!!
    Regards
    Sourashree

  • Querying LOV ....

    Hi,
    I am working on some screen in which there is Item Lov.Fot this I created VO and AM.Problem is in LovVO my query is like this:
    Select * from xxxxxxx where vendor_id=yy.
    So where do i need to mention where clause? I tried creating Controller on LOVRN but it doesn't work.
    Normally in my previous LOV quiries i used give select * from ......
    But in some screens i do have "where" clause also.
    Please help me if one come across this type of .....
    Thks.

    public void initQuery()
    StringBuffer whereClause = new StringBuffer();
    Vector parameters = new Vector();
    String strVendorID = "";
    OADBTransaction oadbtransaction = (OADBTransaction)getDBTransaction();
    VendorID vid = new VendorID();
    strVendorID = vid.getVendorID(oadbtransaction);
    setWhereClauseParams(null);
    whereClause.append(" Vendor_id=:1" );
    parameters.addElement(strVendorID);
    setWhereClause(whereClause.toString());
    Object[] params = new Object[1];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    }

  • Query LOV and how to display the LOV back in the Text item.

    Hi All,
    I have got a big time problem in getting back my LOV value after Querying it.
    Am using a Tabular Canvas having 10 rows and two columns, one having "Type"(as LOV) and corresponding "Type identifier".
    My LOV is an non data block item, having the correct return type. When ever i search for a value in the LOV, its should give out all the "Type Identifier" list and the "Type".
    But what i am facing is, am not able to get back the selected LOV after querying it and am getting the entire "Type Identifier' with out any filter.
    In short my requirement is,
    - I need to search an LOV,
    - Display the LOV value in the "TYPE" field.
    - Display the corresponding "Type Identifiers'
    Pls note: Since am new to Oracle Forms, if in your replies, if you specify to use any code in trigger, pls specify which trigger to use.
    Thanks a lot in Advance... its bit urgent
    Arun

    Hi Dave
    The requirement is suppose i have an Lov called OrgName is atatched to a column in which user will select the Ou Name from the list and internally the respective org_id will store into the database where the OU Name is available in the same data block but it is not database item . (Only org_id is database item)
    Now if you query the same block i would expect the Ou Name should display .
    Right now in my case it is not displaying anything into that column.
    Hope u understood this time..Please let me know is there any trick?

  • Af:query LOV selection is not retained.

    I have created a programmatic View object and created a view criteria based on three attributes.
    In af:query panel these attributes are displayed as LOVs.  When I click the LOV search icon,
    a Search and Select popup window opens.  When I select one of the rows by double clicking on it the popup
    is closed and instead of the selected value, first value in the table is selected always.
    Also, popup window occupies the entire width of the browser and the table, inside the popup, displaying the LOV attribute value list is rendered with
    horizontal scroll bar because of which the table has to be scrolled all the way till the end and then only OK button is displayed.
    Is there a way to control LOV popup window dimensions?
    Version: JDEV 11g Release 1

    Check that you defined "Key Attributes" in you VO and also in LOV VO.
    To control the width of the input parameters, in VO definition, click on the bind variable and in UI hints tab set the "display width"

  • Querying LOV schedule information

    Is there any way to query the LOV schedule information using the Business Objects Query Builder?  We are able to pull data about Crystal reports and their schedules into a database to do more thorough auditing and we would like to do the same with LOVs.  I know these are treated as reports themselves so I'm wondering how we can get at the backend data of those LOVs that are scheduled.

    I didn't think about the query tool restricting the number of rows returned.  I'm sure that is what is happening with Query Analyzer.
    Executing "select count(*) from jobrun" will give you an accurate count of the number of rows in the table since it only returns one row.
    "Trigger History Retention" does not determine how many days "Job History" will be retained.  Click on the Help Icon (?) for a description of the "Trigger History Retention" setting.
    The Defaults tab has the default value for "Job History Retention".  This determines how long Job Activity is retained.  If this is 30 days, then, if a job has not run in the last 30 days, the job may not have entries in the jobrun table.
    When a job is created, the "Job History Retention" value is used to set the "History Retention" of the job (found on the Job Definition, Options tab).  If you have never changed the value in the Defaults tab, then it is likely all your jobs have this value.  But if the Default value was changed at some point, then the jobs created before the value was changed will have one value, the jobs created after the change will have another value.  To determine the History Retention value for a single job, you can check the Options tab of the Job Definition.  To find out if all your jobs have the same value, you can run this query.
    select distinct jobdtl.jobdtl_retnsn
    from jobdtl
    If your default for "Job History Retention" was never changed, this will return a single value.
    If you know a job that runs infrequently, you can look at the History tab of the job.  I'm not sure what to expect.  If the job only runs quarterly, for example, will there be no history shown if your Job History Retention is set to 30 days?
    It may be possible to determine the last time a job ran by querying the msglog table.  This table can be quite large, so you have to be careful constructing your queries.  The Logging tab of the System Configuration specifies how long these records are retained.
    Tracy

  • When Press "Execute Query" LOV return Item not showing

    I created a LOV and defined return items.
    In the form I created display items, database property NO and assign variable name which is in LOV.
    When I enter a new record LOV shows the return item but when I am executing query only database record is showing and I want to show the all item even they are in database or not.
    Message was edited by:
    Kamran

    execute query populates only database items. To populate non database items after execute query, use post query trigger.

Maybe you are looking for