Label - Field -Label layout

Hello everyone,
JDev 11.1.1.5.0 & 11.1.1.6.0
We want to build a layout where we have a label, the field and then a label again.
Ex: Max Duration <field> years
You have to see this in a form layout, where we have different fields. Some of them have this second label, others don't.
The closes I can get is using a panellabelandmessage tag to include the second label.
          <af:panelLabelAndMessage label="Max Duration" id="plam1" showRequired="true">
            <af:inputText id="it5" required="true" showRequired="false"/>
            <f:facet name="end">
              <af:outputLabel value="years" id="ol1"/>
            </f:facet>
          </af:panelLabelAndMessage>
        </af:panelFormLayout>The problem arise with the required fields. We can set the showRequired attribute of the panellabelandmessage to true and the one of the inputText to false.
But whenever the required property of the inputText is set to true, the required icon is always shown, even if the showRequired is set to false.
This makes that the required icon is shown twice.
How can we hide the required icon from the inputText field?
What are possible solutions for this situation?
Thank you in advance.
Filip Huysmans.

Filip,
the following custom skin entry removes the required icon from all input text labels so they are set on the panelLabelMessage component only
af|inputText::label .AFRequiredIconStyle{display:none}
If you need to have more control, you can add a styleClass property as shown below
<af:panelLabelAndMessage label="Max Duration" id="plam1" showRequired="true">
            <af:inputText id="it5" required="true" showRequired="false" styleClass="noRequiredIcon"/>
            <f:facet name="end">
              <af:outputLabel value="years" id="ol1"/>
            </f:facet>
          </af:panelLabelAndMessage>In which case the following skin only removes this
.noRequiredIcon af|inputText::label .AFRequiredIconStyle{display:none}
If you need this event more dynamic, use EL to set the styleClass value.
Frank
Ps.: The question you may ask is: Why do I need to add the af|inputText::label to the skin if the style class determines the instance? The benefit you get from this is that it is the longets match, which means that if there are other components (non input text) that have similar requirements, you can handle them individually

Similar Messages

  • 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

  • Rename the Field Label  in the sales order application.

    Hi,
              Please suggest me how to rename one of the field name in the sales order application.
            I have add a new field called YOUR_REF_SHIP and simultaneously have to  rename it from your reference to Carrier Account No. this field  is available in the filed group SLO_DETAILS_GENERAL1.
             This field is located in the General data tab of the sales order application.
    I have created the Text Key in the Define Interface Texts and used the same text key in the Rename Field Label, but it is not working.
    and i dont want to change it with the CMOD transaction.
    Please suggest me where i have went wrong.
    Thanks.
    Anilkumar

    Hello Anil,
    The field groups are to be regenerated.
    However, I have done a similar thing and in the past, the layout generation helped me. In the recent example, the name is not reflected as per the interface text.
    Let me know if you find anything on this.
    Regards
    Priyanka

  • Changes made through CMOD for field label not happening

    Hello,
    We wanted to change a standard field label through CMOD, ie :- data element name is RDEALER and the field label is Trader,we wanted to change the label as Profit Center.
    Eventhough we could able to make the changes through CMOD, system is still showing the Field Label as Trader.
    Please help.
    Thanks & Regards
    Ramesh Nair

    Hi Ramesh,
    Yest, unfortunatelly you will need dev key, as this is part of development.
    But one thing which I am noticing now. Option 'F' is not allowed at all to all fields refering some DDIC field.
    This means that you must ensure that name of field used in screen is the same as name of field data element you are enhancening for.
    I.e. we want to modify keyword (label) for data element S_DATE . This data element refers to field in table SFLIGHT-FLDATE . Now what you only have to ensure about is to check if this screen is picked from a DDIC table.
    Therefore name of screen field should be SFLIGHT-FLDATE and From Dic. field should be checked.
    By default modify is set to Mask Original from Dic.
    This is all set automatically when you have your field picked from DDIC. When you creating a field on screen press F6 -> type SFLIGHT -> Get from Dic -> Select row FLDATE -> confirm with green checkbox -> place your field on screen layout. All above settings will apply automatically.
    This even works when you have already screen fields which refers (have above settings) to DDIC field.
    If you can't modify field label, it means there must be something wrong set for that field. You have to change it, otherwise it won't see the enhancement.
    Hope this is clear now
    Marcin

  • No able to see edit label option in Layout tab

    Hi All,
    I am trying to edit properties of input fields. as per SAP help and documents, we get option of edit label in layput tab, and then we get to see general and other catagory of properties.
    But i am not able to see this option, i can see Rename, Select all, Bring to back, bring to up otions only.
    Can you please suggest what is missing here. We are on SP14.
    Thanks for your time,
    regards,
    Sudhir

    Thanks Deep,
    I am trying to use a dropdown for one on input fiels. But in desginer tab, there is no option to change this properties of field.
    According to one of Sap help doc, i should be able to do it using edit label option, in layout tab. But it's not showing.
    I am using VC 6.00.0060 .. i dont think there is any patch applied on this.
    regards,
    Sudhir

  • How to tilt the x-field label vertically in graphs

    Hi
    Please find the attached pic containing column graph
    Let me know how to tilt the x-field labels vertically( USA CHINA RUSSIA vertically…)
    Please find the below code and let me know...
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
            import mx.collections.ArrayCollection;
            [Bindable]
            private var medalsAC:ArrayCollection = new ArrayCollection( [
                { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
                { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
                { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
            ]]>
        </mx:Script>
        <mx:Panel title="ColumnChart and BarChart Controls Example"
            height="100%" width="100%" layout="horizontal">
            <mx:ColumnChart id="column" height="100%" width="45%"
                paddingLeft="5" paddingRight="5"
                showDataTips="true" dataProvider="{medalsAC}">
                <mx:horizontalAxis>
                    <mx:CategoryAxis categoryField="Country"/>
                </mx:horizontalAxis>
                <mx:series>
                    <mx:ColumnSeries xField="Country" yField="Gold" displayName="Gold"/>
                    <mx:ColumnSeries xField="Country" yField="Silver" displayName="Silver"/>
                    <mx:ColumnSeries xField="Country" yField="Bronze" displayName="Bronze"/>
                </mx:series>
            </mx:ColumnChart>
            <mx:Legend dataProvider="{column}"/>
        </mx:Panel>
    </mx:Application>
    Thanks in Advance
    Aruna.S.N.

    Hi,
    can't see attached file but it seems you need AxisRenderer. But rotated text is shown only using embed fonts.
    <mx:horizontalAxisRenderers>
       <mx:AxisRenderer axis="{ID_OF_CATEGORY_AXIS}" labelRotation="90" fontFamily="{EMBED_FONT}"/>
    </mx:horizontalAxisRenderers>

  • Merge field label of two fields in ALV report

    Hi,
    Greetings of the day !!
    I have a requirement to create a ALV report and the alv report has three fields(say F1, F2, F3). Where F1 and F2 fall under same category and i need to have single field label for both these fields.
    How can I merge the field label of the fields F1 and F2?
    Pl. share your knowledge regarding this.
    Thanking you.
    Regards,
    Raghu

    Hi Jodeswara Rao,
    I need to display a ALV report with fields F1, F2 and F3. But F1 and F2 should have same field Label.
    Header 1
    Header 3
    F1
    F2
    F3

  • Field Label in ALV Header

    Hello
    Is there a way to use the field label in the header of a ALV grid?
    I am currently using a hard coded solution, and i know it's not good.
    form buildfieldcat .
      clear wa_fcat.
      refresh it_fcat.
      wa_fcat-col_pos = '1'.
      wa_fcat-tabname = 'KNA1'.
      wa_fcat-fieldname = 'KUNNR'. " I want to use the field label of this field in the header...
      wa_fcat-seltext_l = 'Customer Number'. " ...To not use this line.
      wa_fcat-outputlen = 15.
      wa_fcat-key = 'X'.
      wa_fcat-no_zero = 'X'.
    I hope my query was clear. Thanks a lot!

    Hi,
    If you want header columns from Dictionary field labels, instead of hardcoding, you can follow what fellow SDNs mentioned.
    Here is the solution.
    <li>define internal table like this.
    TYPES:
          BEGIN OF t_mard,
           werks TYPE mard-werks,
           lgort TYPE mard-lgort,
           matnr TYPE mard-matnr,
           insme TYPE mard-insme,
           einme TYPE mard-einme,
           speme TYPE mard-speme,
          END OF t_mard.
    DATA:
          w_mard TYPE t_mard.
    DATA:
          i_mard TYPE STANDARD TABLE OF t_mard.
    <li>Buidl fieldcatalog internal table like below . It works
      PERFORM build_fcat USING:
            "Field   Int Tab  ref field ref table
            'WERKS' 'I_MARD' 'WERKS'    'MARD',
            'LGORT' 'I_MARD' 'LGORT'    'MARD',
            'MATNR' 'I_MARD' 'MATNR'    'MARD',
            'INSME' 'I_MARD' 'INSME'    'MARD',
            'EINME' 'I_MARD' 'EINME'    'MARD',
            'SPEME' 'I_MARD' 'SPEME'    'MARD'.
    *&      Form  BUILD_FCAT
    FORM build_fcat  USING  l_field l_tab ref_field ref_tab.
      w_fieldcat-fieldname     = l_field.
      w_fieldcat-tabname       = l_tab.
      w_fieldcat-ref_fieldname = ref_field.
      w_fieldcat-ref_tabname   = ref_tab.
    *  w_fieldcat-seltext_m    = l_text.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " BUILD_FCAT
    <li> You can check program [here|http://hr-abap-freeeducation.blogspot.com/2008/04/alv-list-display_17.html]
    I hope that it solves your problem.
    Thanks
    Venkat.O

  • 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

  • How do I create visible field labels in a pdf form that can be overwritten by text? I have tried add

    I am creating a very straight forward fillable form and want to add a description of each field that can be visible to the user, but goes away when the person enters the appropriate data in the field. I have tried to suggested custom scripts. The script command were: if (!event.value) event.value = event.target.name; and
    if (!event.value) {event.value = event.target.name; event.target.display = display.noPrint;} else {event.target.display = display.visible;}. Both allow the lables to be visible but neither allow the user to either replace the label with the relevant information and if it does, then the replacing data does not print/remain viewable.
    I am confident this is doable as I have seen forms that say something like "add your name here" and when you enter the data that field label is replaced with the information I enter.

    Hi George,
    I have tried this. What I get is a field label, and I can type into the field, but the label does not go away and the page prints blank. Should I try: if (!event.value) {event.value = event.target.name; event.target.display = display.Print;} else {event.target.display = display.visible;}, removing the .noPrint?
    You have no idea how frustrating it is to try this and have such a simple function not work. Is there anothe script I can try?

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • Include Field Labels in GUI_Download

    How do I include field labels in GUI_DOWNLOAD (I am using it to download an Excel file from an internal table)?  I see a table called fieldnames but when I add fields to that table they system only shows the first field.  How can I show a label for each row, in Excel?
    See the code below:
    wa_fade_fields-posid = 'Project#'.
      wa_fade_fields-poski = 'Phase Code'.
      wa_fade_fields-usr02 = 'WBS Element'.
      wa_fade_fields-txt04 = 'Status'.
      wa_fade_fields-sakto = 'Cost Elem'.
      wa_fade_fields-vrsen = 'Vsn'.
      wa_fade_fields-wrttp = 'VT'.
      wa_fade_fields-planned_hours = 'Planned Hours'.
      wa_fade_fields-arbei = 'Current Hours'.
      wa_fade_fields-ismnw = 'JTD Hours'.
      wa_fade_fields-etc = 'Estimate to Complete'.
      wa_fade_fields-variance = 'Variance'.
      wa_fade_fields-percent = 'Percent'.
      INSERT wa_fade_fields INTO TABLE it_fade_fields.
    *Fade table
      CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        filename                        = d_fullpath
    *   FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
        write_field_separator           = 'X'
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
        dat_mode                        = 'X'
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        data_tab                        = it_fade
       fieldnames                      = it_fade_fields
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    Regards,
    Davis

    I think the problem might be with the WORK AREA structure, the work area which contains the description should be atleast 50 characters long so that it can accomodate all the characters...
    Declare it something like this
    DATA: BEGIN OF excel_schedule OCCURS 0,
            refno(50),
            ebelp(50),
            etenr(50),
            eindt(50),
            menge(50),
            ameng(50),
          END OF excel_schedule.
    Ok there is another simple way of doing this
    Use GUI_DOWNLOAD twice and the second time you just append it to the existing first file...
    SAmple code
    DATA: BEGIN OF excel_schedule OCCURS 0,
            refno(50),
            ebelp(50),
            etenr(50),
            eindt(50),
            menge(50),
            ameng(50),
          END OF excel_schedule.
    * Download to Workstation the Description Fields of error schedule file
      CALL FUNCTION 'GUI_DOWNLOAD'"
        EXPORTING
         filename                        = w_lstring
         filetype                        = 'ASC'
         write_field_separator           = 'X'
        TABLES
          data_tab                        = excel_schedule
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    * Download to Workstation the error schedule file
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = w_lstring
          filetype                = 'ASC'
         append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t1_eschedule
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    use the append property of GUI_DOWNLOAD the second time

  • Field labels that won't go away in Address Book

    Help!
    Many of my contacts have credentials at the end of their names, so I use the Suffix feature to keep track of them. However, for people without credentials at the end of their names, the word "SUFFIX" appears in gray on their contact card, and I can't make it go away.
    Same thing with other unused fields on any given card, such as prefix. It is pretty annoying to have "Prefix Bob Jones Suffix" on a contact card.
    How do I make these field labels disappear without eliminating the field?
    Thanks for your help.
    PPC Mini   Mac OS X (10.4.9)  

    Welcome to the discussions, Cobra.
    Are you leaving the cards in edit mode? Those fields don't show up, if empty, unless you are in edit mode.
    AK

  • Changing Field Labels of module pool screen dynamically

    Hi All,
    Can anybody tell me how to change field label of text field in dialog screen dynamically.
    The Screen/Transaction is standard one.
    I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
    This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
    Can anybody tell me the solution for the same.
    I have to change this label value as per some validations and its corresponding text field value will remain as is.
    Thanks,
    Deep.

    Hello,
    I think it is not possible, but try changing the name by Looping on screen table on PBO,
    Bye
    Gabriel

  • XML Output - Issue with multiple field labels.

    Dear Users,
    I am trying to create an XML sheet as output for my program, and am struck at a point where I don't need field labels appearing on the XML output.
    The code looks as below:
          l_element_order = l_document->create_simple_element(
                name = 'Order'
                parent = l_element_ordertype ).
          l_value = it_order-aufnr.
          l_rc = l_element_order->set_attribute( name = 'AUFNR' value = l_value ).
    On my output though, both the field labels 'Order' and 'AUFNR' appear side by side. I would ideally only want the 'Order' label to appear.
    Is there a method through which I can suppress the labels?!
    I am using the following classes as a part of the code:
    DATA: l_ostream         TYPE REF TO if_ixml_ostream,
          l_ixml            TYPE REF TO if_ixml,
          l_streamfactory   TYPE REF TO if_ixml_stream_factory,
          l_renderer        TYPE REF TO if_ixml_renderer,
          l_document        TYPE REF TO if_ixml_document,
          l_value           TYPE string.
    Would be much appreciated if someone could help me with this please. Thanks!
    Vijay

    Hi,
    recipent list is filled once,there are no loops in the program, and the SOST shows two same items with some have same time stamp and some have difference of a second.
    Regards
    Govind

Maybe you are looking for

  • IMac losing wireless connection when new wireless device is added.

    I have a new 2.4 G iMac and have a 5.1 logitech surround set-up with wireless speakers. anytime i turn the speakers on and i'm using my wireless internet, the internet sits; when i turn the speakers off, the internet works as it should.sounds like th

  • TF201072: A user or group could not be found

    We are using TFS2010 (for source control only), and until recently everyone was using VS2010. Our developers just installed VS2012.  When you go to "Pending Changes" in Team Explorer, we are seeing TF201072: A user or group could not be found. Verify

  • Error deploying 2 processes in the same project BPM 11gR3 Project

    Hi I have a problem to deploy a project in OBPM 11gR3. I have 2 processes on the same project, and tried separately on different projects and working properly. But when I put in the same project I get the following error. [02:09:38 PM] Sending intern

  • Maxl parameterizing entire path using servername

    I want to use environment (or local if environments not possible) to parameterize three paths for source files for Maxl imports and destination files for exports. Easy enough when the path is the essbase server ($Arborpath etc.) The problem arises wh

  • IBooks?

    Any help out there re: the error messege---- Failed to load book because the requested resource is missing? this is on my Ipad 2.