Unable to make Quantity Column Read-Only in PO Lines in R12 iProcurement

Hello Everyone,
My Requirement is if a PO is coming from a requisition and it has Requisition Number populated in PO Distribution, I want to make Quantity column Read only in the PO Lines. This column can be updated for all the lines in standard page by clicking Update button(which makes Quantity enterable).
I have tried following using SPEL Binding. But it seems SPEL Binding is not working as expected. I am pasting the code below :
I have created a Transient Attribute of Boolean Type in the VO and have placed it in SPEL Binding for the Quantity Bean. On click of Update button I am conditionally setting the transient VO attribute to False.
if(oapagecontext.getParameter("UpdateButton") != null){
super.processFormRequest(oapagecontext, oawebbean);
OAViewObject vo=(OAViewObject)am.findViewObject("PoDistributionsMergeVO");
String x=(String)vo.first().getAttribute("OnlineReqNumber");
OAMessageTextInputBean msgTextBean = (OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("QuantityOrdered");
Row row=vo.first();
if (x!=null) {          
do{
row.setAttribute("QuantityRendered",Boolean.FALSE);
row=vo.next();
}while(row!=null);
Thanks in Advance,
Abhishek Mishra

Abhishek,
Your code seems pretty fine. There are few things
1) Post the Spell, which you have attached with the rendered property.
2) Had you initialized your VO (where your transient variable exists).
For a work around i would suggest you to create a new VO and create a transient variable. Now try the same using this VO.
Regards,
Gyan

Similar Messages

  • 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 a cell/column read only

    HI All,
    Is there any way to make a specific cell read only with in a specific data form?
    Similarly is there any way to make whole column read only inside a specific data form?
    I don't want to make changes in my dimension member (e.g Dynamic Calc), i want to make these changes at data form level because, these cell/column are read only at one form but on some other data form they are editable/enterable

    If you want to make a column read only then have a look at asymettric columns in the planning admin doc, if you use them then you can make one of the columns read only.
    If you want a make one cell read only then one method could be to use javascript, you could add an extra member which is dynamic calc and point to the original member with a formula but it doesn't sound like you want to do that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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)

  • Make Sticky Notes Read-Only After Creation?

    Hello,
    I am wondering if there is a way to make sticky notes read only after someone has created one?
    I have a form that we want people to add comments to but we don't want anyone to be able to remove those comments.  Possible?
    Kristi Tost

    Resolved it : in click event javascript
    ADOBE_DATA.form.field.access = "readOnly";

  • Make USB mount read only.

    Hello again,
    I am looking to make any USB mounted devices read only by default. Is there a way to do this in Leopard?

    Greetings,
    While you can make a USB device read only, you can't make a port read only. There are ways to disable a USB port, but that's about it.
    You can also use a OS X Server and with it, you can deny access to the device, but to make it (the port) read only, I don't think that's possible with any OS. You could mark the internal hard drives read only, as well, but that would be a major pain.
    I have hundreds of machines, and the open labs are the only ones I disallow the use of USB devices for security reasons, PeeCee or Mac. Using the OS X Server, we can apply restrictions, as I do with Active Directory for the PeeCees.
    Cheers,
    M.

  • Received error message 213:11 upon installation of CS5.1 upgrade in Windows 7, unable to change SLStore to read only as administrator

    Received error message 213:11 upon installation of CS5.1 upgrade from CS2 in Windows 7, unable to change SLStore to read only as administrator as suggested elsewhere. SLSstore reverts to read-only after changing, applying and clicking OK. Same problem after reinstallation.

    Gregconn please see Error "License store does not allow writing" | Install log | CS5, CS5.5 for information on how to resolve error 213:11.

  • Unable to open database in READ ONLY mode

    When trying to open database in READ ONLY MODE it says needs recovery. How ever database opens succesfully in READ WRITE MODE.
    1) Startup mount
    2) SQL> ALTER DATABASE OPEN READ ONLY;
    ALTER DATABASE OPEN READ ONLY
    ERROR at line 1:
    ORA-16005: database requires recovery
    But database opens succesfully when opened in READ WRITE mode.

    user12038051 wrote:
    When trying to open database in READ ONLY MODE it says needs recovery. How ever database opens succesfully in READ WRITE MODE.
    1) Startup mount
    2) SQL> ALTER DATABASE OPEN READ ONLY;
    ALTER DATABASE OPEN READ ONLY
    ERROR at line 1:
    ORA-16005: database requires recovery
    But database opens succesfully when opened in READ WRITE mode.
    sqlplus '/as sysdba'
    shutdown imediate;
    startup;
    shutdown imediate;
    startup mount;
    recover database;
    alter database open read only;

  • Can you make some columns Read/Display Only in DataSheet view?

    I noticed on another posting what appears to be a datasheet view with 3 of the columns in a display mode. Can someone confirm if this is possible?
    Here is the original posting.
    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationprevious/thread/4fa70a67-06e6-44e0-a2fe-94b1707a400a/
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Hi Stunpals,
    This always happens on the column type Multiple Lines of Text .
    And certain columns, such as Created By and Modified, are always read-only. Values for these columns are entered automatically.
    When you open the list in datasheet, click on one the column, if it’s read only, you will see read only in right bottom corner.
    For more information, see
    http://devblog.bardoloi.com/2012/08/sharepoint-2010-datasheet-view-selected.html
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Upload data to excel sheet- make columns read only

    I would like to upload my internal table data-10 columns into excel sheet.
    I know how to upload my data into excel sheet.
    I want 2 of the columns in excel sheet to be read only out of the 10 columns.
    Is there any way that i can control the properties of excel sheet from SAP.
    Thanks in advance

    done

  • 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

  • SQL Query (Updateable Report) conditionally set a column read-only with lov

    Hi
    I'm attempting to set a column that has a select list lov read-only if there is existing data in the column otherwise permit the end-user to enter a value using the select list.
    I've looked at Re: A better method of handling tabular forms with variable column type? and using this code as an example it almost works, except the select list lov button is still active and therefore the data can be changed. How does one conditionally disable the select list lov button in Javascript?
    TIA

    In the JS code where you make the field readonly, add another line to hide the lov opener link ( in jQuery it would be *$('<selector>').hide()* ).
    If you can provide the HTML code from your page for such a column (the JS code would depend on the template/theme), I can try helping.

  • 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

  • Make CA database read-only?

    Is it possible to make Firefox not accept any new Certificate Authorities without user interaction?
    Long story short, I have having a problem where Firefox is adding a CA to it's database that is hosing things up. The actual problem is with the cert that is being offered to me, and I am working with that system owner to fix the cert, but in the mean time I would like to have Firefox not ever load the CA into it's database. This new CA is added without the user being prompted at all. Simply visiting a specific website causes this new CA to be added to the list (but again, not trusted, just added to the list).
    By default when it is loaded the new cert has no permissions so it is not trusted, but the problem is the fact that the CA that is added is a duplicate name with another known good CA in my list and it causes things to go wacky when there are two with the same name (different signatures, different issuer, the only thing the same is the nickname).
    I know this isn't a problem with Firefox directly. In 99.9999% of cases when it adds an additional CA to the list it doesn't cause a problem at all because it is not trusted and it won't inherently allow the secure connection. But since fixing the real problem with the owner of the website is going to take a long time (weeks/months) I would like to put a band-aid on the symptom so that I can cut my maintenance of this topic down greatly.
    I am running Red Hat Enterprise Linux 5.9 with Firefox 10.0.12 (RHEL distributed Firefox).
    I could go into extreme detail to explain what is causing my problem, but the short question I have is "Is there a way to make the CA database read-only"?
    I have tried editing the permissions of cert8.db in ~/.mozilla/firefox/*.default/ to only be readonly (0400) vice read-write (0600) currently. However this causes Firefox to have kittens when I try to use anything that reads the CA list so I had to change it back.
    I have a hacky script to remove the CA using certutil, but since certutil uses the 'nickname' of the cert to decide which one to delete, and both the good cert and the bad cert have the same nickname I get worried I'll blow away the good one and not the bad one. So far it has consistently matched the bad cert, but I don't have enough confidence that it will do that every time to push it out to my users. If I could use certutil -D with something more specific than nickname (fingerprint, signature value, etc) I would be OK with that as well.
    I know there are options to restrict user changes to things like proxies and the such, is there a similar way to do it with CAs? about:config doesn't appear show anything that looks like it would do it.
    Can I have it prompt me when it tries to add a CA to the database and allow me to say yes/no?
    I am OK if the change is something that requires manual intervention if we do decide to add another CA to the list. Currently I am having to repair this problem multiple times a day and new CAs don't come all that often.
    Unfortunately, I can't simply upgrade to the latest Firefox as software restrictions are in place. I'm open to any ideas you may have.

    Seems unlikely two unrelated CA or sub-CA certs would have the exact same issuer name. Was the name too generic? If they actually related and I assume created by your organization perhaps you could simply add the "Integration CA 456" certificate to your root store -- assuming you trust it.
    Firefox validates certificate chains by looking up issuers, and in case of duplicates by default it grabs the one with the most recent "Not Before" date. There is a newer algorithm under development that won't stop at the first match but will continue to trying intermediate combinations until it finds a match or runs out of options. If you'd like to try it you need to add the boolean preference "security.use_libpkix_verification" and set it's value to true. This pref will not appear in about:config by default, but you can right-click in about:config to add it.

Maybe you are looking for