Change labels of af:query parameters

Hello,
I have a table with an af:query. I've set a viewcriteria on the base ViewObject. This criteria contains two parameters (one is a number, the other is an LOV based id). When running the page, the attributes labels in the af:query are the column names (respectively 'DayKm' and 'OcAggregAdminStatusId'). I would like to use user-friendly labels, based on my resourceBundle. I also would like to do the same for field names in the 'Add fields' button. Is it possible to do this?
I tried to set the label value in the control hints part of the attribute (both in the viewobject and base entity) but nothing changes in my query form
Thanks for your help,
Stephane

Oops, sorry... I just found my mistake : I've just added locale management in my application, using my resource bundles in viewcontroller project. But I didn't create the modelbundle for the different languages.
Now labels are correctly displayed.
Sorry again and thanks for your help
Stephane

Similar Messages

  • How to handle a large number of query parameters for a Browse screen

    I need to implement an advanced search functionality in a browse screen for a large table.  The table has 80+ columns and therefore will have a large number of possible query parameters.  The screen will be built on a modeled query with all
    of the parameters marked as optional.  Given the large number of parameters, I am thinking that it would be better to use a separate screen to receive the parameter input from the user, rather than a Popup.  Is it possible for example to have a search
    button on the browse screen (screen a) open a new screen (screen b) that contains all of the search parameters, have the user enter the parameters they want, then click a button to send all of the parameters back to screen a where the query is executed and
    the search results are returned to the table control?  This would effectively make screen b an advanced modal window for screen a.  In addition, if the user were to execute the query, then want to change a parameter, they would need to be able to
    re-open screen b and have all of their original parameters still set.  How would you implement this, or otherwise deal with a large number of optional query parameters in the html client?  My initial thinking is to store all of the parameters in
    an object and use beforeShown/afterClosed to pass them between the screens, but I'm not quite sure how to make that work.  TIA

    Wow Josh, thanks.  I have a lot of reading to do.  What I ultimately plan to do with this (my other posts relate to this too), is have a separate screen for advanced filtering that also allows the user to save their queries if desired. 
    There is an excellent way to get at all of the query information in the Query_Executed() method.  I just put an extra Boolean parameter in the query called "SaveQuery" and when true, the Query_Executed event triggers an entry into a table with
    the query name, user name, and parameter value pairs that the user entered.  Upon revisiting the screen, I want the user to be able to select from their saved queries and load all the screen parameters (screen properties) from their selected query. 
    I almost have it working.  It may be as easy as marking all of the screen properties that are query parameters as screen parameters (not required), then passing them in from the saved query data (filtered by username, queryname, and selected
    item).  I'll post an update once I get it.  Probably will have some more questions as I go through it.  Thanks again! 

  • "Source not found" Error creating URL Data control with query parameters

    Hi,
    I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
    As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
    Just dont know what could be the issue. Please help
    Thanks

    Hi,
    xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
    Frank

  • Change Labels in Legend

    Hi!
    How to change labels in graph legend with presentation XML file? I have created the JSP-based report on such query:
    select ex_sub_name,
    sum(cnt),
    sum(gos)
    from ....
    and have inserted bar graph into this report.
    For every ex_sub_name I have two bar with values from
    sum(cnt) and sum(gos).
    My problem is that labels
    in a graph legend are drawn as sum_cnt and sum_gos.
    But I can not use aliases in SQL-query for some reasons...

    The graph displays the labels based on the data that it is passed. As part of your query you should specify a column with more meaningful labels. This sounds like a metadata issue if you are using OLAP data.

  • Change labels to parameter

    HI Gurus
    Please can help me, I want changing labels to parameters and select-options in SELECTION-SCREEN.
    I go to menu Goto -> text elements -> selection text but I don't insert lines in selecition text.
    Regards
    William Neira

    I meant - did you activate the text elements?
    Rob

  • Change the database log on parameters in the run time with CR10 Delphi2007?

    Hi,
    I'm using crystal report 10 and Crystal VCL for Delphi. How can I change the database log on parameters in the run time?

    You have to use the ConnectBuffer. See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note for details.
    Also, consider searching the notes database:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    The search; VCL database crystal, returns a number of notes that may be of use.
    Ludek

  • Data Components && Query Parameters

    I just started playing with the database binding since I use PostgreSQL. I have a couple questions around parameters. Let's say that I want to make a page to display / update configuration variables from my application. I have a table in my database called config, with two simple members ckey and cvalue. Let's say I have 20 key / value pairs.
    I want my page to simply load the values associated with all 20 keys into 20 different text boxes. I created a query with the WHERE clause being WHERE ckey = ?. Now, I've seen some posts that say that I have to have a Session Bean parameter to populate this ? -- is this correct? Can't I have a simple keyword somewhere since this parameter will be fairly static for each of my 20 text boxes? Could I just name each text box the associated ckey name?
    Secondly, how do I go about letting the data components update and validate this data if it is changed? The tutorial didn't show me much. Thanks.

    Hi,
    Please take a look at the AppModel sample application. This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    This sample application demonstrates many features including how to handle the query parameters and how to update etc.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • How to localize operator labels on af:query

    Hi,
    I have localized af:query component by using skin resource bundle. I still need to change labels for operators. On af:query there are select one choice components that can be used for operator selection. Labels for operators are: "Not equal to","Starts with", "Ends with",... These can not be customised through skin boundle. I think that these labels are defined in class oracle.jbo.CSMessageBoundle.java and they are localized in more then twenty languages but not in the one I need. I tried to create custom MessageBundle for my model project with keys I found in CSMessageBundle. It did not work.
    Does anyone knows how to solve this.
    Thanks!!!
    Maxa

    Hi Gorane,
    you have to create and apply new custom skin for your application. Register new resource bundle for that new skin and in that resource bundle you redefine labels for ui components.
    For creating custom skin look at: "Web User Interface Developer’s Guide for Oracle Application Development Framework" chapter: "20 Customizing the Appearance Using Styles and Skins".
    To find out what keys you need to override check out these link:
    Re: Keys in ResourceBundle
    Here is my resource bundle class with keys for query:
    package com.mycomp.myapp.resources;
    import java.util.ListResourceBundle;
    public class MyAppSkinBundle extends ListResourceBundle {
        public MyAppSkinBundle() {
            super();
        public Object[][] getContents()
            return contents;       
        static final Object[][] contents = {
                {"af_dialog.OK","U redu"},//ok
                {"af_dialog.CANCEL","Odustani"},//ok
                {"af_dialog.LABEL_OK", "U redu"},
                {"af_dialog.LABEL_CANCEL", "Odustani"},
                {"af_dialog.LABEL_YES", "Da"},
                {"af_dialog.LABEL_NO", "Ne"},
                {"af_panelWindow.CLOSE", "Zatvori"},
                {"af_document.LABEL_SPLASH_SCREEN","U\u010Ditavanje"},           
                {"af_document.SPLASH_SCREEN_MESSAGE","Dobrodo\u0161li"},
                {"af_selectManyShuttle.MOVE", "Prebaci"},//ok
                {"af_selectManyShuttle.MOVE_ALL", "Prebaci sve"},//ok
                {"af_selectManyShuttle.REMOVE", "Vrati"},//ok
                {"af_selectManyShuttle.REMOVE_ALL", "Vrati sve"},//ok
                {"af_panelCollection.Detach", "Ra\u0161iri tabelu" },
                {"af_table.Detach", "Ra\u0161iri tabelu" },
                {"af_panelWindow.Detach", "Ra\u0161iri tabelu" },
                {"af_dialog.Detach","Uredu"},
                {"af_panelSplitter.COLLAPSE_PANE","Skupi prozor"},
                {"af_panelCollection.MENU_VIEW", "Prikaz"},
                {"af_panelCollection.MENUITEM_DETACH", "Ra\u0160iri"},
                {"af_panelCollection.MENUITEM_COLUMNS_SHOWALL", "Prika\u017Ei sve"},
                {"af_panelCollection.MENUITEM_COLUMNS_SHOWMORECOLUMNS", "Prika\u017Ei jo\u0161 kolona..."},
                {"af_panelCollection.MENUITEM_REORDER", "Preuredi kolone..." },
                {"af_panelCollection.MENU_COLUMNS", "Kolone"},
                {"af_panelCollection.SHOW_COLUMNS", "Prika\u017Ei kolone"},
                {"af_panelCollection.REORDER_COLUMNS", "Preuredi kolone"},
                {"af_panelCollection.HIDDEN_COLUMNS", "Skrivene kolone"},
                {"af_panelCollection.VISIBLE_COLUMNS", "Vidljive kolone"},
                {"af_panelCollection.DETACH_DIALOG_TITLE", "Ra\u0161irena tabela"},
                {"af_table.FETCHING", "Dobavljanje podataka..."},
                //Lokalizovanje labela na Search popupu
                {"af_query.LABEL_MODE_BASIC", "Osnovni"},
                {"af_query.LABEL_MODE_ADVANCED", "Napredni"},
                {"af_query.LABEL_HEADER_TEXT", "Pretraga"},
                {"af_query.LABEL_REQUIRED_INFO_TEXT", "Obavezno"},
                {"af_query.LABEL_INDEXED_INFO_TEXT", "Bar jedan je neophodan"},
                {"af_query.LABEL_FOOTER_ADD_FIELDS", "Dodaj polja"},
                {"af_query.LABEL_CONJUNCTION", "Poklapanje sa"},
                {"af_query.LABEL_CONJUNCTION_AND", "svim"},
                {"af_query.LABEL_CONJUNCTION_OR", "bilo kojim"},
                {"af_query.LABEL_MODE_BASIC", "Osnovna"},
                {"af_query.LABEL_MODE_ADVANCED", "Napredna"},
                {"af_query.LABEL_SCREEN_READER_MODE_BASIC", "Osnovna pretraga"},
                {"af_query.LABEL_SCREEN_READER_MODE_ADVANCED", "Napredna pretraga"},
                {"af_query.LABEL_SAVE", "Sa\u010Duvaj..."},
                {"af_query.LABEL_RESET", "Obri\u0161i"},
                {"af_query.LABEL_SEARCH", "Pretra\u017Ei"},
                {"af_query.LABEL_DELETE", "Obri\u0161i"},
                {"af_query.LABEL_DUPLICATE", "Dupliciraj"},
                {"af_query.LABEL_APPLY", "Primeni"},
                {"af_query.LABEL_DUPLICATE_NAME_PREFIX", "kopijaOd_"},
                {"af_query.LABEL_SAVED_SEARCH", "Sa\u010Duvana pretraga"},
                {"af_query.LABEL_SAVED_SEARCH_PERSONALIZE_ENTRY", "Prilagodi..."},
                {"af_query.LABEL_PERSONALIZE_SAVED_SEARCHES_DLG", "Prilagodi sa\u010Duvane pretrage"},
                {"af_query.LABEL_CREATE_SAVED_SEARCH_DLG", "Kreiraj sa\u010Duvanu pretragu"},
                {"af_query.LABEL_SAVED_SEARCH_NAME", "Naziv"},
                {"af_query.LABEL_UIHINT_SAVE_RESULTS_LAYOUT", "Sa\u010Duvaj izgled rezultata"},
                {"af_query.LABEL_UIHINT_AUTO_EXECUTE", "Pokreni automatski"},
                {"af_query.LABEL_UIHINT_SHOW_IN_LIST", "Prikaži u listi pretraga"},
                {"af_query.LABEL_UIHINT_DEFAULT", "Postavi za podrazumevano"},
                {"af_query.MSG_SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT", "Pretraga sa ovim imenom ve\u0107 postoji."},
                {"af_query.MSG_SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT_DETAIL", "Morate obezbediti jedinstveno ime."},
                {"af_query.MSG_SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT", "Ime je potrebno"},
                {"af_query.MSG_SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT_DETAIL", "Molimo Vas unesite validno ime za sa\u010Duvanu pretragu."},
                {"af_query.MSG_SAVED_SEARCH_DELDUP_CONSTRAINT", "Potrebno je odabrati sa\u010Duvanu pretragu"},
                {"af_query.MSG_SAVED_SEARCH_DELETE_CONSTRAINT_DETAIL", "Molimo Vas odaberite validnu sa\u010Duvanu pretragu za brisanje."},
                {"af_query.MSG_SAVED_SEARCH_DELETE_WARNING", "Obri\u0161i sa\u010Duvanu pretragu: {0}?"},
                {"af_query.MSG_SAVED_SEARCH_DUPLICATE_CONSTRAINT_DETAIL", "Molimo Vas odaberite validnu sa\u010Duvanu pretragu za dupliranje."},
                {"af_query.TIP_DELETE_SEARCH_FIELD", "Ukloni: {0}"},
                {"af_query.TIP_DELETE_WARNING", "Upozorenje"},
                {"af_query.TIP_OPERATOR", "Operatori za"},
                {"af_query.LABEL_VALUE_LOV_POPUP", "Pretra\u017Ei i odaberi:"},
                {"af_quickQuery.LABEL_DEFAULT", "Pretraga"},
                {"af_quickQuery.LABEL_VALUE_LOV_POPUP", "Pretra\u017Ei i odaberi:"}
    }You can see that I had to use UTF codes for serbian letters.
    //š \u0161
    //Š \u0160
    //č \u010D
    //Č \u010C
    //ć \u0107
    //Ć \u0106
    //ž \u017E
    //Ž \u017D
    //đ \u0111
    //Đ \u0110
    I will be glad to answer on any other question!!!
    Maxa

  • Changing labels in jtree

    i have tree with two kinds of nodes. groups and items. when user clicks on group all items and sub-groups are loaded from database via network in treeWillExpand method. this may take few seconds. when data is loadanig i would like to change label on group for example to "data is loading...". and after data is loaded and node expanded i would like to go back to previous label on group. any idesas ?

    Start a separate to execute the database query, so you don't lock the GUI from repainting. Then Change the data in the node. When Database query finishes upate the node and make sure to use the SwingUtilities.invokeLater(...) method.
    Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html]How to Use Threads for more information
    Or you can always use a JProgressBar for this purpose. The tutorial also has an example of this.

  • How can i change the default text "Query by Example"

    Studio Edition Version 11.1.1.3.0
    how can i change the default text *"Query by Example"* in a Panel Collection
    Thx

    Hi thieto,
    The label you are looking for is af_panelCollection.LABEL_MENUITEM_QBE*
    I'm currently writing a blogpost on this issue. In short, you will have to create a skin resource bundle.
    In the skin definition, refer to this bundle class.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
      <skin>
        <id>mySkin.desktop</id>
        <family>MySkin</family>
        <extends>blafplus-rich.desktop</extends>
        <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
        <style-sheet-name>skins/MySkin.css</style-sheet-name>
        <bundle-name>com.blogspot.lucbors.view.bundles.MySkinBundle </bundle-name>
      </skin>
    </skins>In this class, adjust the label text to your needs.
    package com.blogspot.lucbors.view.bundles;
    import java.util.ListResourceBundle;
    public class MySkinBundle extends ListResourceBundle {
      public MySkinBundle() {
        super();
    @Override
      public Object[][] getContents() {
        return _CONTENTS;
    static private final Object[][] _CONTENTS = {
         {"af_panelCollection.LABEL_MENUITEM_QBE","the text that you want"}
    }More in the blogpost
    Good luck
    Luc Bors
    Edited by: lucbors on Jul 26, 2010 11:39 AM (blogpost finished - URL added)

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • Using Form to pass value to query parameters in the selct part of query

    I created a form in Access 2007 to pass 2 values to an Access query.  I am doing this to create delimited output (very large) with the parameters included in the selected data. The select works and is something like this:
    SELECT "^"+!FORM!EXPORT2DAT!PREF_VALUE+"_"+Replace(UCase([column_1])," ","_")+"^|" AS OUTPUT_column1, "^"+!FORM!EXPORT2DAT!COMPANY_VALUE+[COLUMN_3]+"
    ([COMPANY_VALUE])"+"^|" AS OUTPUT_column2,....................
    The form has text boxes for the values I want to pass PREF_VALUE and COMPANY_VALUE to the query parameters, and an execute button to open the query when clicked.
    However when I enter the values and click the execute button, I still get the parameter boxes for the 2 parameters. 1 for this: !FORM!EXPORT2DAT!PREF_VALUE, and FORM!EXPORT2DAT!COMPANY_VALUE. I thought I was filling in with the form text box values.
    Can I use the form's text boxes to pass values to concatenated using(+) columns in the select part of the query as I'm doing above?
    Thanks in advance for your response.

    I have never seen a select statement like that! 
    For query criteria I would use this --
       [FORMS]![EXPORT2DAT]![PREF_VALUE]
                   and              [FORMS]![EXPORT2DAT]![COMPANY_VALUE]
    Build a little, test a little

  • Where to get BW Metadata: owner, creation date, change date of a query / WS

    Hello,
    I need a report over the existing queries / worksheets and the owner, creation date, change date of a query etc.
    You see some of the information when you go over query properties in the query designer. But you see only the information of one (the opened) query. And you have to do this for every query ...
    My idea is to go over BW Metadata in the technical content.
    Here is the cube BW Metadata 0BWTC_C08
    (The InfoCube BW Statistics u2013 Metadata contains metadata from the Metadata Repository.)
    Is this the way to do it? Or any other suggestions u2026
    Can I get infos about used structures , etc over this way
    Thanks Markus

    I had to work on an other subject:
    But now the source of information is clear:
    RSRREPDIR - index of all queries
    RSZELTDIR -  index of all queries-components
    RSRWORKBOOK - Verwendungsnachweis für Berichte in Workbooks
    RSRWBINDEX - List of binary large objects (Excel workbooks)
    RSRWBINDEXT - Titles of binary objects (Excel workbooks) in InfoCatalog
    The tables are to join over
    RSRREPDIR.COMPUID  = RSZELTDIR.ELTUID
    RSZELTDIR.TEXTLG  contains the description
    RSRWORKBOOK.GENUID  = RSRREPDIR.GENUID
    RSRWBINDEXT and RSRWBINDEX are connected over WORKBOOKID
    I'd like to put the information of all of this tables in a cube and define a query on it.
    I have to define new datasource, infosource to get the data in the cube.
    Right?
    Now i see some existing datasource objects in the technical content.
    0TCTQUERID, 0TCTQUERID_TEXT, 0TCTQUERY, 0TCTQUERY_TEXT
    I can't open them to look in. But they might be helpfull. Anybody used them?
    Markus

  • Changing labels in /sapapo/sdp94.

    Hi,
      Changing labels in /sapapo/sdp94.
       I want to change the labels in /sapapo/sdp94 for the same i found an exit EXIT_/SAPAPO/SAPLMCP2_006 (APODM006).
       Problem is the control is not reaching the EXIT; i set up a breakpoint over there but still it doesn't reach there.
    Thanks
    AP

    Hello, make sure you activated the user-exits properly. Then you set a BP at FM /SAPAPO/MC_PERDY_GET in SE37 in below coding:
    * User-Exit?
      if i_perly eq 'U'.
    *   Evtl. wurde keine PERID mitgegeben:
        if i_perid is initial.
          call function '/SAPAPO/MC_PERIODE_ZUM_DATUM'
                   exporting
                      idate   = i_vontg
                      iperkz  = i_perkz
                      iperiv  = i_periv
                   importing
                      eperid  = i_perid.
        endif.
        call customer-function '006'
             exporting
                  i_vontg = i_vontg
                  i_bistg = i_bistg
                  i_perkz = i_perkz
                  i_periv = i_periv
                  i_perid = i_perid
             importing
                  e_perdy = e_perdy.
    If the user-exit is applied OK, it will jump into your customizing coding at statement [call customer-function '006']

  • Using Reporting Services Web Service methods to run a report with query parameters

    I'm attempting to use the ReportExecutionService methods to process a report that contains four parameters,  two of them query parameters. In total, the report must execute two queries. The two query parameters are determined by the execution of
    the second query.
    So, I've read about GetExecutionInfo and SetExecutionParams. To quote the MSDN page for GetExecutionInfo, "Use this method iteratively with the SetExecutionParameters method to evaluate parameters that have query- or expression-based defaults."
    Can anybody explain how to use this, or any other method, to execute a report such as mine? The first query gets the rows of the report; the second query gets the row count. LoadReport does not seem to do the trick by itself. I need to use the technique
    described in the quote above, I think.
    I could really use some help. Thanks!

    Hello,
    If I understand correctly, you create a local report which choose report from Report Server. You have two query parameters in the report which are returned by stored procedure. Currently, you cannot get default values for these parameters when run the report.
    Based on my test, if we haven’t configure these parameter with Available Values, we can reproduce the same issue. Also, caching issue may cause the same issue. If the issue is persist, please delete the corresponding report in the report server. Then, redeploy
    it to check.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/en-US/6a548d65-35d0-4a3e-8b64-3b7b655c76ee/ssrs-2008-report-parameter-default-value-doesnt-work-when-deployed
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • Help with a weird little blue line in the bottom right corner of my lightbox gallery?

    I get a weird little blue line in the bottom right corner of my lightbox gallery when viewing in Safari and Chrome.  Its not there when looking in Dreamweaver or Firefox.  I'm going crazy!  Can anyone help?

  • Excel handling in PI 7.0

    Hi I have a file to excel scenario. The output file should be in .xlsx format. I wanted to use java bean classes in the adapter module for converting the PI xml in to .xlsx. I have written the code in java using POI jars. I have used POI 3.5jar since

  • What is the best setting for compressing to a Window Media Player?

    I now have the latest Compressor, just now need to figure out which is the best setting to use for compressing to a Windows Media Player. Does anyone know which is the best method?

  • Adding Material Components in PS through BAPI_NETWORK_COMP_ADD

    Dear Experts, I am trying to create material components in a project through BAPI_NETWORK_COMP_ADD but it doesn't work. It gives the following error message: "Network operation 0010 does not exist". However it does create the network and its operatio

  • Host disk space usage

    Is there a way to get a report of available disk space for a host? We do not autoextend our tablespaces, so whenever we need to add more space , we have to shell into the OS (Unix) and run a "df -k" to see what mount points have space available. Is i