How to hide a label in webdynpro

Hi.
   I have a Label and a dropdown in the window, where on selecting the particular value in my previous dropdown. This label and drop down need to be visible. How to hide the field.
Kindly help me to solve this one.
Thanks
Yogesh

Hi,
You can use the ONSELECT event of the previous dropdown (the dropdown whose value you want to use to make the label invisible).
In the evenhandler for ONSELECT event has paramaters like CONTEXT_ELEMENT , ID and KEY where ID is the ID of dropdown
and KEY is the value selected in dropdown.
EXAMPLE,
DATA : lo_label = cl_wd_label.
IF key EQ 'I agree'.
  lo_label ?= view_instance->get_element(ID = 'LABEL_ID').
  IF NOT lo_label INITIAL.
    lo_label->set_visible(value = 01 ).
  ENDIF.
ENDIF.
The view_instance has to be set with value of attribute"view" in ur WDMODIFY method of view.
Similarily you can make dropdown or any UI element invisible.
Hope it helps.
Thanks,
Aditya.

Similar Messages

  • How to hide ALV column in webdynpro

    Hi frnds,
                   I want to hide one columns in ALV output on webdynpro , give the procedure ...
    Thanks & Regards,
    Rajesh.j

    Procedure is :
    a) Get ALV Model reference
    b) Get list of ALV Columns
    c) Loop at each column and set visibility
    Code would be something like this
    I'm storing ALV model reference in view attributes wd_this->alv_config_table of type ref to CL_SALV_WD_CONFIG_TABLE.
    Data: lo_cmp_usage type ref to if_wd_component_usage.
      DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column          TYPE REF TO cl_salv_wd_column,
            lt_column type salv_wd_t_column_ref,
            ls_column type salv_wd_s_column_ref.
    *create an instance of ALV component
      lo_cmp_usage =   wd_this->wd_cpuse_OVERVIEW_EARNED_ALV( ).
    * if not initialized, then initialize
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
    * get ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
       wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
      lr_column_settings ?= wd_this->alv_config_table.
      lt_column = lr_column_settings->get_columns( ).
      loop at lt_column into ls_column.
        CASE ls_column-id.
          when 'POST_YEAR'.
            ls_column-r_column->set_visible( if_wdl_core=>visibility_none ).
       ENDCASE.
    endloop.

  • How to hide the label and choice component in the frames

    I have two Buttons.
    when i press the button i want disappear the label and Choice list from the panel. when i press Other button i want to appear the label and Choice list in the panel
    plz give the good idea for it.

    one of the ways is to use a CardLayout
    1st card has the label and list, 2nd card is a blank panel
    click the button to show the 1st card, then click again for 2nd card,
    then again for 1st card etc

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • How to hide the select-options fields on radiobutton select in webdynpro

    hi
    Could you please help how to hide the select-option fields in webdynpro
    there are four radio buttons
    for every radiobutton there is corresponding the select_option filed is associated to it
    user as only provision select  one radio button and reset of the select-option fileds should be hidden
    which ever the radio button is selected corresponding the select-options fileld should be displayed
    please find the attachement below

    Hi Nine,
    To hide select options you should use interface method REMOVE_SELECTION_SCREEN_ITEM of IF_WD_SELECT_OPTIONS.
    Sample code :
    Write the below code in the Event handler of Radio Button.
    DATA lv_r_helper_class TYPE REF TO if_wd_select_options.
    lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
    lv_r_helper_Class->REMOVE_SELECTION_SCREEN_ITEM(exporting i_id = 'Select_option1_id1').
    This will hide first select option of your screen.Similarly pass select_option_id2 to hide it and so on.
    Regards,
    Ravikiran.k

  • How to hide Total value in RFX response webdynpro component

    HI experts,
           We are working on SRM 7.0 and there is a requirement to hide the Total Value that appers on RFX Response Header for a particular Role.The webdynpro component is FPM_IDR_COMPONENT and View is IDR_VIEW..I have searched the SDN and found that CL_FPM_IDR class methods can be used to hide the Items.But method SET_ITEMS_VISIBILITY sets the visibility for all items,but i want for a particular pair.Please advise me how to hide this field value pair dynamically.
    Regards
    Sonika

    What you might try is to remove the particular key_value pair from the lt_items table which is passed to the IDR.
    So search in(WDA/Assistance class/Feeder class ) and find out the place ,from where this table is filled and called to set items on IDR.
    Remove the pair before from table before the call to IDR.

  • How to disable Print button on WebDynpro ABAP ALV

    In WebDynpro ABAP, a standard menu appears around the ALV,  that has a PRINT button and an EXPORT button.
    Is there anyway to disable those buttons????
    Thanks
    John

    Hi John,
    Check the interface if_salv_wd_std_functions. It contains methods which are used to hide the standard ALV toolbar buttons.
    Also refer : Removing "print version" button in alv
    How to hide Print and Filter option from dynamic ALV

  • How can we maintain tetxs in webdynpro insted of hardcode

    Hi Experts,
                    i am new for this webdynpro abap.how can we maintain tetxs in webdynpro insted of hardcode like text symbols in abap.we are using freaquently texts in message manager.in best practice we should not maintain hard code.
    guys suggests me.

    Hi.,
    For Labels You can Use OTR ( Online Text Repository )  Goto View ., In Menu bar Goto Online Text Repository and Add text ., then For Label Text press F4 then u can assign the Created Text.,
    For Messages; Instead of HardCoding., Create  a Class and Use that Class in Your WDA As Assistance Class ., In the Class Go to Texts and Add the text elements same as Text elements in se38. , You can use those text elements by providing message id in WDA ., using
    WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '001' ).  " here 001 is the text element id which u created in class
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • How to hide exit button on overview view of adress iview.

    Hello Gurus,
    Can anybody suggest me how to hide the exit button on overview page of address iview?
    Thanks,
    Sha

    Hi
    1) If you want the exit button to be hided u can use the following code in doModify as we know this doModify will be called each time the action is performed so when we use this code exit button will be hided all the time.
    Button btn_ui= (button) view.getElement("Button_ID");
    btn_ui.setVisible(WDVisibility.NONE);
    2) if you want to hide only on specific time then better to use the value attribute of type com.sap.ide.webdynpro.uielementdefinitions.Visibility  then bind this to exit button's property--> visibility and in your code wherever required set the visibility.
    Ex: value attribute name : va_Exit_Visible
          type : com.sap.ide.webdynpro.uielementdefinitions.Visibility
    wdContext.currentContextElement().setVa_Exit_Visible(WDVisibility.NONE);
    Regards
    Prasad.

  • How to display axis labels on both x and y-axis of a column chart

    hi,
     i have an urgent requirement of having axis labels on both x and y axis
    In x-axis i got it by sorting order also but in y-axis i'm unable to do
    i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
    my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
    thanx in advance
    lucky

    Hi Lucky,
    Per my understanding that you want to display the values(Column1) like  "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
    display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
    Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
    I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
    Detais information about to design an new y-axis label ae below for your reference:
    Create an tablix to display only the row group of the "Column1" ( for the
    Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
    Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
    Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
    Set the border style=None for both the Chart and Column1's row group
    Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
    Right click the "Chart legend" to delete or hide the legend
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to hide the "EXIT" button on the ESS Personal inf. iViews

    Hello,
        We are using SAP ECC 6.0 + SAP EP 7.0 + ESS 1.0 (latest Releases).
        In the ESS iViews (Java WD) for Personal information (Adresse, Bank, Family, etc. there is the Button "Exit"..
      Does any have any Idea where and how to hide this "Exit" Button in the iView/Java-WD?
    Many Thanks,
    Nazih

    Hi Chris,
      thanks for your reply.
      If you mean to hide the button using the iView/WD Personalisation by rightclick on the iView in PCD and then Review, well yes i know this and i have tried this already before and we were able to hide some not required input fields in the Webdynpro, but we were not able to find and to hide the "EXIT" Button using the personalisation..!!?? you know why?
    Why to hide the Exit button, i will tell you why, in the iView for maintainig the ESS Personal Information -> e.g. Adresse --> Edit Adresse View (Roadmap view No. 2) --> when User click on the Exit Button --> This will open new browser Window with ESS... ---> This second Browser Window (Pop up) would confuse the User, since he already have an opened window, so the Customer mean why open new window, since the user can simply click the Button Back and so his data are also saved..
    How can we manage to control the behaviour of the Button, so the iView is closed safety without that new Pop-up windows are opened...
    Many Thanks,
    Nazih

  • How to hide MastHead from iView

    Hi Experts,
    I have created linktoURL UI element for WD program1. I am calling WD program2 using linktoURL UI element of WD program1. When I am clinking on the linktoURL UI element, iView of WD program2 gets open successfully. In the iView MastHead (company logo, logoff link, search button, top level navigation etc) is getting displayed. I don't want to display these details. How to do so?
    I have set the Launch in new window propert as "Display in seperate headerless portal window" for the iView of WD Program2. However this is not helping.
    Can you please let me know how to hide the masthead, company logo, logoff link, search button, top level navigation etc from the iView.
    Regards,
    Gary
    public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
         wdContext.currentContextElement().
         setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                     "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report_Auto&DynamicParameter=trip_number%3D"+
                 (wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
                   "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");

    Hi,
    If u have set Launch in new window property as "Display in seperate headerless portal window", this should work. Hope you have set the property value for the proper iview.
    Also if you are using a link with NavigationTarget as in wdDoModify, append &NavMode=3 at the end of url  as below. This will hide the mast header
    public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
         wdContext.currentContextElement().
         setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                     "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report_Auto&DynamicParameter=trip_number%3D"+
                 (wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
                   "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report"+"&NavMode=3");

  • Hide axis labels

    I have 3 columns for my Axis labels and chart is as desired. BUT, I only want to show the first 2 categories of values on my axis (year and Quarter).  The 3rd label allows me to chart each individual value but I don't want the values to show in the
    axis. They appear in the graph as "points" but I need to hide them on the axis.
    How do I do that?
    TIA

    Hi TIA,
    According to your description, you want to show the first 2 categories of values on my axis (year and Quarter) in your Pivot Chart, right?
    I have tested it on my environment, currently there are no any options to hide axis labels in Axis Option for a Pivot Chart which you can see on the screenshot below.
    So in your scenario, there is no such a functionally to work around your requirement. If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
    they can be, Microsoft might consider to add this feature in the following release after official confirmation.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to hide the pricing conditions specified in pricing procedure of sd.

    dear friends,
    my situation is to hide the conditions specified in the pricing procedure. so that it is not viewed by the some users.can you please tell me how to hide the conditions. so some of the persons, who are having authorization to see the conditions , will be able to see the pricing conditions.
    can you please suggest me how to do this.
    regards,
    g.v.shivakkumar

    Authorisation  issues viz. Role Impementations
    Hide Condition Records Line Item & Header Wise from all the transactions QK / So /  P.I. / Enquiry / Invoice etc. for specific user grps. - in CRETATE / AMEND / DISPLAY / REPORTS all
    Only Display the fields
    regards,
    g.v.shivakkumar

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

Maybe you are looking for

  • How to ceate RefPlant:consumption data use BAPI_MATERIAL_SAVEDATA?

    Hi all. I need create material master data like via MM01. I call BAPI: BAPI_MATERIAL_SAVEDATA to create data. I could NOT found the relevant fields in parameters list for 'RefPlant:consumption'(Reference plant for consumption) in Forecasting View. Is

  • Not able to start managed server from command prompt

    Hi, I am trying to start manged server from command prompt. The command i am using is as follows: startManagedWebLogic.cmd MS1 [http://]<Listen_Address>:<Admin_port> Where MS1 is the name of my managed server. But i am getting following exceptions: T

  • Ipod contacts sync problem

    When the first time I sync my outlook express contacts to my ipod, there is no problem. After I added some contacts and try to sync, update to my ipod, I found that it add the whole contact again plus the new one and also some contacts ( in outlook e

  • To remove Cancel and Keep workitem from User desicion

    Hi,   I am having a requirement that I need to remove the extra system added button of <b>cancel and Keep workitem</b> in the User decision activity. I don't want that to be shown to the user for proccessing , I shoud display only Approve and Reject

  • OracleStudio12.3 and Red Hat 6.2

    I have OracleStudio12.3 and Red Hat 6.2 on my system. When I run 12.3 on the simple little app you get with the IDE packag I get red error lines even in the comment areas. Any help would be appreciated. Maybe I should shift to12.2 but I don't have a