af:query   component  "Add Fields"  clarification

Hi, in the advanced mode of <af:query> using the "Add Fields " function , duplicate fields(same search field can be added multiple times) can be added. Is this a bug or a feature. Where can i refer the doc to confirm this . Thanks.

I don't know that the documentation specifically says anything about this. [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_query.htm#BGBCHFEF]here is one piece of documentation.

Similar Messages

  • Af:query component added field not removed when remove icon is clicked

    I have an af:query component on a popup dialog. In advanced mode when I add a field, the new field appears in the searchRegion followed by a red X remove icon. If I subsequently click that remove icon, the query refreshes, the red icon is gone, but the newly added field still remains. The query component is linked to a standard VO query executable in the bindings. There is no custom processing of the value, model, queryListener or the queryOperationListener. In all other respects the query component works fine. The only problem is a newly added field not being removed when the remove icon is clicked. Here's how the component is setup (an added wrinkle is that the query component is hosted in a Declarative Component, so that makes this code a little harder to decipher).
    Does anyone know where I should start looking for this? Hopefully I don't have to implement my own queryOperationListener.
    JDev version is Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    --- snippet from the page fragment ------
    <af:popup id="frmsLstPU" contentDelivery="lazyUncached">
    <af:dialog id="d1" type="ok"
    styleClass="AFStretchWidth" resize="on"
    stretchChildren="first" contentWidth="840"
    contentHeight="480"
    title="#{UnifiedResourceBundle['FORMSLIST.DIALOG.TITLE']}">
    <idmkr_adf:Correspondence_Formslist_Query idmkr_query_model="#{bindings.FormVOFlatQueryCriteriaQuery}"
    idmkr_table_binding="#{viewScope.FormsListBacking}"
    idmkr_table_model="#{bindings.FormVOFlatQuery1}"
    idmkr_bindings="#{bindings}"
    idmkr_resourcebundle="#{preferences}"
    idmkr_printStreamBean="#{viewScope.FormsList}"
    id="cf1">
    </idmkr_adf:Correspondence_Formslist_Query>
    </af:dialog>
    </af:popup>
    -- snippet from the Correspondence_Formslist_Query declarative component ------
    <af:query id="qryId1"
    headerText="#{UnifiedResourceBundle['FORMSLIST.QUERY.SEARCH.TEXT']}"
    disclosed="true"
    value="#{attrs.idmkr_query_model.queryDescriptor}"
    model="#{attrs.idmkr_query_model.queryModel}"
    queryListener="#{attrs.idmkr_query_model.processQuery}"
    queryOperationListener="#{attrs.idmkr_query_model.processQueryOperation}"
    resultComponentId="::resId1" displayMode="default"
    styleClass="AFStretchWidth"
    rows="4" maxColumns="2"/>

    I have changed the contentDelivery from "lazyUncached" to "immediate" and the same problem occurs. Thank your for your suggestion.

  • Auto suggest behavior for af:query component LOV fields.

    Hi,
    I am new to ADF development and need help on implementing auto suggest behavior to the LOV fields generated by af:query component. For inputList and inputCombo.. fields we can add af:autosuggestbehavior tag to enable this. How do we enable the same for af:query generated LOV fields.
    Regards,
    C.R

    Thanks Timo for such a quick response.
    JDev version we are using is 11.1.1.6.0
    Unfortunately, we have gone too far with the AF:Query and Everything else is working apart from Auto-Suggest on AF:Query. Now will take a lot of time to implement and test. Also, users will have to spend considerable time to test it again.
    Thanks and Regards,
    Satya

  • Add custom field to af:query component?

    Anyone had any experience overriding af:query copmonent? I need to add my custom search field (to query component), which would have a search icon next to it, and on click, a popup widow would open containing my custom task flow where I could select a record with certain value and on return that custom field (in query component) would get populated with selected value. I hope I'm being clear. Please point me to any useful information. Is that even possible? I use JDeveloper 11.1.2.3.4.0 Regards, Marko

    Hi,
    af:query is a component that comes as is. Its not designed for customization in that you can add your own fields. If you have a requirement for this then
    1. expose a method on the VO Impl or AM Impl that expect arguments (your query parameters)
    2. Use the arguments to populate bind variables used by a ViewCriteria
    3. Apply the View Criteria to the View Object
    4. Execte the View Object
    5. Drag and drop the method from the DC panel as a parameter form
    6. Ensure the result table PartialTrigger property is pointing to the button ID of the parameter form
    7. Change whatever UI component you want to change in the parameter form
    This gets you going ...
    Frank

  • Accessing fields of the af:Query Component

    Hi all,
    I need to get the value of a dynamic field that is added to the query component at runtime.
    In my application there is field named "Member Id" which adds a "select one component" in the advanced search mode.
    This "select one component" has a string value "self".
    What I need to do is,
    When the value "self" is selected from the "select one component" I need to use the Id of the user
    as the "Member Id" for the search query.
    Is it possible achive this by using af:query component ? or is there a different approch?
    I'm using JDeveloper 11.1.1.0.1
    Thanks,
    Melaka

    Melaka,
    first create a custom View Object Class for your View Object from the Java Classes pane. Then override the buildQuery() method of the ViewObjectImpl by writing the following code:
    @Override
    protected String buildQuery(int noUserParams, boolean forRowCount) {
    // call super.buildQuery() to allow the framework to build the query
    String query = super.buildQuery(noUserParams, forRowCount);
    // here you will modify the query
    // if the query contains your keyword
    if (query.contains("'self'")) {
    // replace it with the actual user id
    // return the modified query
    return query;
    I am sure there are other cleaner ways to accomplish this.
    Consider for example using two separate attributes: one Transient for your "Member Id" query criteria - what is shown to the user - and another attribute actually mapped to a column that is used for querying. You set the value of the second attribute as the first one changes.
    Regards,
    Nick

  • Retrieve Filter Field from af:Query Component

    I'm using an af:query component on my form and have pre-definied ViewCriterias that load the page. Each ViewCriteria contains one field that is used across all of my search criterias....I need to be able to retrieve this field in my backing bean and get the value of it. I need to know what the user is searching on for this one particular field (i.e. which will always be available in the af:query. I have the queryListener pointing to a method in my backing bean...does someone have some sample code on how to access the fields used in the query and then access the value of one in particular?
    public void headerQueryListener(QueryEvent queryEvent) {
    CommonHelperFunctions.resolveMethodExpression("#{bindings.AllChangeOrdersQuery1.processQuery}",
    null, new Class[] {QueryEvent.class}, new Object[] {queryEvent});
    // What can I add here to retrieve a filter field and then retrieve it's value??
    The queryListener on my af:query component then calls this headerQueryListener in my backing bean.
    Thanks.

    I have tried the following code just messing around:
    QueryModel varQueryModel = getQueryHeader().getModel();
    List<AttributeDescriptor> attributeDescriptors = varQueryModel.getAttributes();
    AttributeDescriptor ad = attributeDescriptors.get(3);
    The attributeDescriptors has the information that I need. I can see the elements in my query and I can see that element 3 is the one I want, but it doesn't have the an _attrDef name but it does have an mAttrName and the mValues[0] mValue has the value that I'm looking for, but I'm having trouble figuring out how to access this information and retrieve what i actually need.  I'm very new to Java and ADF so sorry if this is a basic Java question, but if anyone could point me to an example or some sample code, I really appreciate it.
    Thanks in Advance.

  • Hide 'Add Fields' in af:query

    Hi guys,
    I just want to hide 'Add Fields' alone in advanced section of af:query.
    Is it possible?
    Thanks in advance
    Dev

    There are two possible solutions:
    1. you can add a skin selector and hide hte footer component, which holds the button to add fields.
    in your skin.css file add
    .AFMyQuery af|query::footer-facet-content-style
      display: none;
    }and put this as AFMyQuery as styleClass onto the af:query
    ... styleClass="AFMyQuery"...2. you add a af:spacer into the footer facet of the af:query and set it's height and width to 1px. This will hide the button too. From the doc
    . If a footer is not specified then an 'Add Fields' dropdown is automatically added to the facet. If a footer facet is specified, (that includes custom buttons for example) the default 'Add Fields' dropdown will not appear and users are required to specify it explicitly in the footer facet along with the other content if this functionality is desired.add this to the af:query
                                           <f:facet name="footer">
                                                <af:spacer width="1" height="1" id="s1"/>
                                            </f:facet>
                                        </af:query>Timo

  • How to control attributes in 'Add Fields' in af:query Advance mode

    Hi,
    The VO attributes those set Queriable=false doesn't appear in the Add Fields dropdown in ad:query advance mode.
    But I have few attributes in a VO those required to use in VO query so I cannot set those attrbutes Queriable as false.
    Also observed that QBE doesn't work for the attributes whose Queriable set as false.
    So can someone please suggest me how to achieve below,
    VO attribute which having Queriable=true but doesn't appear in 'Add Fields' dropdown in af:query advance mode.
    JDeveloper version 11.1.1.7.0
    Edited by: user12820425 on Mar 21, 2013 10:16 AM

    Hi Naresh
    Thanks for your reply.
    In ViewCriteria -> UI Hints we can set attribute Rendered Mode as never, but that perticular attribute still appear in 'Add Fields' section.
    I think renderedMode=never means that attribute doesn't appear in Advance or Basic mode user need to manually select that attribute.
    So please suggest me how to achive my requirement.

  • Aligning fields horizontally in af:query component

    Hi friends,
    i am developing a search region using the named criteria of my VO by dragging it. This created an af:query component in the search region. However the fields are displayed in rows in the search region. I want to align these fields so that all the fields are displayed in a single row. also how can I set the length of the fields.
    Any ideas or hints how to do this.
    Thanks in advance
    Edited by: user9197772 on May 20, 2013 3:58 AM

    Hi,
    Check
    http://www.jobinesh.com/2011/01/customizing-component-display-by.html
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_query.html

  • Setting value dynamically in a field sitting within a af:query component

    Hi
    I have three cascading LOV (Site/Building/Room) and an input text field (Location) as part of a af:query component.
    I want to populate Location field dynamically with a string based on the values selected in the LOVs like "%/<Site selected>%<Building selected>%<Room selected>%". If any of the LOV is left blank, the string should be adjusted automatically
    How do I do it, a declarative way would be preferred. Please advise
    thanks

    I have changed the contentDelivery from "lazyUncached" to "immediate" and the same problem occurs. Thank your for your suggestion.

  • ADF Query Panel with Tree Table -- Add Fields

    I created ADF Query Panel with Tree Table using JDeveloper 11G. Under Advance Search, Add Fields pull down only list the fields in the master table. My questions are,
    1) Can I search fields in detail table? If yes, how can I do it?
    2) How can I customized this pull down list? Currently it just show the entire view of master table with unnecessary id type data.
    Thanks in advance.
    Edited by: kxc on Nov 9, 2009 9:21 AM

    1) Can I search fields in detail table? If yes, how can I do it?
    Are there anyway to search the second level node?You can. But you need to evaluate if the arrangement works for you.
    I assume you have a view link from the master to detail VO.
    To do so, in your master view criteria (the one which you use in the query panel), shuttle the attributes of your detail VO (in master attributes list, you'l see the detail view link accessor - on selecting this, the detail atteributes are available to you)
    In the Add Fields, it shows as student_id AND student_name. I was unable to delete the student_id field in the view since it is PKYou can set its 'display' UI hint to 'hide' in your VO.

  • ABAP Query: add field on layout based on Company code

    Hello Experts,
    I currently working on ABAP Query report  for asset master issues and would like one more field added to layout for Company code XXXX . Is it possible to add fields to this layout based on company code .
    Thanks in Advance
    Nupur

    Hello Andreas,
    I'm asking is that possible to change ABAP Query report layout based on Company code.
    For Instance:
    Company code :1111
    Layout should : A B C D E F
    other than 1111.
    layout should : A X Y Z F
    My scenario is :
    ABAP Query is working fine but users from UK wants some more fields on the layout but rest of the country users other than UK, they don't want such changes.
    Regards,
    nupur

  • How to show attributes only in query panel but not in Add fields.

    Hi,
    Jdev - 11.1.1.7.0
    I have a requirement where I need to show attribute only in search panel but not in Add Fields list which is available in advanced section.
    Thanks for your time and help.
    Regards,
    Dileep.

    Hi,
    Is it really possible implement this kind of scenario, I could not find any property to disable the attribute only 'Add Fields' but not in query panel.
    Please some one confirm me this behavior.
    Thanks,
    Dileep.

  • Add field dynamically in ABAP Query Report.

    Hi All,
    Can we add fields dynamically in the ABAP Query Report?
    There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
    Thanks in Advance!!!

    hi rohini,
    we can add fields dynamically in the ABAP Query Report,in this way we can to,
    first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
    in this way we can solve.
    search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.

  • Timezone effects on Date and Timestamp fields in af:query component

    Hello,
    I'm working on an ADF application where time zone is configured as follows:
    * Dynamic View Layer time zone is configured in trinidad-config.xml file and bound to a session scoped value:
    <trinidad-config>
      <skin-family>fusionFx</skin-family>
      <time-zone>#{sessionScope.tz}</time-zone>
    </trinidad-config>* ADF BC time zone is configured in adf-config.xml file and bound to View Layer time zone:
    <adf-config>
      <user-time-zone-config xmlns="http://xmlns.oracle.com/adf/usertimezone/config">
        <user-timezone expression="#{adfFacesContext.timeZone.ID}"/>
      </user-time-zone-config>
    </adf-config>The problem here is that Dates and Timestamp values work as expected all over the application except for the af:query component. When displayed as af:inputDate in af:form, Dates and Timestamp values are NOT getting converted to the time zone (TZ) configured in trinidad-config.xml file, whereas TimestampTz and TimestampLtz are. However, when displayed in af:query component, Dates and Timestamp values are automatically converted to View Layer TZ after a search has been performed.
    For example, say View Layer TZ = US/Pacific and we enter 01/jun/2011 as a search criteria of type Date and then click on the Search button. The displayed value automatically changes to 25/nov/2011, that is, it gets converted to the WLS JVM time zone, which is set to Europe/London.
    Is conversion of Date and Timestamps in af:query component the expected behaviour or could this be a bug?
    Is there any way to avoid this conversion?
    Thanks in advance
    Version:
    ADF Business Components 11.1.1.59.23
    Java(TM) Platform 1.6.0_21
    Oracle IDE 11.1.1.4.37.59.23
    PMD JDeveloper Extension 4.2.5.3.0
    Repost on 26-nov-2011 9:29
    Repost on 28-nov-2011 15:10
    Edited by: Barbara Gelabert on 26-nov-2011 9:29
    Edited by: Barbara Gelabert on 28-nov-2011 15:10

    Hi,
    Thanks for your reply. This certainly seems promising. However, I am getting a connection error now.
    The following...
    jar_loaded = require 'ojdbc14.jar'
    puts "Oracle jar loaded? #{jar_loaded}"
    puts "Starting active record"
    require 'rubygems'
    gem 'activerecord'
    gem 'activerecord-oracle_enhanced-adapter'
    require 'activerecord'
    puts "Connecting to MXGN"
    ActiveRecord::Base.establish_connection(
    :adapter => 'oracle_enhanced',
    :host => 'THEHOST',
    :port => '1550',
    :database => 'THEDB',
    :username => 'THEUSER',
    :password => 'THEPASSWORD'
    ... produces
    Oracle jar loaded? true
    Starting active record
    Connecting to MXGN
    ERROR: ActiveRecord oracle_enhanced adapter could not load Oracle JDBC driver. Please install ojdbc14.jar library.
    ERROR: ActiveRecord oracle_enhanced adapter could not load Oracle JDBC driver. Please install ojdbc14.jar library.
    C:/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `establish_connection': Please install the oracle_enhanced adapter: `gem install activerecord-oracle_enhanced-adapter` (LoadError) (RuntimeError)
    from H:\sandbox\DBPlay\lib\main_enhanced.rb:12
    I'm confused. Am I missing the driver, or have I failed to setup the enhanced Oracle adapter?
    I have tried moving the jar to $JRUBY_HOME/lib too, but the result was the same.
    All help would be greatly appreciated.
    Many Thanks
    Adrian

Maybe you are looking for

  • MDM7.1 Relationship Tables

    Hi  Everyone, We are working on MDM 7.1 and we have 3 different main tables. We have a scenario to import relationships between different remote systems. The records from both the remote systems are maintained as company. But we are trying to import

  • Home sharing works on primary wifi but not via Access Point

    I have two wifi routers set up at either ends of the house.  The primary router (Netgear DGN2000) is connected to an Access Point (Edimax EW-7416APN) via a D-link Powerline ethernet connection.  Both are configured with identical SSID names/passwords

  • Lose Internet Connection

    I thought that my new $29 Apple keyboard caused my MBP to lose the Internet connection. Not. I have since discovered that I lose the connection every time I shut down (or start up). I have since put Internet Connection icon in my taks bar, so I can r

  • The iTunes notifier (exclamation point at the farthest left)

    The iTunes notifier (exclamation point at the farthest left)of the iTunes interface...that indicates a broken string...What is it called (so I can find faqs about them)? And most importantly, how can I remove ALL of the hundreds that have grown there

  • What can i do for syncserver.exe and mobiledevice.exe error?

    hello i have a problem with iTunes..... When i plug the phone to computer, itunes get a error: synserver.exe,mobiledevicehelper.exe and mobilebackup.exe stopped the working..... please help