Render column read only after save in advanced table.

I have advanced table in my region. Right now, I have col1 & col2 both messageinputtext and adding new row works,
This is what I want to do :
When page loads, render col1 read only, (right now it pulls in data, with col1 as text field, I dont want the user to change data in col1, once he has saved it)
When user presses addRow button in table footer, it adds a row with col1 as input field, but when user is done inputting and clicks 'apply changes' button , col1 in all the rows become read only.
how can I do it programatically ?
thanks

Now You have to capture the logic of AddRow button. Say you are handling its logic in AMImpl.
PFR of Controller:-->
processFormRequest
if ((table.Bean.getName().equals(source)) && (ADD_ROWS_EVENT.equals(event)))
// invoke method on view instance that will add 5 rows
In AMimpl:-
if (vo.getFetchedRowCount() == 0)
// We want to initialize the VO with the call to setMaxFetchSize()
// only before we add the first row. If we add subsequent rows,
// we don't want to call this again, which is way it's enclosed
// in the IF check.
vo.setMaxFetchSize(0);
// Perform insert
Row row = vo.createRow();
vo.insertRow(row);
// If this view object is transactional, you must also comply with
// Model Coding Standard M69 by setting the new row state to
// STATUS_INITIALIZED. Note that there is no harm in including
// this line of code in non-transactional view objects if you
// find it easier to follow a single coding pattern for all your
// view objects.
row.setNewRowState(Row.STATUS_INITIALIZED);
vo.reset();
vo.next();
Here try to do like this
OARow row = (OARow)vo.getCurrentRow;
OAViewObject pVO = (OAViewObject)findViewObject("macsfaqPVO1");
OARow poRow = (OARow)pVO.getCurrentRow();
poRow.setAttribute("QuestionColFlag", Boolean.FALSE);
Thanks
--Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • 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

  • Make a field required on record creation, read only after that

    Hello,
    Does anyone know of a way to make a pick-list field required on record creation, but read-only after that? The other twist to this is that we need to allow this field to also be read-write for all the integration edits, since this field's value could change in the enterprise database.
    Thanks,
    Neal G.

    Hi !
    I think you can add a validation rule for that. Something like :
    IIf(PRE('<YOURFIELD>') IS NULL, <> '', = PRE('<YOURFIELD>'))
    This means that if the previous value of your field is null (it's a creation), so the value must be different than blank. Else, it must be equal to the previous value, so not modified.
    I didn't tested it, but I let you get back to me if it works... or not !
    You'll just have to add a message saying that this field is required on creation and readonly after...
    Hope this will help, feel free to ask more !
    Max

  • Word 2010 document becomes Read-Only after saving it

    Hi,
    My Word 2010 document is becoming "Read Only" after saving it, for information my doucment is on the desktop . I searched on this forum and find a couple of solutions (deactivating auto saving, etc.) but it does not work at all. Any other ideas?
    Thanks,
    Sylvain.

    , I wonder why the docuemnt is becoming Read-Only when I am saving it on the Desktop...
    I've read articles and blogs of people arguing each side of whether you should use the Desktop as a storage folder and I really
    don't have anything substantial to add to either the pro or con side of the issue.
    However, what I know about Word is that it behaves a bit different and seems to have issues when you’re actively editing document that are stored
    on the Desktop.  I would speculate that the issue has something to do with the screen driver software.
    When you’re editing a document, Word is actually using something like a dozen or more temporary hidden files and some of these are stored in the
    same folder as the source document. If the source document’s folder is the Desktop, then there has to be interaction with the screen driver. 
    This interaction with the screen driver is one variable that makes the Desktop folder unique and possibly problematic and thus Word under certain conditions
    makes the file Read Only.
    Kind Regards, Rich ... http://greatcirclelearning.com

  • How to make fields read only after form is filled in

    I am creating forms to be used within our company.  The customer srv representative (CSR) would fill in the form and send it to the customer for signature and initial.  There are a few issues I can't solve.
    1)  I need to make the rate & services fields read only after the CSR initials the form

    Will the CSR have Acrobat or just Reader, and what type of computer will the CSR be using (Windows/Mac/mobile OS)? If just Reader (Wind/Mac), this is possible by setting the fields to read-only with JavaScript. The problem is this can't be considered secure, even if using a password as discussed here: Password-protect and hide one form field
    With Acrobat you have the ability to flatten certain fields, which makes it a bit more difficult to change the "fields".

  • Changing a Record to Read-Only after an event.

    I have a Developer application that needs to be modified. This
    application includes several fields as well as a comments
    field. I'd like to change all updatable fields (not to included
    the comments field) to READ-ONLY after a certain event. Then
    after a certain date, I'd like to make the comments field READ-
    ONLY.
    Do you have any suggestions?
    Regina Grimes
    919/874-3140
    null

    Dear Regina,
    Have you tried to set_block_property in pre-record trigger to update allowed/not allowed depending on the event. And in post-record update not allowed. These triggers must be on block level. Also on item level to the item 'Comment' define pre-item trigger where take a new decision whether you want to open the entire block or not, the same way as on block level triggers. But in post-item trigger always make the entire block read-only again.
    Regards
    Jan Kramle

  • Make all text fields read only after signing form

    Hello,
    I have a live cycle form which needs to have all of the text fields set as read only after signing.
    The java script has been placed in the post sign event of a digital signature field.
    for(var i=0;i<this.numFields;i++) {
    var cNm = this.getNthFieldName(i);
    if (cNm.type = "text") this.getField(cNm).readonly = true;
    After signing the form the following console error is shown:
    this.getNthFieldName is not a function
    Can anyone please advise how to revise the script so that when the form is signed all of the text fields become ready only?
    Any assistance will be most appreciated.
    Thank you.

    You don't need any JavaScript to do this.
    In Designer you can setup the signature field in that way, that all fields will be locked after signing.
    Look here:
    http://forums.adobe.com/message/3121870?tstart=2

  • Firefox profile folder becomes read-only after closing browser

    firefox profile folder becomes read-only after closing browser
    It is a problem with firefox or is it this to to a virus?
    How to fix? How to prevent?

    Only a check mark in the Read-only box means that a folder or file is Read-only.<br />
    Windows doesn't check all the files in a folder so instead displays a greenish block to indicate that it is not sure.<br />
    You need to look at the files individually to see if any are read-only.<br />
    Easiest to do that is to make the Attributes visible in "View > Details" mode: Choose Details in Windows Explorer.<br />

  • Make adobe form -read only after Submit button

    Hi,
    I have an Interactive form withuser input fields.
    I am submitting it via E-mail.How do I make it read only after I click Submit ?
    I am using javscript for sending e-mail.
    rgds
    vara

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

  • 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";

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

  • Read-Only Access to Specific SAP tables

    Is it possible to grant a user read-only access to a specific table or tables?
    For example, say I wanted to give someone SE16N capability for just EKKO/EKPO/EKBE and NO OTHER tables.  Is this possible?  How?
    Thanks.

    Hi,
    as it was mentioned the transaction SE16N checks for authorization object S_TABU_DIS. The problem in your case is that the tables EKKO, EKPO and EKBE are already assigned to the authorization group MA - MM Appl. table. But there are many more tables assigned to this group. Changing assignment of standard tables is not a good idea.
    Cheers

  • Script for Acrobat Reader to save as read only after filled out.

    Hi
    I have created a work proposal form to be filled out with an estimate of work to be done and the cost.
    Is there a script that will then let me save the form as read only so recipient can not make any changes?
    Ron A

    Thanks GKaiseril
    I found this in the forums from a previous post by try67
    It works perferctly.
    However in his post he left off the last bracket }
    for (var i=0; i<this.numFields; i++) {
    var f = this.getField(this.getNthFieldName(i));
    if (f!=null && f.type!="button") f.readonly = true;
    Ron A

  • Is it possible to circumvent read-only after a pdf has been signed?

    Hi, my pdf has a signature field.  In the signed event I have make all fields read-only.  Is it possible for someone to come along and make them not read-only anymore?  It seems the easiest way to make my document tamper-proof.  Thank you.

    goodprogramming wrote:
    It's not the file that is set to read-only at the OS level.  The signature field has an event for signed.  Once that occurs I have the checkbox selected that says mark all fields as read-only.  I want to be sure it is really read-only and that there is no way to make it non-read-only.
    save as does not change the read onlyness of the pdf.  I have tried this.
    It shouldn't matter.
    Making changes to the file after the signature is added will invalidate the signature. You'll know someone has been messing around if the sig is invalidated.
    Even if you have a reason to do what you want, you can't. At least not without a very expensive Digital Rights Management solution plus a server to run it.

Maybe you are looking for

  • There is double quantity in the sales item report?

    Hi all, I have created an infoset with sales order item and delivery The issue is there is one sales order item with qty 10 but because it was delivered on different dates with different quantity like 5,5 the report show likes sales order item       

  • Can i install Office for Mac on my IPad ??

    Can i install Office for Mac on my IPad ??

  • Can I shuffle within a playlist?

    I have many gigs of different kinds of music on my iPod touch. What are the limitations of shuffle? I know iPod doesn't recognize folder 'categories' of music, like classical, jazz, etc. But am I able to shuffle (by shaking, I guess) within a given p

  • Safari keeps crashing.  Right after Maverick upgrade.  Crash report:

    I've began crashing when opening Safari.  Happened right after Maverick upgrade and Java install, but not sure if it's related.  Anyone have any suggestions? Thank you!!!! Process:         com.apple.WebKit.WebContent [381] Path:            /System/Li

  • Valuation Type in Price Change

    Hi all My user wants to do Price Change, MR21. System urged to fill in Valuation Type field but there is no value for the particular material. Is there any idea why it happens. Thanks in advance az