Customize af:query

hi everybody,
i used af:query to do a search form ,i want to change the position of button réinstilise an search ,how to do that
thanks

How do you want to customize the af:query? Can you provide more details?
Currently, you could set the position of the search at the top or bottom by specifying the modeposition="toolbar" or modeposition="footbar".
For details, check here:
http://docs.oracle.com/cd/E28389_01/apirefs.1111/e12419/tagdoc/af_query.html
Thanks,
Navaneeth

Similar Messages

  • How can I customize af:query and af:queryCriteria

    Dear all,
    I have a question,How can I customize <af:query> and <af:queryCriteria/>, for example change "search" button label to "find" ,
    Best regards,

    These changes must be made within the application skin.
    --RiC                                                                                                                                                                                               

  • How to customize quick query to search with SQL in contain keyword

    I want to build simple query using quick query component. But it will search with SQL equal keyword. How can I customize it to use contain keyword instead. That means, I enter 'sc' to return 'scott'.

    Not sure if the technique described here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ can be used for quick query, but you can try ...
    Timo

  • Customize SQL Query

    Hi,
    How to use customize query. I know in Crystal Report in Eclipse support sql to be add to crystal report. But the problem is I can't edit my sql. If I want to change to my sql I have to redo again my report. In crystal report XI I use to used the  database Command in database expert. But in Eclipse I could;t find this function anymore. Anyone can help me out this problem
    Thanks

    CR4E and the Crystal Report Designer both has access to the SQL Command Object that you're trying to work with.
    However, CR4E uses the Eclipse functionality - the SQL Command Scratchpad - that has more limitations than the Command Object editor in Crystal Report Designer.
    Sincerely,
    Ted Ueda

  • How  to customize a query in OA Framework

    Hi,
    I am new to OA Framework. I have a requirement to personalize iProcurement Requisition tab page. We are on 11.5.10. Customer wants to add "All" to Requisition Status field to search for all requisitions. I added a row into Lookup table with lookup code value as "%' and meaning as all.
    I can see all in the poplist but when I use All and search the query doesnt seem to fetch all statuses. I thought the default where clause could be status like '%' but looks like the query might be status = '%'.
    How do I customize this to handle "%" using personalization.
    Any help in this regard would be great.
    Thanks
    sukarna

    Hi Sukarna,
    The Requisition Status poplist in the Requisition
    Search Page [
    /oracle/apps/icx/por/reqmgmt/webui/ExpSearchPG ], has
    'All Statuses' option as well.
    The poplist is popluated by the Lookup
    [ApprovalStatusLookupVO], which is based on the
    Lookup 'AUTHORIZATION STATUS' defined in Purchasing.
    Not clear, if I'm missing something here...!Hi Mani,
    The current lookup in our instance doesnt have any All option in the lookup list (AUTHORIZATION STATUS). I am not sure if thats hardcoded in the code. But It doesnt seem to showup in the list.
    Could you point me as to how to look for this directory structure "/oracle/apps/icx/por/reqmgmt/webui/ExpSearchPG"
    does this structure starts with $APPL_TOP or anyother environment variable.
    Thanks
    sukarna

  • Customize af:query form based on ejb entity data control

    Hi all,
    on my application i have a simple table with an af:query form to search data.
    One of the requirements is to have one of the search criteria be displayed and filled depending on certain conditions.
    For example :
    if the user has a certain role, the field should be read-writable but not filled so that the user can specify whatever he wants.
    otherwise the value of the criteria should be something like the username but not be displayed (or at worse read only). Of course in the later case the user couldn't also add in when using the advanced query option.
    How can i achieve this ? Do i have to write a custom QueryModel or could i retrieve the one via #{bindings.ImplicitViewCriteriaQuery.queryModel} and browse this object to remove/update the criteria ? Is there a clean declarative approach to this use-case rather than programmatic ?
    I tried the second solution (not sure if it's the cleanest way) but at some point i end up with a ConcurrentModificationException when removing the criterion from the ConjuctionCriterion list.
    any idea ?
    btw i'm on jdev 11.1.1.5.0
    thanks
    -regards
    Julien.

    Well, the databound query created a sql where clause which is added to the base sql statement. If you don't have a VO where should the where clause been added to?
    The view criteria are also more like a dynamic where clause and I don't think you can easily mimic the framework is you don't have a VO behind it.
    Timo

  • Unable to create new query using query manager

    Hi friends,
    I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
    Chapter - creating new queries.
    Below are the steps I am going through to create new query:
    Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
    Please follow this link to see how the page is displayed in first step:
    http://uploadpic.org/v.php?img=EvMvVAXX1E
    Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
    http://uploadpic.org/v.php?img=GzHh3f6krU
    Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
    But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
    http://uploadpic.org/v.php?img=Wbbla3Q3jE
    I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
    Below is the query that I want to create using query manager:
    SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
    FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
    WHERE P.EMPLID = N.EMPLID AND
    N.EMPLID = A.EMPLID AND
    P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');

    Hi,
    As I cannot access your screenshot by the blocking of company firewall rules.
    I'm guessing currently you are using PT 8.52.00 version, correct?
    This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
    Hope this helps.
    Thanks,
    Saxon SI

  • Customizing af:query component?

    Hello friends,
    Is it possible to customize af:query component. For example i need to move "search", "reset","save" buttons to the toolbar of the component and change the background of the toolbar. Also i have a request to hide that "+/-" thing which make able user to collapse or disclose af:query form.
    Is it possible or only way to achieve this is to create my own search mechanism - what i can imagine could take a while?
    thanks in advance

    Hi,
    as far as color coding goes, you can use skinning for this. Look for "af:query component" in http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e15862/toc.htm
    This should also allow you to hide the +/- icons. However, it does not allow you to move buttons
    Frank

  • Order By in Named Query

    Hello,
    is it possible to set ORDER BY in a Named Query Expression build through the Expression Builder?
    Or is it possible to trigger this while executing the Named Query in the UnitOfWork?
    Thanks,
    Thomas

    Nemata,
    The mapping editor in JDeveloper does not yet allow you to configure query ordering. To do this you will need to write a piece of code called an after-load or ammendment method that customizes descriptor configuration when being loaded from the XML representation. In this method you will look up the query you defined and customize any additional settings, such as ordering.
    An example after-load method would be placed on any arbitrary helper class and would look like:
        public static void afterLoadEmployee(ClassDescriptor descriptor) {
            ReadAllQuery raq = (ReadAllQuery)descriptor.getDescriptorQueryManager().getQuery("findAllEmployee");
            raq.addAscendingOrdering("lastName");
        }To have this method invoked you will need to configure it on the descriptor in the JDeveloper mapping editor.
    1. In the structure pane when the map is selected go to the descriptor for the class you wish to customize its query.
    2. Using the right mouse menu on the descriptor select the advanced properties sub-menu and select 'after-load'. This will enable the additional after-load tab on the descriptor's editor.
    3. In this after-load panel you will need to specify the helper class where the static after-load method is written as well as the signature for the method wanted.
    Now, the next time the application is run this method will be invoked and you ordering customizations will be applied.
    This may sound a little complex but is a very useful technique for configuration or customization of descriptor, mapping, or query parameters that are not visible in the mapping editor or are more easily accomplished through code.
    Doug

  • Business Content Query

    Hi All,
    I would like to know the importance of Business Content Query, Like:
    1. why they are used?
    2. What is the advantage of Business content query against a customized query for a Business content cube?
    Any help would be appreciated.
    regards
    Praveen

    Hi Samala,
    For each Module we have Business content queries
    for example : SD,MM,PM,PP etc For these we have business content queries.
    We take SD as eaxample: SAP has given business content quries in SD, If the client satisfis with the Business content query, There is no need to create new query. We can use the same query.
    If the client has some new requirement like adding 1 extra field to the business content report, at this time we need to customize the query.
    Advantages of Business content : No need to create new query, Lot of time and manpower save
    Regards,
    Marasa.

  • Query with two filter prompts(phase and document)

    Hi All,
    I am new to sap sourcing.
    I am trying to customize a query for (Sourcing Report for all supplier registrations showing the cycle times for each
    approval phase of the process)which I have added two filter prompts(phase and document name).
    When I try to execute the query, I don't get the required output for the phase filter prompt.
    Also phase is a value list and when I select the phase from the drop down, the report doesn't give any value.
    Please find the query as mentioned.
    SELECT <%RESULTS%>
    FROM <%SCHEMA%>.FCI_WORK_ITEM
    T1
    INNER JOIN <%SCHEMA%>.FCI_WORK_PROCESS T2 ON T1.PARENT_OBJECT_ID =
    T2.OBJECTID INNER JOIN (
    SELECT
    OBJECTID,
    10002203 AS
    CLASSID,
    CREATED_BY_USER_OBJECT_ID,
    CREATED_BY_USER_CLASS_ID,
    CREATED_BY_USER_OBJECT_NAME,
    CREATED_AT,
    EDIT_AT_DATETIME, MODIFIED_AT
    FROM
    <%SCHEMA%>.ODP_ODP_VEN_MODIFICATION_WF
    WHERE
    CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_modification)%>
    UNION
    ALL
    SELECT
    OBJECTID,
    10002213 AS
    CLASSID,
    CREATED_BY_USER_OBJECT_ID,
    CREATED_BY_USER_CLASS_ID,
    CREATED_BY_USER_OBJECT_NAME,
    CREATED_AT,
    EDIT_AT_DATETIME, MODIFIED_AT
    FROM
    <%SCHEMA%>.ODP_ODP_VEN_REGISTRATION_WF
    WHERE
    CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_registration)%>
    T3 ON
    T3.OBJECTID = <%COALESCE%>(T1.ROOT_PARENT_OBJECT_ID,
    T1.BIZ_DOC_OBJECT_ID) AND
    T3.CLASSID = CASE WHEN
    T1.ROOT_PARENT_OBJECT_ID IS NULL THEN T1.BIZ_DOC_CLASS_ID ELSE
    T1.ROOT_PARENT_CLASS_ID END
    WHERE
    T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
    (T2.PHASE_SUB_REF_OBJECT_NAME like ?OR T2.BIZ_DOC_OBJECT_NAME like
    <%ORDERBY%>
    Please suggest how can I change the query accordingly.
    Also , please suggest how can add the result fields for calculating the duration(created at - Action date).
    Please do the needful.
    Thanks and Regards
    Ganga

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Hello Vignesh,
    Thank you!!
    I could find that only the supplier registration modifications are included in the query given by you, but we need to include the supplier registrations as well.
    I tried modifying the query and it worked.
    But, now the challenge is to include the workflow status(T1.APPROVAL_STAUS) in the filter prompt.
    T1 table is FCI_WORK_ITEM.
    T.APPROVAL_STAUS is an integer data type in the table.
    I defined the T.APPROVAL_STAUS as string In Result fields and in the filter prompt.
    But the query works for other filter prompts except workflow status.
    I have included the filter prompts as mentioned below:
    T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
    UPPER(T2.BIZ_DOC_OBJECT_NAME) like ? AND
    UPPER(T2.PHASE_SUB_REF_OBJECT_NAME) like ? AND
    UPPER(T1.APPROVAL_STATUS) like ? AND
    UPPER(T1.PERFORMER_OBJECT_NAME) like ?
    <%ORDERBY%>
    Please suggest on this.
    Thanks and Regards
    Ganga Durga

  • Customizing Entity Object SQL Query prior to Insert?

    I am using an ADF BC Entity Object to store values from a multi-page form input process.
    At the end of the process, I plan to call a method that will programmatically take the values from the Entity Object and insert a new row to the database. I need to customize the query to add an encryption function to the insert for one of the fields. For example, instead of 'INSERT password' I need the SQL to be 'INSERT encrypt_fct(password)'.
    Is this possible and if so how?
    thanks

    Hi javaX
    Easiest way of achieving this in ADF BC is overriding the doDML method in your underlying EO's EntityImpl class. The following gives an example, assuming a table called users with username & password columns, where you wish to encrypt the password column with a SQL function named encrypt_fc:
    protected void doDML(int operation, TransactionEvent transactionEvent) {
      if (operation == DML_INSERT) {
        CallableStatement statement = null;
        String insertDML =
          "INSERT INTO users (username, password) VALUES (?,encrypt_fc(?))";
        statement =
          getDBTransaction().createCallableStatement(insertDML, 1);
        try {
          // Bind the statement parameters and execute the statement
          statement.setString(1, getUsername().toString());
          statement.setString(2, getPassword().toString());
          statement.execute();
        } catch (Exception ex) {
          throw new oracle.jbo.JboException(ex);
        } finally {
          try {
            statement.close();
          } catch (Exception nex) {
            /* Ignore */
      } else // operation == DML_UPDATE || DML_DELETE
        super.doDML(operation, transactionEvent);
    }Another way is to include the code for your encrypt function in your ADF model project. By this I mean convert the encrypt function to Java, then add it as a piece of code to your EntityImpl or a more generic library if needed elsewhere. This way you don't have to modify the doDML, but rather the EO setter routine to call your encyption function, and the unencrypted password isn't passed between ADF and the DB.
    Hope this helps.
    CM.

  • Exporting single extension Definition or single page customization object

    Hi,
    How to export and import single extension Definition or single page customization object.
    If we select dataset then it will export all the objects, and I couldn't find option in Single SRM object.
    Regards,
    Prabhat

    Hi Prabhat,
    Unfortunately, oma export doesnu2019t allow export of single extension. Either you would have to do it as a dataset which will export all extension definitions, or use csv. Iu2019ve always used csv to manage extensions.
    For page customization, create a custom oml query by duplicating the standard page customization oml query and add your filter conditions in the WHERE clause of the SQL. Then use the Object List option and select the custom oml query. The other option would be use csv import. Iu2019ve always preferred csv for page customizations.
    Hope this helps.
    Regards,
    Vikram

  • Cross query in Records Management

    Good morning, experts!
    I have a problem... I need to customize Cross Query for custom attributes, but when i customize attributes in SRMCUSTOMIZING, "Customizing for Attributes (Property Unification)", and try to use Cross Query in SCASE, it says "Alias ID ZWF_SER_NAME1 Not Found".
    Can anyone help me?
    I tryed to debug, and i've found class CL_SCMG_PU_CONNECTOR, method META_ALIAS_GET, there redefined all aliases, so i cant customize aliases,is here any other way to customize cross query? please help!

    Dear Sabashnyy,
    Unfortunately, customzing like this will not work. Cross query does not support it. If this is really required then you can think of
    creating a new service provider & have own cross query functionality developed.
    Best Regards,
    Pragya

  • Customizing af:query

    Hi,
    Is it possible to customize af:query component? To be precise, I need to translate Search and Reset buttons as well as Match All/Any radio buttons.
    Thanks,
    Goran

    I have tried to create my own class and did everything like in example in the book, but it doesn't work.
    Here are my steps (maybe I'm doing something wrong):
    - created class SkinBundle that extends ListResourceBundle
    - defined af_query.SEARCH = xxxyyy
    - created trinidad-skins.xml
    - defined new skin as
    <skin>
    <id>ts.query</id>
    <family>ts</family>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <bundle-name>mypackage.SkinBundle</bundle-name> //also tried with org.apache.myfaces.trinidaddemo.resource.SkinBundle - nothing
    </skin>
    - changed trinidad-config.xml tag <skin-family> to ts
    I have also tried to add <extends>fusion</extends> but still no luck.
    Everytime application uses simple skin, and of course, search and reset button remained in English.
    Is there any other way to do this (not thinking of javascript :))?
    Thanks
    Goran

Maybe you are looking for

  • Email notification was sent out twice

    I created two jobs using DBMS_SCHEDULER.CREATE_JOB. The first job was to update the table and the second job was to check the status of the first job in dba_scheduler_job_run_details. I also add email notification on the second job by using DBMS_SCHE

  • How to make table control rows dynamic/unlimited using TC with Wizard

    Hi Friends , I have designed a table control layout using table control with wizard. Now the problem is when we design a TC layout ,then we have to design it on the page . The page has upper & lower limits. so the maximum size & maximum rows in layou

  • Just a comment/question on OS upgrades (VZW/Sprint).

    First, the question: I upgraded the 8330 Curve OS to 4.5 on a friend's device (VZW).  No problem, everything seems to work as near as he can tell, but for some reason it is very laggy...I searched and couldn't find a specific answer to the question.

  • Sent html messages become damaged

    Whenever I send a message with html markup the mail received by recipients has parts missing. A typical piece of source code of a mail received by a recipient looks like this: <div ord; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;

  • How to display xml to html using xsl?

    hi all...may i know how to display xml to html page? i ve included <xsl:output method="html" indent="yes" /> inside my xsl file. i clicked on output.xml file and everything is displayed correctly but the format is xml instead of html. is there anyway