To make a cell read-only with javascript in 11.1.2.1

I'm conditionally locking cells based on a value. This is something I have done in the past, but cannot get to work in 11.1.2.1. Here is my code. I don't get any errors, so the cell object is identified. The properties of the object exist (I think) because the definition cell.readonly = true does not cause an error. The reposting seems so called. However, nothing happens when the form is opened or modified. The function is the ONLOAD function. I checked that the closure is correct with alerts, so I know it's a loop in the correct cells.
    var r = 0;
    var c2 = 0;
    var c = currentDataGrid.startCol + 1; // account for a hidden column
    var allocPct = 0;
    valid = true;    
    // Loop through all rows except the last row, in the first column
    for (c=currentDataGrid.startCol; c<=currentDataGrid.endCol; c++){
      // Stop at the column where the account is ??????????????????
      if(listContainsName(getColMembersOfCell(r, c), "HR_Post_Number")){
        //  Now that the account was found, look through each row
        alert("HR_Post_Number found in column" + c);
        for (r=currentDataGrid.startRow; r<=currentDataGrid.endRow - 1; r++){
          // If the account has a value, make the entire row locked
          if(!isNaN(getCellVal(r,c))){
            alert("row " + r + getCellVal(r,c));
            for (c2=currentDataGrid.startCol; c2<=currentDataGrid.endCol -1; c2++){
              var cell = currentDataGrid.getCell(r,c2);
              cell.readOnly = true;
              redisplayCell(r,c2);

            }
          }
        }
      return; //exit as the column was found
      }  
    }
If anyone can tell me why the cell.readonly = true and actualize them isn't doing nothing (which means that the cell is still editable), I'd appreciate it.

Published by: user10920513 on July 18, 2012 13:19

Add the following code before the redisplayCell

tdId var = "V_" + currentDataGrid.gridIndex + "_" + r + "x" + c2; ".
var tdObject = document.getElementById (tdId);
If (tdObject! = null) {}
cell.readOnly = true;
tdObject.className = "ro";
}

Tags: Business Intelligence

Similar Questions

  • make form fields read-only without buttons

    Hi, I want to make my form fields to read only using JavaScript. I found codes below and it's work.

    My problem is, I do not read only buttons. I send button on my form. Offer other than the button

    others all the fields I want to make read-only... so please help me to do it. Thank you...

    do all the fields in a form read-only;

    var oField; variable field processing;

    Browse the form fields;

    for (var i = 0; i < this.numFields; i ++) {}

    treat each domain name;

    oField = this.getField (this.getNthFieldName (i)) .readonly = true;

    }

    PDF form javascript to read only field using the button

    This code is a little strange. Use it instead:

    for (var i = 0; i < this.numFields; i++) {
        var oField = this.getField(this.getNthFieldName(i));
        if (oField.type!="button") oField.readonly = true;
    }
    
  • Extension to make the file read-only accessible in writing

    I found an extension for Jdeveloper make a file read-only available in writing. I followed him to the page:

    http://www.Oracle.com/ocom/groups/public/@OTN/documents/WEBCONTENT/130355.XML#file.writable

    who has a download link to:

    http://www.myjavaserver.com/~rajvissa/writable.10.1.3.zip

    The file has not been found. Anyone know where I can get this?

    Thank you

    I assume that the server is offline.
    Are you sure you want to use an extension for jdev 10.1.3?
    If you are using a version of jdev other then 10.3.1 this extension does not work.

    You can easily this archive by using the tool external jdev and add a command shell with the file selected as a parameter...

    Timo

  • How to make a form read-only

    I am fairly new to the world of the creation of PDF files, and more specifically of formulas. I created a form with a number of text fields and have the form in the format I want to use. I've added the ability for users to fill in the boxes and then save the PDF file using the ' Reader Extended PDF > activate forms fill-in & Save in Adobe Reader "."

    What I won't do is allow the user to save on the master, they are open, I want that they forced to ' save under... ». Apart from make the file read-only Windows, which, I guess as will work, is there a way to force to "Save As"... "with Acrobat X Standard or reader?

    Thanks in advance

    I answered the question myself, definition of the attributes of windows to RO gives me the desired effect.

    Thanks for yous assistance try67

  • How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    Hello Jmbtexas4,

    By default, you will need to individually click on the fields of the form and check the 'read only' and save it. From now on, it is not possible to select all together and make the changes.

    -Usman

  • Make Custom page read only according to

    Hi all

    Is anyway make a personalized page for some users readyonly? I know that we can define the rendering to false for each region, but I wonder if we have a property for the entire page.

    Thank you
    KK

    Hi KK,.
    What is a 11i or R12

    If it is R12, it is easy just by passing the region where you want to make read-only or to the entire page, pass the region of high level.

    If it's 11i, you have to copy paste the code example and call it from your application process once you've done the verification of the user.
    BTW, instead of the user check, create liability and assign this responsibility to the users, and check that the responsibility to avoid all hardcode next to user list.

    Check this thread and if you are not able to do, please update the question you face.

    How to make OA framework page Viewonly
    Single page ready
    or
    http://www.applikast.NET/technical/OA-FWK/Misc/making-an-OA-framework-page-ReadOnly

    Thank you

    With respect,
    Kali.
    OSSi.

  • Requiring to make a region read-only

    Hello


    I have an area on my main page. I need to make this region as read only based on certain conditions.

    Please let me know how?


    Thank you
    Bharat

    Bharat,

    Yes, you must attach the same FATE with any article under paragraph MessageComponent.

    because u dnt has Read-only for any region. Its level of the item.

    Kind regards
    GYAN

  • Immediate refresh of the cache read-only with autorefresh incremental on group

    I work with a group of read-only cache that was created like this:

    Create group readonly TT_SOME_TABLE cache
    AutoRefresh
    differential mode
    interval milliseconds 300000
    State on
    Of
    () UNE_TABLE
    SOME_COL_1 NUMBER (11),
    SOME_COL_2 CHAR (1),
    SOME_COL_3 varchar (8) inline non-null,.
    PRIMARY KEY (SOME_COL_1));

    In normal use, the auto-refresh every 300000 milliseconds (5 minutes) is good - but in a particular scenario I want to manually force an immediate update of the Group cache from the command line.

    The following two commands in ttIsql do the trick:

    command > alter cache group tt_some_table set autorefresh State suspended;
    command > refresh cache group tt_some_table commit all 256 rows.

    However, the Refresh command issues a response message "21 cache of the authorities concerned.". This is the total number of lines, oracle holds for une_table, whereas before the update I've only updated 1 row. This makes me think that my manual refresh is not progressive. Am I wrong? On the plus side, the Refresh command switches the autorefresh return State on 'on' which is useful.

    Is there a better way to make an immediate update on a group of cache that is normall auto-actualise?. Can be done more?

    Manul LOAD / REFRESH is always a complete refresh rather than a differential (they work by different mechanisms). There is no way that I know to force an immediate refresh of incremental. You can try setting the AUTOREFRESH State pause and back to on. That could force an immediate refresh, but I have not tried so I do not know whether there will be.

    Chris

  • My computer is now read-only with my CD, why?

    When I put the CD in my computer for some reason, they are read-only.

    I have no idea how this started.  Sometimes strange before, during a few months at random when I put a CD in a command prompt would not pop up and I had to go in my computer, but it's the only other problem I've had in this area.

    The only other thing weird I can think is that I had my computer for a month or two because my power supply bit the dust.  My computer was dead in the world until about 5 days ago.  When I turned it back (with a new power cord) I started having all sorts of problems.  Windows updates keep invites me each day to day, Media Player tells me something to lose the music, since a few days it has been once my music, this problem with CDs and other things that I don't remember right now.

    I have not tried to fix it yet because I don't know much about computers and I would rather add to the problem.

    Should I sync them?

    "Are you sure you want to synchronize ' DVD RW drive (D :)". VZ7RMC03A'?

    Hi TransientSylph,

    Run the patch from the link below: your CD or DVD cannot read or write media:http://support.microsoft.com/gp/cd_dvd_drive_problems

    See also the link below:

    How to troubleshoot common problems that occur when a Windows XP-based computer cannot read a CD or DVD:http://support.microsoft.com/kb/321641

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Make the form read-only

    When I use PDF transformation, the fields that have been hidden in my form are now visible. How can I get an exact copy of the submitted form and do what he read-only?

    If I can save someone the time I spent struggling with this problem, I'll be happy. My script has been called on a change to a drop-down list event. I added the script to the initialize event of fall down as well and now it works perfectly. I tried to fix this in the orchestration, but the solution was in the designer.

  • elements of apex multi read only with the alignment problem!

    I have multi(radio,select,date,text,number) apex articles are collapse column when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    read only.PNG

    Ramani_vadakadu wrote:

    elements of the apex are collapse column, the values of the elements when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    Use the following style sheet in the page CSS Inline property:

    .formlayout span.display_only {
      display: inline-block;
      width: 20em; /* Adjust dimension as required */
    }
    

    (Please stop using free and no grammatical exclamation points in your messages. "This is not a comic).

  • How to display the note for a cell of table with javascript?

    My goal is to do it with javascript. No manipulation of the side server.

    < af:table id = "t1" >
    < af:column id = "c1" >
    < af:outputText id = "ot1" >...
    < af:clientListner ...method="showpopup"/ >
    < /... >
    < /... >
    < /... >

    ....

    < af:popup id = "p1" >
    < af:noteWindow id = ot2 >
    here to show the value of ot1
    < /... >
    < /... >


    function showPopup (e) {}
    var text is e.getSource () .getValue ();.
    var popup is e.getSource (.findComponent("::p1"));.
    now, how to upgrade the content of the notewindow?
    Popup.Show ();
    }

    Hello

    You can try with something like that.

                   
                        
                    
    
                    
                        
                            
                        
    
                    
                    
                        function showPopup(evt){
                            var ot1 = AdfPage.PAGE.findComponent("ot1");
                            var text=ot1.getValue();
                            var popup=AdfPage.PAGE.findComponent("p1");
                            var ot2=AdfPage.PAGE.findComponent("ot2");
                            ot2.setValue(text);
                            popup.show();
    
                            }
    
                    
    

    Arun-

  • Make the form read-only if a field is filled

    Is there a way to do an entire form read-only if a certain text field is filled?  I know that adding a digital signature to a form field, increases the size of the screen, so I prefer not to add a digital signature field in my form.  However, I would like the feature that says after the form is signed, it is read-only.  I have added a text box to the form and tried to add a script that read: if (this.rawValue! = "") (this.access = "readOnly"), but it did not work.  Is there a way I can accomplish this without adding a signature to the form field?

    Hello

    It depends on where you have placed the script, probably the best place is the exit event.

    if (this.rawValue != null || this.rawValue != "")
    {
         this.access = "readOnly";
    }
    else
    {
         this.access = "open";
    }
    

    It blocks only the field that the script is inside.

    You should check the example of Paul LockAllFields, which contains a function in a script object. Whereas Paul calls it a click to a button event, you could call it the output of the particular text field event.

    Re: Save form non-fillable PDF

    Hope that helps,

    Niall

    Ensure the dynamics

  • Table read-only with a LOV on VO attribute

    Hello

    I have a VO ('X') which appears as a table in read-only. 'X' has an attribute called "SubscriptionId". The value of "SubscriptionId" is a foreign key to another table called "subscription". My "Subscription" database table contains a column named "Description".

    Example:

    'X' has an attribute "SubscriptionId" = 14

    DB table "Subscription" has a line that looks like this:

    14, "A description of subscription" (where "A description of the subscription" is the "Description" column)


    I created a LOV for "SubscriptionId" on my 'X' VO, whereas it should show the value of 'Description' of "Subscription" instead of the "SubscriptionId".

    If I view my VO 'X' as a form, I can see my LOV (for 'Description').

    However, when I view my VO ('X') as a table in read-only, it is not adhering to the LOV I set on my VO and instead watch the "SubscriptionId".

    What do I need do differently on my table to show the "Description" instead of the foreign key "SubscriptionId"? I want just a text output of the Description, not a list of choices.

    Thank you

    Joel

    Hello
    In simple passerby just put property ReadOnly from the list of choices in the coloum = true
    for example

    headerText = "#{bindings." DocTransactionView1.hints.EmpId.label}.
    ID = "c2" align = "center" >

    label = "#{row." Bindings.EmpID.label}.
    required = "#{bindings." DocTransactionView1.hints.EmpId.mandatory}.
    shortDesc = "#{bindings." DocTransactionView1.hints.EmpId.tooltip}.
    ID = "soc4" readOnly = "true" >


  • How to make dynamic fields read only in live cycle Designer

    Hi people

    I created a form in livecycle WAA are. Some fields must be read from the beginning. So I put the property .access 'open '. In versions of Adobe 8 it works, but in the last version, it won't so I think this should be done via an alternative. Does anyone know how?

    Kind regards

    Anton Pierhagen

    Maybe the code below can help... The loop runs through all the pages in the PDF form and make them protected. If the user is unable to change any value in the form.

    for (var i = 0; i)< xfa.host.numpages;="">
    {
    var oFields = xfa.layout.pageContent (i, "field");
    var nodesLength = oFields.length;

    define the type of access to be protected for all fields
    for (var j = 0; j)< nodeslength;="">
    {
    oItem = oFields.item (j) var;
    oItem.access = 'protected ';
    }
    }

    Thank you

    Srini

Maybe you are looking for

  • How can I make a Cup... where I want?

    Hello. I don't understand why it does not work? In the screenshot, you see what I mean... I hope so. To the red line, I want to make a cut... but FCPX makes it to the position you see on the left. This is the beginning of this grey area... Why is thi

  • Oberon Media games does not work

    I have 2 games Oberon Media, that run is no longer. Despite having been advised to do various things by Oberon, I always get the message "launch exe - unidentified publisher wants to access your computer". When I allow it and click the 'Play now' gam

  • cliché, keeping only 3 copies

    I have a system of Small Business SERVER 2003. Some time, I raised the storage of 3259M to 142950M shadow copy. He's not using it. The site is active and the number of shadow copies is 3. What should I do to activate / use the bigger disk allocation.

  • Message States remove hardware safely

    In the toolbar, background and on the right there is a checkbox go over it and he says "probably delete material. What is this message? I have never seen this? Help, please!  I'm not irritable Lorrie Miller E-mail address is removed from the privacy

  • I disabled my own cookies and now I can't help? Windows XP and I use Mozilla Firefox?

    (Inadvertently), I disabled the cookies on my computer. Now I can't get to my Hotmail e-mail account. I went by the "tools/options/life exercise private and whatever he says 'enabled' (everything is checked).» I even restarted my computer, but nothin