Hide / Show fields in screen

Hi!.
How can I desactive the right-click option in screen:
     *'user's options':
hide/show fields of screen in a web dynpro?.
I don't want that users change the design of the web dynpro, and they hide the fields.
Thanks in advance.
Ana

hi ana........
            each and every ui element in webdynpro has a property called visibility.
            bind this  property to an attribute of type wdui_visibility.
          at runtime pass value to this attribute as abap_true or abap_false for hidin or showing the fields.
---regards,
   alex b justin

Similar Messages

  • Hide/Show Fields

    I have been scouring the internet looking for a solution, but have not found one that fits my exact scenario so any help is much appreciated. I am creating a form with Acrobat Pro and want to enable/disable or hide/show (either will work) three fields. Two of the fields are text fields called "dollars1.0.1.0.0" and "units1.0.0.1.0". The third is a check box called "Check Box5.0.0". What I am trying to acheive is fairly straigt forward. If one is entered, then the others either need to be hid or disabled. If the data in one of the fields is removed, then the others need to be once again made available. Here are the scenarios:
    If "dollars" are entered =  hide/disable check box and "units" text field.
    If "check box" is checked = hide/disable "dollars" and "units" text fields.
    If Units are entered = hide/disable check box and "dollars" text field.
    If "sell all" is checked = hide/disable "dollars" and "units" text fields.
    Code is housed in checkbox: Mouse Up/Run a Java Script
    var nHide = event.target.isBoxChecked(0)?display.hidden:display.visible;
    this.getField("Units1.0.0.1.0").display = nHide;
    this.getField("Dollars1.0.1.0.0").display = nHide;
    *****This works until I check the "Sell All" in the next row down then the dollars and unit fields in the row above become enabled again, which I don't want.
    If "dollars" are entered =  hide/disable check box and "units" text field.
    Code is housed in a separate text box in Custom Calc Script
    var bReady = true;
    if(this.getField("Dollars1.0.1.0.0").value.length == 0)
      bReady = false;
    if(bReady)
      this.getField("Units1.0.0.1.0").display = display.hidden;
    else
      this.getField("Units1.0.0.1.0").display = display.visible;
    if(bReady)
      this.getField("Check Box5.0.0").display = display.hidden;
    else
      this.getField("Check Box5.0.0").display = display.visible;
    *****This works except it doesn't hide the checkbox.
    If Units are entered = hide/disable check box and "dollars" text field.
    Code is housed in a separate text box in Custom Calc Script
    var bReady = true;
    if(this.getField("Units1.0.0.1.0").value.length == 0)
      bReady = false;
    if(bReady)
      this.getField("Dollars1.0.1.0.0").display = display.hidden;
    else
      this.getField("Dollars1.0.1.0.0").display = display.visible;
    if(bReady)
      this.getField("Check Box5.0.0").display = display.hidden;
    else
      this.getField("Check Box5.0.0").display = display.visible;
    *****This one seems to work how I want it to.

    I have been scouring the internet looking for a solution, but have not found one that fits my exact scenario so any help is much appreciated. I am creating a form with Acrobat Pro and want to enable/disable or hide/show (either will work) three fields. Two of the fields are text fields called "dollars1.0.1.0.0" and "units1.0.0.1.0". The third is a check box called "Check Box5.0.0". What I am trying to acheive is fairly straigt forward. If one is entered, then the others either need to be hid or disabled. If the data in one of the fields is removed, then the others need to be once again made available. Here are the scenarios:
    If "dollars" are entered =  hide/disable check box and "units" text field.
    If "check box" is checked = hide/disable "dollars" and "units" text fields.
    If Units are entered = hide/disable check box and "dollars" text field.
    If "sell all" is checked = hide/disable "dollars" and "units" text fields.
    Code is housed in checkbox: Mouse Up/Run a Java Script
    var nHide = event.target.isBoxChecked(0)?display.hidden:display.visible;
    this.getField("Units1.0.0.1.0").display = nHide;
    this.getField("Dollars1.0.1.0.0").display = nHide;
    *****This works until I check the "Sell All" in the next row down then the dollars and unit fields in the row above become enabled again, which I don't want.
    If "dollars" are entered =  hide/disable check box and "units" text field.
    Code is housed in a separate text box in Custom Calc Script
    var bReady = true;
    if(this.getField("Dollars1.0.1.0.0").value.length == 0)
      bReady = false;
    if(bReady)
      this.getField("Units1.0.0.1.0").display = display.hidden;
    else
      this.getField("Units1.0.0.1.0").display = display.visible;
    if(bReady)
      this.getField("Check Box5.0.0").display = display.hidden;
    else
      this.getField("Check Box5.0.0").display = display.visible;
    *****This works except it doesn't hide the checkbox.
    If Units are entered = hide/disable check box and "dollars" text field.
    Code is housed in a separate text box in Custom Calc Script
    var bReady = true;
    if(this.getField("Units1.0.0.1.0").value.length == 0)
      bReady = false;
    if(bReady)
      this.getField("Dollars1.0.1.0.0").display = display.hidden;
    else
      this.getField("Dollars1.0.1.0.0").display = display.visible;
    if(bReady)
      this.getField("Check Box5.0.0").display = display.hidden;
    else
      this.getField("Check Box5.0.0").display = display.visible;
    *****This one seems to work how I want it to.

  • Hide/ Show Field Labels

    On my form I have field labels that are part of base layer and set like below
    Last Name____________________________________________________
    Is there any way have them show and hide when their associated fields hide/show? or hide when printing them adobe or adobe reader?

    Acrobat has an option to print only form fields.
    Reader does not have this feature.
    It is also possible to cover the field labels with form fields that have a fill color and only appear on the printed output.
    You might want to learn more about the PDF format and forms. There are many free references about the PDF format and forms.

  • Using jquery to hide/show field based on query results

    I have a form that includes fields for country and state/province.  Initially, the state field is hidden.  When the user selects a country, I use a bind expression in the state field to get the states in the selected country.  I want to display the state field only if the country has states (since some countries don't).  Can someone tell me how to do this?  Here's the relevant stuff:
    <script>
        $(document).ready(function() {
            $('#stateID').hide();
            $('#stateIDLable').hide();
    </script>
    Country:
    <cfselect name="countryID" query="qryCountries" value="countryID" display="country" />
    <div id="stateIDLable">State or Province:</div>
    <cfselect id="stateID" name="stateID" bind="cfc:geography.getStates({countryID})" />
    Thanks.
       Pete

    I presume you have a JavaScript function that handles the results of the cfc binding?
    If you don't you will need to incorperate one.  Then, as well as populating the second select, this function can use logic to show the second set of controls.

  • PLD - hide/show fields

    Hi experts.
    I have a PLD based on sales quotation in SAP B1 2007A PL38. On this pld I currently have 2 amount fields. One is for sub totals and the other one for regular line totals. The reason for two fields is based on the fact that sub totals should appear with a bold font.
    OK, now to the issue in question; I need to put yet another field with amount on to the document rows of the PLD. This field is a UDF that contains a third amount. In addition I have some rules that sets the conditions for when the different fields should appear and not.
    If there is no data in UDF field - then regular amount should appear
    If there is data in UDF field - then UDF amount should appear
    If the line is a subtotal - then font should be bold and subtotal amount should appear
    Can someone please guide me on how to set conditions in PLD to make this logic?
    Thanks and regards,
    Runar

    For this 
    If there is no data in UDF field - then regular amount should appear
    If there is data in UDF field - then UDF amount should appear
    You could add a Formula field which checks the value of the UDF.  Also the UDF field should be added twice, one to be checked in the formula and another that prints.   If the UDF field on the PLD is F_230 then the formula can be
    F_230 > 0 or something like that
    Link this formula field to the second UDF.  Add another Formula F_230 == 0
    Link this formula to the Regular Amount field on the row.

  • Can we hide the field in Shopping Cart of SRM

    Hi..
    Can we hide the field in Shopping Cart of SRM??
    I have to hide some of the fields from SRM shopping cart screen. is it possible to hide the fields??
    Please suggest me
    Thanks.
    Regards,
    Manoj Tiwari

    Hy,
    For screen variants, just go to transaction SHD0.
    The only screen variants available in SRM 4.0 are:
    Item data overview in an invoice without purchase order reference: BBP_IV_NON_PO
    Item data overview in the invoice with purchase order reference: BBP_IV
    Item data overview in the confirmation: BBP_CF
    Item data overview in the confirmation for time recording: BBP_CF_TIMEREC
    Item data overview in the purchase order: BBP_PO;
    Item data overview for contracts: BBP_CTR_ITEMLIST
    Item data overview for selection of contracts: BBP_CTR_ITEM_SELLIST
    Search results for entering an invoice and/or confirmation: BBP_SEARCH_PO
    Search results for entering a purchase order: BBP_SEARCH_SC
    Search results for displaying/processing an invoice: BBP_CHANGE_IV
    Search results for displaying/processing a confirmation: BBP_CHANGE_CF
    Search results for entering/displaying/processing/status of a shopping cart: BBP_SC;
    Worklist for Sourcing: BBP_SOCO_WL
    Work area in Sourcing: BBP_SOCO_GA
    This is very light, and most of the SRM project have to make Templates, or ABAP screens repairs, to Hide/Show fields.
    Regards.
    Vadim

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • Tcode F-48, Item 1 / Debit Advance / 29 L Screen not showing field Purchase

    Hi,
    Tcode F-48, Item 1 / Debit Advance / 29 L Screen not showing field Purchase doc. Field.
    When advance / payment made by Tcode F-48 against purchase order. Purchase Doc. field not showing in Item2Downpayment made 2 Screen.
    Is there any necessary custmization required.
    We want to maintain and link purchase order no. at the time of Downpayment by F-48. so that it refelect in purchase order screen status tab.

    Thanks for reply,
    Now i get field status grup G005 - Bank accounts (obligatory value date) and than i have changed :
    - G005 field status group by Tcode OBC4 in Materials management screen i have make Req. Entry of Purchase order.
    After than when i again run f-48, Purchase Doc. field still not showing. ?????
    Help

  • Show/Hide JSF field based on SelectOnceChoice using Model Driven List

    Hello All,
    I have a use case where I want to show or hide fields based on values populated in SelectOneChoice. I have View master and View Lookup, master has a field named product which displayed selectiononechoice of product name built using lookup view as accessor. I am storing id of lookup type inside product column. Based on a product name say "abc" I want to hide subsequent fields. Can anyone please tell me how to implement this?
    I am using ADF 11g version 11.1.2.
    Thanks,
    Dipal

    If I understand you correctly, you are trying to show/hide subsequent fields based on the value selected from a selectonechoice?
    Did you try using partial triggers and EL for setting the rendered attribute on subsequent fields and setting autosubmit to true on selectonechoice?
    Kristjan

  • Hide / Show a block in Selection screen

    Hi,
    How to hide or show a block in selection screen.
    Plz help.
    Regards,
    Sriram

    REPORT  ZTESTETSET.
    02.
    03."First we create the selection screen which contains 2 option
    04."buttons For show and hide.
    05.
    06. SELECTION-SCREEN BEGIN of BLOCK screen1 WITH FRAME TITLE title1.
    07.  PARAMETERS: Show RADIOBUTTON GROUP opt USER-COMMAND aaa DEFAULT 'X',
    08.              Hide RADIOBUTTON GROUP opt .
    09.  SELECTION-SCREEN END OF BLOCK screen1.
    10.
    11.  "This is the selection screen that we will hide and show
    12.  "based on the selected option button above
    13.
    14. SELECTION-SCREEN BEGIN of BLOCK screen2 WITH FRAME TITLE title2.
    15.      PARAMETER  CONNID like spfli-connid.
    16.  SELECTION-SCREEN END OF BLOCK screen2.
    17.
    18."We capture the selected option event using
    19."AT SELECTION-SCREEN OUTPUT to modify the screen
    20.
    21.   AT SELECTION-SCREEN OUTPUT.
    22.  PERFORM modify_screen.
    23.
    24.  START-OF-SELECTION.
    25.
    26."This is the sub program that will loop all the elements on
    27."the selection screen to identify which element we want to
    28."hide or show based on screen name.
    29.
    30.  FORM modify_screen .
    31.  LOOP AT SCREEN.
    32.    IF Show NE 'X'.
    33.      IF screen-name CS 'CONNID'.
    34.        screen-active = 0.
    35.        MODIFY SCREEN.
    36.      ENDIF.
    37.    ENDIF.
    38.  ENDLOOP.
    39.ENDFORM.
    40.
    41."Give the selection block a title.
    42.INITIALIZATION.
    43.
    44.title1 = 'Show/Hide Option'.
    45.title2 = 'Selection Screen'.
    Thanks
    anurag Srivastava

  • Hide/Show Today View from Lock Screen in iOS 8

    In iOS 7 I had customized for the Today View not to show from the lock screen. In iOS 7 the Setting was simple, Go to Settings > Notification Center > Turn Off "Today View" for the lock screen.
    I updated to iOS 8 & the Today view is much more useful now so I want to bring it back on the lock screen but I can not! Going to Settings > Notifications, only shows the notifications but not a way to toggle on/off Today view.
    WHERE CAN I CHOOSE TO HIDE/SHOW THE TODAY VIEW FROM THE LOCK SCREEN IN IOS 8?

    Hi there original_p,
    It looks like this setting has moved. Take a look at the User Guide for more information. 
    Notification Center - iPhone
    Choose whether to show Today and Notifications View on a locked screen. Go to Settings > Touch ID & Passcode (iPhone models with Touch ID) or Settings > Passcode (other models), then choose whether to allow access when locked.
    -Griff W. 

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • How to make a button show AND hide a field?

    In an interactive form (with Adobe Acrobat X Pro), how can I purpose one button to:
    1.) Show a field when clicked the first time
    2.) Hide a field when clicked a second time
    I seem to only be able to make a button do one or the other, but not both with the same button. Maybe an easier way to say this is I want to be able to have one button turn a field "on" and "off".
    Any help would be GREATLY appreciated. Thanks! 

    Use this code:
    var f = this.getField("OtherFieldName");
    if (f.display==display.visible) f.display = display.hidden;
    else f.display=display.visible;

  • How to hide/show and move screenelements at runtime

    Hi Guys
        Currently, i have a requirment that, in the same screen, when user choose different different option in the dropdown list, there should be different screenelements and table control with different columns showing below it.
    Now, i have two plans below:
    1), hide/show and move position of screen elements and table control at runtime
    2), call different subscreen
    I hope i can take the first way since the second way will modify structure of program ( As it is infotype screen ), any one knows how to implement the first solution?

    Hi,
    I would suggest you to call different subscreens and load them dynamically based on your parameters.Since different subscreen are called your coding and functionality could also be seperated by writing in the PAI and PBO of the correspondiong Screens.
    if you have decided to go by your first method then try the below code.
    a) if it is normal UI elements like text box etc
    LOOP AT SCREEN.
        IF <var> = ' value '.
            screen-invisible = '0'.
            MODIFY SCREEN.
      endif
    ENDLOOP.
    Here <var> refers to the screen field name and value refers to its value.
    b) To hide columns in a Table control.
    DATA cols LIKE LINE OF tc-cols.
      LOOP AT tc-cols INTO cols.
        IF cols-screen-group1 = 'G1'.
          cols-invisible = 'X'. "HIDE THIS COLUMN
          MODIFY tc-cols
          FROM cols
          TRANSPORTING invisible.
        ENDIF.
        CLEAR cols.
      ENDLOOP.
    PS: here TC refers to the name of the table control.
    Lemme know if you face any problems.
    Cheers,
    RK

Maybe you are looking for

  • LTP Planning for Subcontracting Purchase Order

    Hi All, I am doing LTP run for the Finished Material. Finished Material is having few open subcontracting Purchase order's. When I take the LTP run  in MS02, system is considering the Open PO's and adjusting (netting) it with the Planned independent

  • Unable to start WLS8.1sp4 after extended with Integration &workshop Templat

    Hi, I've have configured three domains of WLS8.1sp4 on unique ports namely 6001, 7001 & 8001 but only one domain can be started on the port 7001 but there is a problem starting the other ports. All the three domains WLS were able to be started withou

  • Digital Signatures in Adobe Reader 8

    Hello, I am trying to use adobe reader 8 to make a digital signature on a pdf document but I run into an error code when I try to sign and save the document.  It comes up saying:  platform encyption                             keyset does not exist  

  • How to change the fields order by pushing the TAB button?

    Hello. I have 4 input fields on a screen that i have build. When i'm running the screen, I can move from one field to another by the TAB button. I need to set a different moving order that is performed by the TAB button. For example: the fields are 1

  • Error Message: JBO-30003: The application pool

    Dear Members, I've an application that was developed using JDeveloper 3 and BC4J Components. This application currently running on WebSphere Application Server (WAS) 3.5 and Oracle 8i. Now I'm trying to deploy the same on WAS 5.1.x and Oracle 9i on S