Set a field label by conditions, in a Search Query

Dear all ADF buddies,
Can I set a field label by conditions? Say: if UserRole=A then Label = A; else Label = B;
The problem is those field labels are not attribute of JSP, they are inside a Search Query. Thus the label text are defined in the table EO, which I cant find any place in JDeveloper to set custom expression.
Any one know how?
=)
James Fan

Hi Frank, thank you for replying.
Tried to amend the ViewRowImpl.java and added those related functions. It didn't get called while rendering the Search Query fields, but only after.
Any way to do this on the EO side? I think it s more likely that the Search Query dialog is reading label value directly from the EO
I found there are AttributeDefImpl or AttributeHints in the EntityImpl.java. Are there examples to show how to override these classes?
James
Edited by: 1003858 on 2013年5月6日 上午2:34

Similar Messages

  • Document set change field label for "Name"

    Hi,
    is it possible to change the field names without changing the NewDocSet.aspx form?
    I'm want to change the field "Name" to something else.
    Thanks,
    Peter

    This is a very common question, and generally addressed by core ECM/Governance, where the users will view the name of Content Type and accept that the Name is the name of the content.
    In undertaking split testing for multiple clients, I found that an overwhelming number of users easily accepted and preferred that the field was left as Name since the Content Type provided the context (Ex. if the Content Type is named Matter,
    implicitly you would not need to repeat by having a field named Matter Name since the user knew that they were providing the name of the Matter).
    This is a similiar situation as "Title" for a document. If I upload a document and select the appropriate Content Type such as "Summons", I know that I am providing the title of a summons document.
    The challenge is not so much technical, but one of core ECM principles for context. I would flush out your Content Types so that they provide the description (ex. Matter, Summon, Pleading, Memo, etc.) and then the "Name" or "Title" fields do not become
    a barrier since the user knows that when they select "Matter" as their Content Type, they are entering the "Name" for that "Matter File".
    Personal Blog: http://thebitsthatbyte.com

  • How to set Character field's Format Mask?

    dear all,
    how to set Character field's Format Mask?
    i searched the forum and found the following, where can i use this code and how to change and set its format mask.
    SRW.SET_FORMAT_MASK('mask');
    Thanks
    Muhammad Nadeem

    Nadeem,
    If you have database 10g, look into function REGEXP_REPLACE. Otherwise you can also try this (you might already know).
    SELECT SUBSTR('CHHOCMIPO07020001', 1,2)||'-'||SUBSTR('CHHOCMIPO07020001' ,3,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 5,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 7,3)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 10,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 12,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 14,4)
    FROM dual
    CH-HO-CM-IPO-07-02-0001
    If you have to use this at many places, create a function, pass the raw value, manipulate the string and return.
    FS

  • CProjects - Set-up field control - Usage of conditions

    Hello
    In cProjects, in set-up field control it is possible to adjust behavior (display, updatable, mandatory, u2026) field by field.
    My questions are:
    - Where to find the complete list of conditions available?
    - Is any condition is usable everywhere, for example C001 Object is released on a DAG Document (means the object link to this document is released)?
    - Is there a condition with a meaning like u201CThe object is in creationu201D (to have for example a phase description not updatable after creation)?
    - How to create its own conditions?
    Thanks for your help.
    Rémy
    Here you can find a list of conditions for the main objects.
    CTO (Checklist)      C001 Object is released
    ITO (Checklist Item)      C001 Object is released
    MTG (Project Participant)      C001 Object is released
    PPO (Phase)      C001 Object is released
    TTO (Task)      C001 Object is released
    MTG (Project Participant)      C002 CATS is active
    TTO (Task)      C002 CATS is active
    TTO (Task)      C004 Confirmation for task
    MTG (Project Participant)      C005 Role start and finish are specified
    ITO (Checklist Item)      C006 Object has a superior phase
    TTO (Task)      C006 Object has a superior phase
    TTO (Task)      C007 Phase without approval
    TTO (Task)      C008 Appr. is in process, granted, rejected
    CTO (Checklist)      C009 Ind. 'Changeability' to 'Cannot Be Chgd'
    ITO (Checklist Item)      C009 Ind. 'Changeability' to 'Cannot Be Chgd'
    CTO (Checklist)      C010 Ind.'Changeability' to 'Partlly Chngble'
    ITO (Checklist Item)      C010 Ind.'Changeability' to 'Partlly Chngble'
    PPO (Phase)      C011 Project Type 'Initiative'
    PPO (Phase)      C015 Constraint: As soon as possible
    TTO (Task)      C015 Constraint: As soon as possible
    ITO (Checklist Item)      C016 Constraint: As late as possible
    PPO (Phase)      C016 Constraint: As late as possible
    TTO (Task)      C016 Constraint: As late as possible
    ITO (Checklist Item)      C017 Constraint (Finish Date): None
    PPO (Phase)      C017 Constraint (Finish Date): None
    TTO (Task)      C017 Constraint (Finish Date): None
    TTO (Task)      C018 Task is a summary task
    TTO (Task)      C019 'Remaining Work Man.'indicator is active
    TTO (Task)      C020 Object is part of a project version
    ITO (Checklist Item)      C030 Access to Forecasted Dates
    PPO (Phase)      C030 Access to Forecasted Dates
    TTO (Task)      C030 Access to Forecasted Dates
    OAG (Object Link)      C100 Object has not been specified yet
    RAG (Checklist Reference)      C200 Checklist reference was created
    ATO (Approval)      C300 Approval has the status: Created
    EAG (Project Element Link to Role)      C400 Status: Staffing in Process/Complete
    MTG (Project Participant)      C500 Status: Staffing in Process/Complete
    MTG (Project Participant)      C501 Confirmation for project role
    BAG (Link to Business Partner)      C502 Distribution is active
    MTG (Project Participant)      C502 Distribution is active
    MTG (Project Participant)      C503 Status: Staffing in Process
    MTG (Project Participant)      C504 Cost/revenue rate is initial
    TTO (Task)      C504 Cost/revenue rate is initial
    MTG (Project Participant)      C505 Org. Unit (Staff. Manager) is changeable
    MTG (Project Participant)      C506 Org. Unit (Cand. Manager) is changeable
    MTG (Project Participant)      C507 Staffing Manager is changeable
    MTG (Project Participant)      C508 Candidate Manager is changeable
    SAO (Individual Approval)      C600 Approval allows decision maker change
    DAG (Document)      C700 cProjects file is checked out
    DAG (Document)      C701 Plug-in for documents is used
    DAG (Document)      C702 Document has status 'Not in Process'
    DAG (Document)      C703 Document is changeable
    DAG (Document)      C704 Link to document template
    DAG (Document)      C705 Document in projekt-/checklist template
    DAG (Document)      C706 cProj. file is checked by current user

    Hi Matthias
    I am trying to setup field control to make a bespoke field in a bespoke tab toggle between READ only and Editable. 
    I have gone through number of posts and the SAP note you mentioned. I have setup the entire configuration required and it is still not working.
    What confuses me is that, to setup a field control dynamically, is it all done via configuration?. Is some coding still required in the VIEW methods?. I am setting up a debug breakpoint in the class method that is created for the condition I created, but the program is not stopping there so I think the condition method is not being called.
    Please can you give some more details.
    Thanks
    Raj

  • How do I set the "custom" in the color field labels?

    Hi
    In Lr 4.1 I have just noticed that as well as red, green, yellow, blue & purple, there is a "Custom" feild too.
    How can I configure this, and is there a shortcut I can assign (and also for purple; how do Adobe keep skipping over assigning a shortcut to Purple!!??)
    Thanks

    Assign purple: anything at all that worked! e.g. Ctrl - 9 for example, it doesn't matter what the shortcut is, so long as there is one!!
    Ado not understand your comment about "The colors are just UI elements for the "Label" metadata field and the set assigns which "Labels" are which colors"
    I want to know if its possoble to assign the custom color label.

  • Order value fields by field label in the profitability analysis document

    Hello,
    I am displaying a profitability analysis document and I want to order the value fields by their technical name (VV001, VV002, VV003...) instead of in alphabetical order (the system orders them by the field label).
    Is it possible?
    Thank you very much
    Bea

    Hello,
    Check in KE4M whether sd condition type FKLMG  is mapped corresponding value field in COPA.As you are getting the value for other company codes, this setting should be there.
    You can also try checking simulation of billing document transfer through KE4ST. Check the details analysis
    thanks
    Hari

  • Dynamic screen field label

    HI Experts,
                    How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows
    :Code       :
    for condition 2, it wil show
    :Company :
    I mean it should be dinamic.
    Thanks.
    Khan.

    Hi,
    See the following code.
    write this  module FIELD_STAUS_9010  in PBO of the screen number.
    *&      Module  FIELD_STAUS_9010  OUTPUT
          text
    MODULE field_staus_9010 OUTPUT.
      LOOP AT SCREEN.
    field name
        CASE screen-name.
          WHEN 'WA_LC_BG_HDR_ELBCNOT'.
            CASE g_security.
    Set the title
              WHEN 'LC'.
                wa_lc_bg_hdr_elbcnot = 'External LC number'.
              WHEN 'BG'.
                wa_lc_bg_hdr_elbcnot = 'External BG number'.
            ENDCASE.
        ENDCASE.                      " CASE wa_LC_BG_HDR-suity.
      ENDLOOP.
    ENDMODULE.                 " FIELD_STAUS_9010  OUTPUT
    Regards,
    Raju.

  • Can't get field labels to display above for multiple fields in one cell

    I've tried searching for how to fix this to no avail. I'm new to Apex and I'm trying to get 5 fields on one line with labels above each: salutation, first name, middle initial, last name and title. I've set New Line and New Field to No for all but the first item. With the labels for each field set to Right, everything displays on one line. With the labels set to Above, fields are displayed on separate lines and I'm not sure why. There are other fields on the form as well but they are each on their own line. Any help would be greatly appreciated. My Apex version is 4.1.1.00.23. I'm running the standalone Apex Listener (current version from 7/12) with a 10g database.
    Thanks

    Hi,
    have you tried to set New Field to Yes? If that doesn't work, a test case on apex.oracle.com would be great. That's the easiest way to show you how it works.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Quality Notifications - Setting Required Fields

    Is there a way to set certain fields as required for only a subset of Quality Notification Types??  The specific field I want to set is "Required End". I can see where this change would be made and applied on a global level, but do not see a way to only apply this to certain QN types.
    Thanks in Advance,
    Nic

    In SPRO
    QM>Quality notifications>Notification Types-->Define Screen Templates
    Select "Field Selection: General Screens"
    Click on menu bar button "Influencing"
    Double click on notification type
    Enter Q3 (or whatever notification type your working with)
    From drop down menus select Field Selection > Change<>Display.
    Screen should change from display to change mode.  Fields should now be available to make changes
    Scroll down until you find VIQMEL-LTRMN - Required End
    Click on radio button in colum labelled "Req.".
    Save.
    Craig

  • Dynamic field labels in table control

    Hi experts,
        My requirement is to display dynamic field labels in table control can we do this. I am much aware
    that we can do it in alv_grid. Please let me know.
    Thanks in advance.
    Sri

    Hi Anubhab,
         Thanks. With your help i could able to solve the problem. Let me put this in some
    more detail.
    When we are pulling the field from a table to table control we need to make sure the fields should have a data elements. After pulling all the fields to a table control ,we need to drag out  and delete the current table control column headings and then drop in the (new) I/O fields into their place.  I then set the text on these new fields within the PBO.  If we try to drop the (new) I/O fields on top of the existing ones with out deleting it won't work.
    Thanks & Regards.
    Srikanth

  • Reading Field Labels from Lookup Table

    Post Author: Ohmylord
    CA Forum: Formula
    I'm trying to read the field labels from the database so I can have one set of reports and have them work in multiple languages by changing the display value. I created a lookup table that has these fields and values: ID    EnglishValue   DisplayValue1    Customer   Cliente2   CustomerNumber    Numero del Clienteetc.   I then created a formula field for each label (@Customer Label, @CustomerNumber Label).  The formula just contains the DisplayValue field.  Then I used Select Records and added a Where ID=1 or ID=2.  The problem is that whatever the last value I put in for the ID applies to each of the different formulas I created.  In other words, it reads the labels from the database, but they are all the same. It seems like it should be pretty easy but I'm obviously missing something. Most reports probably have 15 or so labels on them. Thanks for any help!  

    Post Author: Ohmylord
    CA Forum: Formula
    Here's some sample data from the table I created.
       Translation
       Autonumber
       ID
       EnglishLabel
       DisplayValue
      1
      1
      Customer
      Cliente
      2
      2
      Customer Number
      Codice Cliente
      3
      3
      Quote Date
      Data Quota
      4
      4
      Expiration Date
      Data Scadenza
    What I want on the report is 4 fields each one would show a different value. The simplified select statement I'm trying to get for the different fields is something like:Field 1 - Select DisplayValue where ID=1Field 2 - Select DisplayValue where ID=2etc for the other 2 fields.   When a different user has a different language we would just populate the DisplayValue with different data.  

  • How do you change fields labels in adf query please ?

    Hello , I would like to change the field labels in an adf query as they have been generated by default by oracle .
    The only code found is as follows :
    <af:query id="qryId1" rows="6" headerText="Search" disclosed="true" maxColumns="2"
                                value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}">
                        <af:inputText value="#{bindings.PrtDesc.inputValue}" label="Desc"
                                      required="#{bindings.PrtDesc.hints.mandatory}"
                                      columns="#{bindings.PrtDesc.hints.displayWidth}"
                                      maximumLength="#{bindings.PrtDesc.hints.precision}"
                                      shortDesc="#{bindings.PrtDesc.hints.tooltip}" id="it3">
                          <f:validator binding="#{bindings.PrtDesc.validator}"/>
                        </af:inputText>
                      </af:query>

    Hi,
    if you use ADF BC, set the UI Hints on the View Object attributes for the attributes and these will make the labels
    Frank

  • Translation of the Field label that is passe in the field catalog on ALV

    Hiii
    i there a way to make ALV column field label in different language
    let say i have 3 radio button language english , french , and dutch
    depending on the radio button selected i want my alv column fields to be display in that language.
    note i am using field catalog merge and alv list.
    i know that can be done by forcing value in the fieldcat-fieldname
    something like that
    IF english
    fieldcat-fieldname = English
    If frence
    fieldcat-fieldname = french
    if dutch
    fieldcat-fieldname = dutch
    but suppose i have 50 field then i must do that with all 50 field for each language
    i there some more easier way like setting sy-langu or setting language in the fieldcat

    Hi newbie82 c,
    the easiest way is to use the SAP logon language and have all texts in program defines as text fields. The text fields are translated once and fetched always correct according to logon language.
    If you want to switch languages by radiobutton, you may define one create_fieldcat routine for each language.
    Regards,
    Clemens

  • WDA - customer text in field label in Layout

    Hi,
    I need to display the customer text in field label in Layout. Currently field label text is coming from OTR.
    OTR ‘PAOC_RCF_UI_SELF_SERVICES/MIDDLE_NAME’ has text ‘Second Name’. My customer wants to display ‘Middle Name’ instead of ‘Second Name’.
    How can I fulfill my customer requirement without modyfying WD Component?
    Regards,
    ...Naddy
    Edited by: Naddy on Apr 4, 2008 2:46 PM

    Hi Naddy,
    U can achieve it by enhancing the component , write a post exit for the wdmodifyview
    in that .. for first_time  get the  UI element and set the text as u want.......
    Regards
    Yash

  • How to set screen field in ME_PROCESS_PO_CUST?

    Dear all,
    I need to set this field 'MEPO1317-MWSKZ' to display only by some criteria. I want to know HOW to do it in ME_PROCESS_PO_CUST
    Thanks for your kindly helpful.

    Hi Esaki,
    1) Define new field selection in configuration "Define screen layout at Document level"
    2) write code in fieldselection_item_refkeys as follow
    get item data
    if your condition
      ch_key0 = new field selection
    endif
    Hope it can help u.
    Grace

Maybe you are looking for

  • Why is my image rollover not working in Firefox?

    I am starting a new site.  In the middle of the page on the right, I have a simple image rollover effect for the UPCOMING EVENTS button.  It is also supposed to link to another page (not designed yet).  It works in Explorer, not in Firefox.  How can

  • ITunes and Computer freezes when ipod is connected

    When I connect my video ipod to my computer (dell desktop) the system freezes, as in it will not respond to mouse clicks and keyboard (but can still get to task manager). When I unplug the ipod it comes back to life. Programs always freeze, but somet

  • MY ITUNES WONT OPEN UP PLEASE HELP ME!!!!!!

    I HAVEN'T BEEN ABLE TO USE MY IPOD TOUCH FOR OVER A MONTH NOW I TRIED UNISTALLING AND REINSTALLING ITUNES AND QUICK TIME AND REPAIRING IT BUT DOESN'T WORK EVERYTIME I CLICK ON THE ITUNES ICON IT TURNS INTO A PAGE WITH 3 LITTLE ICONS ON IT AND IT WON'

  • Hp officejet 6210 and mac os x 10.6

    I have seen several posts about hp printers not responding to print commands. I found a thread on the HP support site that led me to a solution. The printer was working just fine until last week when I needed to make a scan and fatally installed the

  • Problem viewing error messages

    Is there a way of capturing the entire error message when a runtime error occurs and the message spreads on to another screen in the DOS window? I know that this is not theoretically a java question but if anyone has a solution I would appreciate it.