How to make Select List Read only (Keep key Data)

I'd like to make a select list read only when the screen is in maintenance mode because the select list value is part of the key.
However, when I make the select list read only, the update fails because it appears making it disable lose's it's value.
How can I make a select list read only and keep it's value for update.

In HTML Header I have
<script type="text/javascript">
function Disable_List(pthis,hideitem)
if ($x(hideitem).value == 'Y')
{   $x(pthis).disabled = "disabled";
</script>
<script type="text/javascript">
function Load_Start()
Disable_Item('P5_SUBCODE','P5_XW_HAS_VALUE');
Disable_List('P5_LTY','P5_XW_HAS_VALUE');
</script>
When I click apply changes, my Validation check that doesn't allow nulls in the "P5_LTY" fires saying the field can't be null. The select list is grayed out and I see the value, but the validation check thinks it's null.
Edited by: spuchc on Jun 15, 2010 8:03 AM

Similar Messages

  • How to make select list as read only

    Hi All.
    when i m loading a page ...how to make value of select list as read only ..
    i tried doing this ....
    i added readonly attribute to the select list's element attibute ...it is showing as read only field by darkening the select list field but ... the select list is editable even now... its allowing to choose from drag and drop ...
    Thanks & Regard ,
    Nandini

    I have the same requirment..
    I have a select list on a editable form and i want to make that one read only.
    When I use read only property it doent do anything. (But this is working for text items well).
    When I use "disabled' option it works fine. But then that value does not post when use POST the form. So making select list disabled is not a solution.
    Any Idea..
    Thanks
    mc

  • How to make a page read only

    Hi all,
    Can anyone please help me out on the following issue.
    How to make a total page read only, so that he/she can not make any changes. I want the total page read only.
    Do we have any functions to do that?
    I need to do through peoplecode only because i have to check a condition.
    Please help me.
    Thank you,
    Bye.

    Without customizing, this may be accomplished via Permission List Security.
    Go to PeopleTools - Security - Permission List
    Select the desired Permission List. Click on the Pages tab.
    Find the menu and click on "Edit Components" hyperlink.
    Find the Component on the List and click on the "Edit Pages" hyperlink.
    Click on the Display Only check box for each page in the component you wish Display Only.
    If that does not sufice, you may use PeopleCode to set the Field DisplayOnly property to true for those editable fields that you wish not to be.
    HTH
    Steven E. Davies

  • HOW TO MAKE FIELDS AS READ ONLY IN TABLE MAINTAINANCE

    HI ABAPers,
    HOW TO MAKE SOME FIELDS AS DISPLAY MODE.
    FOR SUPPOSE, THERE ARE 5 FIELDS in SM30.
    AMONG THEM 1 FIELD SHUD BE USED FOR EDITING AND THE OTHER 4 FIELDS SHUD ONLY BE USED FOR DISPLAY PURPOSE
    WHEN EVER I ENTER A VALUE IN THAT 1 PARTICULAR FIELD THEN THE DATA OF THE REMAINING 4 FIELDS SHUD BE DISPLAYED IN THE SAME SCREEN ITSELF.
    HOW CAN IT BE POSSIBLE...
    PLZ HELP.
    THNX IN ADV,
    SP.

    Hello SP,
    You can create a maintenance view for the table & here you can define the maintenance attribute for individual fields.
    For the fields you want to be READ-ONLY pass 'R' to those fields. (It is the 4th column from the left, the one to the immediate left of the Key column).
    Don't change the TMG function group directly. If you regenerate the TMG the changes would be overwritten !
    You can use the Event '01' to fulfill your requirement:
    *&      Form  f_event_01
    *       text
    FORM f_event_01.
      DATA: v_indx TYPE sy-index,
            v_land1 TYPE land1,
            v_name1 TYPE name1.
      FIELD-SYMBOLS: <vendor> TYPE lifnr,
                     <val> TYPE ANY.
      BREAK-POINT.
      "TOTAL contains all data which are read, changed and created in TMG
      LOOP AT total.
        IF <action> = neuer_eintrag " New Entry.
        OR <action> = aendern "Changed entry
        OR <action> = original. "Same as DB
          READ TABLE extract WITH KEY <vim_xtotal_key>.
          IF sy-subrc = 0.
            v_indx = sy-tabix.
          ELSE.
            CLEAR v_indx.
          ENDIF.
          ASSIGN COMPONENT 'LIFNR' OF STRUCTURE total TO <vendor>.
          CHECK sy-subrc = 0.
    *     select data from the LFA1 based on LIFNR
          SELECT SINGLE name1 land1 FROM lfa1
            INTO (v_name1,v_land1)
            WHERE lifnr = <vendor>.
          CHECK sy-subrc = 0.
    *     Populate the hidden fields NAME1 & LAND1
          ASSIGN COMPONENT 'NAME1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_name1.
          ASSIGN COMPONENT 'LAND1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_land1.
          MODIFY total.
          CHECK v_indx GT 0.
          extract = total. "Pass the changes in TOTAL to EXTRACT
          MODIFY extract INDEX v_indx.
        ENDIF.
      ENDLOOP.
      sy-subrc = 0.
    ENDFORM.                                                    "f_event_01
    BR,
    Suhas
    Edited by: Suhas Saha on Aug 16, 2010 11:58 AM

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • How to make form as read only when another time as  user sees it..

    Hi All,
    I have a form to raise the issue. once the issue is raised it appears in the issue raised reports( that is form on a report )
    so all can view this report and click on issue no ..the form with details appear .
    but i want to restrict it , by allowing only one up manager to view the form on a report in editable format rest all can just view it .
    how can i do this?????????
    can any one help me with this ????..
    my approach is like this ...
    a column called "checked shud be added to issue table , then its values must be set to "raised" when issue is submitted for the very first time..( so it is zero when the end user is submitting it ).
    when ( the logged in user =1 up manager or checked!="raised") then
    form fields to be displayed as edited
    else
    form fields need to be read only .
    Thanks & Regards,
    Nandini Thakur.
    Edited by: Nandini thakur on Jun 26, 2010 12:04 PM

    Nandini,
    If you edit any item, you can see a section where you can specify "Read-Only" condition. Here you can write your read-only logic using SQL OR PL/SQL or predefined conditions.
    Cheers,
    Hari

  • How to make a page READ ONLY / all fields are DISABLED ?

    Hi all,
    I am using ONE page to do ADD/EDIT/DISPLAY data. When users are in DISPLAY mode, I want all fields on the page to be read only / disabled.
    How is the best approach to do that ?
    (other than going to every fields and set the ReadOnly/Disabled property)
    Thank you for your help,
    xtanto

    Hi Xtanto,
    My business logic is somewhat different - I don't do this for new/editted rows, but based upon other security. You could certainly set something in your backing bean based upon a user clicking "new" or "edit"
    John

  • How to make a field read only at run time by entering the value in another field.

    Hi Team,
                  Recently i got a requirement , i Have 2 dff's at header level and line level related to down payment ,and the DFF having two fields such as amount and if i enter amount that should be converted into % then populate the total amount field, at the same time % field should be gray out . if i give %(percentage) then amount field should be grayed out(read only) and then it should populates towards the total amount at header level.
    Can any one help me on this issue.
    Thanks,
    raghava

    I would to elaborate this issue...
    I have DFF's enabled at Header level and line in Purchasing Module -->Buyer WorkBeanch --> Order page here they did, as "Details". Details contains two Filed's
    1. Amount
    2.Percentage (%)
    Requirement :
    i.if i enter "down payment amount" then "down payment %" going to become read only. vise verse.
    ii. If I enter "down payment amount " or "down payment %" at header level then not allowing to enter at line level .
    thanks,
    raghava

  • How to make selection screen display only

    hi all ,
    is there a way can only display the selection screen  , but not modifiable  , i don't want to create a new screen but use the selection screen.
    regards
    Kevin

    Hi,
    Use the Loop at screen...End loop in At selection-screen output event.
    Screen-name should be your selection screen Field names...
    Refer to this link...
    Loop at screen
    try the below code.
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
    IF screen-name = 'FIELD2' .
    screen-input = 0.
    screen-output = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    loop at screen.
    IF screen-name = 'FIELD1' .
    screen-input = 0.
    screen-output = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Edited by: avinash kodarapu on Dec 8, 2008 12:15 PM

  • How to make Adf Table Read Only

    hi.
    i have a Viewobject named Employe based on an entiy object. when i insert it on a form as a table, by default the table is updatable.
    how can i make it readonly (just the adf swing table) without creating an other readonly view object Employe.

    I think you'll need to do this in the Jtable level -
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • WebDAV how to make root folders read only but contents writable

    Hi everyone.. Thanks in advance to anyone who can help me out..
    1 PERMISSIONS
    I have a working WebDAV server. In each realm (or user account) they have a setup that mocks their home folder, ie, Documents, Movies, Websites, etc.
    How can I modify the permissions so that these root folders cannot be deleted, but they can obviously have items added/deleted inside of them?
    2 QUOTAS
    Is there anyway to add quotas to WebDav accounts?
    Thanks a lot!
    -Mel

    sorry guys..
    Just figured out how to sort out the permissions.. You need to modify the WWW user the way you would normally set the standard user's permissions..
    Any help on setting the quotas?
    Thanks!
    -Mel

  • How can I make Keynote files read-only (eg: to share with students)?

    I would like to share some keynote files with students, and I would like to set them up as read-only, so that the students can tap the screen, read my presentation, but not alter it.  I've tried to set the files up as read-only on my iMac desktop, but when I load the file onto my iPad, it's still editable.
    Any ideas re: how to make Keynote files read-only?
    I've tried to export the files as PDF and load them into iBook, but some of Keynote's basic "build" functions won't work this way.  Specifically, I have files set up with questions and answers (ie - a question appears, and you have to tap the screen to see the answer, but this "build" function seems to disappear when I get it to show up in iBook).
    Any ideas how to make Keynote files read-only?  I am happy to use another program, but I want the students to tap the screen in order to see the answer to a question.
    Thanks!

    as long as $PATH is set, you shouldn't need to reconnect them (i think).  if you send the list of apps through | awk -F '/' '{print $NF}' | that'll strip the path
    /edit: added the "(i think)" part
    Last edited by brisbin33 (2009-06-02 21:33:06)

  • 1) Make the column read only without coding

    Please guid eme how to make the column read only in the list without using the coding.
    Vij

    Basically, the answer is that you can't.  There are ways to change a specific list view to make a column readonly by replacing the form with a custom DataView form.  But that only applies to that view and since users can create their own views,
    those views would have read/write access to the column if the user has read/write access to the item.  SharePoint only supports security down to the item level out of the box and not down to the individual column level.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to make an list row Read only

    Hi All,
        Can anyone please tel me how to make the List row (list item) read only where the status column value is Submit.(i.e the whole row has to be made as readonly, am using event handler to try this out)
    Thanks in advance 

    Hi,
    According to your description, my understanding is that you want to set the list item read only based on the status column.
    If you want to do it using Event Receiver, you need to check the status column value using Server Object Model, then break role  Inheritance and rest role assignments to set the item read only.
    Here are some detailed code demo for your reference:
    Change SharePoint list item permissions to Read only programmatically
    How to: Create an Event Receiver
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to make specific cell(s) read-only in a data-grid

    Hi there!
    Is there a way to make an specific cell read-only in a data-grid?
    Best regards,
    Ciro

    Hi !
    After some months... here is the solution:
    Private WithEvents _gridTaste As DataGrid
    Private Sub MyScreen_Created()
    AddHandler FindControl("GridTaste").ControlAvailable,
    Sub(s, e)
    _gridTaste = CType(e.Control, DataGrid)
    End Sub
    End Sub
    Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
    ' I want do set the cell (2,0) as read only:
    If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
    e.Cancel = True
    End If
    End Sub
    I hope this post help you too!
    Best regards,
    Ciro

Maybe you are looking for

  • Can´t sync movies with iTunes 11.1.4 (on Mavericks 10.9.1) to iPhone 4S with iOS7. Is there a possibility to reset the sync on iTunes?

    I produced some videos in iMovie 10.0.2 and transfered they to iTunes 11.1.4. That worked so far.... After that I´ve compressed the movies for the use with iPhone and iPod .....also worked..... Then I tried to sync the movies to my iPhone4s with iOS7

  • Windows File Properties vs. Content Services Properties

    Hi. On behalf of a customer I am evaluating Windows file properties vs. CS file properties. Client Environment: Windows XP SP2, O-Drive. Rightclick a File stored on O (O-Drive, Content Services). a Props. Dialog shows up, the first tab is General*. I

  • I can't get my music after changing phones

    I can find my music under past purchases and download all, but they never show up. I have tried to sync with my computer and nothing happens either  

  • Window drawing Woes!

    I just had a major crash while using Zend Studio on OSX, which I think it is a Java application. Now, I have this heavy black bordered box drawn around every window element I focus the mouse or keyboard on in every application window, even after rebo

  • Installing Panther on Grape iMac 333

    Hi A friend bought a cheap 333 iMac and I'm trying to install Panther on it. After much effort and upgrading the firmware I finally managed to upgrade it to 9.1. I load the Panther disk and click the install. It tells me to restart to I click the res