Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Making Tabular Form Non-Editable in Update Mode

MadonnaNov 21 2013 — edited Dec 3 2013

Hi All,

          My requirement is to make the Tabular Form Non-Editable in Update mode but when I insert a new row in the update mode I must be able to edit the Tabular Form fields of the new row.

So I looked through the forum and found the below solution which is supposed to have worked in APEX 4.1 but I am using APEX 4.2.2.00.11  and it doesn't seem to work for me .

Here is what I followed as per another discussion's solution:

"Step 1 --> Create a Java Script and add it to the JavaScript --> Function and Global Variable Section

One Can get the name by using Right Clicking on the PK field in Chrome and Selecting Inspect Element


function ro()

{    

    var pk_id = document.getElementsByName("f02");

    for (var i=0;i<pk_id.length;i++)

    {

      if(pk_id[i].value!="")

      {

           pk_id[i].readOnly = "readonly";

      }

    }      

}


Step 2 --> Create a Dynamic Action

Select Advanced

Select the Event --> Framework Events -->After Refresh --> Region --> Select Your Tabular form Region

Condition --> No Condition

True Action --> Execute JavaScript Code

In the Code box type javascript:ro()

The box will only make the Existing Rows RO, When one presses the AddRow as the region is not refreshed the user is able to add new data in the text field.

Works with Delete and Cancel as well."



Can someone help me out with this?

Thanks and Regards,

Madonna

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2013
Added on Nov 21 2013
13 comments
1,124 views