Column in tabular form non-editable on update but editable on insert?

I've got a tabular form and one of the columns should be editable when one chooses insert new row but once the row is created the column should not be editable.
So I want a textfield when creating a new row and a standard report column for the rows already in the table.
Can this be done?
I really need to keep this simple (developmentwise) so it need to be done within apex's tabular form "wizard"...
Thanks in advance
Andreas

This is an alteranative way to do the same
This code has been tested by me in Apex 4.1.1
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.

Similar Messages

  • Disable column in tabular form

    Hi,
    I am working on apex4.1 ,working on tabular form . i want to disable columns in tabular form.
    I Have debit and credit column in tabular form.These columns are multiply by exchange rate.
    if i have multiplication of Debit_prod =debit*Exchange_rate then
    credit column should be disable, and if Multiplication of cr_prod =Credit*Exchange_rate
    then dr column should be disable.
    Thanks in advance.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Sep 20, 2012 4:14 AM

    Hi,
    Thanks for reply.
    I am entering the value in tabular form. As i fill debit or credit column of the tabular form,Then if value in the debit column i have entered ,then on press tab control switch to exchange rate column , credit column should not be enterable and vice versa.
    Thanks & Regards
    Vedant

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • Making an editable PDF Form non-editable (a shortcut)

    How to make a PDF form non-editable or locked.
    For those who aren't script-savvy, I believe this may be a little shortcut to editing a PDF form and then saving and sending it as a non-editable or locked PDF.
    This is what I have written out for my client, whom I provided an editable PDF Form, so they could edit the PDF and then send it out to their own respective clients as a NON-editable PDF.
    Instructions as follows:
    How to save your PDF Form into a separate non-editable PDF to send to your client: (Using Adobe Acrobat Professional)
    Step 1. Fill out the original PDF Form
    Step 2. Once finished, go to “File” menu and click “Save a Copy” - title the file appropriately and save it to the desktop.
    Step 3. Close the editable PDF document and do not save it (Saving it will save over the original file). Now open up the PDF you’ve just saved to
                        the desktop (you’ll now take the steps to make this file only non-editable).
    Step 4. In the top menu, go to “Advanced” then select in that drop down menu “Security” then “Show Security Properties” - a ‘Document Properties’ window will now appear.
    Step 5. From this new window, select the “Security” Menu.  Set your ‘Security Method’ to ‘Password Security’.
    Step 6. A new window will appear named ‘Password Security Settings’. In this menu, tick the box that says “Restrict Editing & Printing of the document”
                you’ll need to a) set a password for it,  and  b) In the ‘Printing Allowed’ drop down box, select ‘high resolution’   and if you want to, tick the
                box that says ‘allow the copying of text, images and other content’
    Step 7. Click OK and Save the document. Now it’s not editable unless you have the password.
    Note: If you happen to want to edit the PDF at a later date, you can open the file and in the ‘Security settings’ menu on the left hand side
    (the menu is represented as a little gold lock) click ‘Permission Details’ then ‘Change Settings’ to revert everything back to an editable document
    - repeat the above steps to make it a locked document again.   

    Thanks for your suggestions. You should also consider flattening a form if you want a non-editable copy; because the permissions password is not always respected by third-party PDF applications (for some people the form will remain editable, depending on what software they're using).
    Flattening a form can be done in several ways in Acrobat: you can run a script - this.flattenPages() - or print the PDF back to PDF (aka refrying), or use the Sanitize tool in Acrobat X. It also strips out hidden content associated with the form (button actions, field calculation scripts, etc.) so provides additional data protection. Sanitize is the heavy-duty option of the three; it will remove all hidden content, leaving only what you see on the page.
    One correction to your workflow - the Save a Copy menu item is not intended for creating a duplicate of a normal form, it's only available if the  form has been rights-extended and it serves to remove the extension certificate from the PDF (allowing full editing in Acrobat again). As your client is working in Acrobat they don't need a rights-extended version in the first place, and working with a normal form will make things simpler for them. In Acrobat X Pro you could create them a custom Action which automatically flattens the file and saves a duplicate, so they don't accidentally overwrite the original.

  • Mass Update Column In Tabular Form

    Hi,
    I'm trying to create a tabular form that has a mass update column function. i.e. the tabular form will be displayed as normal but at the top of certain columns will be a text box or lov and what ever is entered into those boxes will be cascaded into the empty values in that column without refreshing the page.
    Hope that makes sense.
    I've search the forum but cant find reference, is this possible.
    Thanks Andy

    Hi,
    Just wondering if anyone had any thoughts on this.
    I can get the text to populate another cell e.g.
    http://mlw-mis-2/dev/apex/f?p=174:4
    But how can i get it to reference a column, this is what I'm using to reference another item
    onKeyUp="f_getTextUpper('P4_COL1','P4_TEXT')"
    and I've tried changing the P4_TEXT to other things like
    apex_application.g_f03 (vRow)
    apex_application.g_f03 (i)
    apex_application.g_f03
    But with no luck

  • Not able to perform computation on Non Database Column in Tabular Form

    Hi All,
              I have a Master and a Detail Tabular Form which has the following requirement:
    If I choose Two Way in my Trip Type item in my Master form,the  No of Tickets field in my Detail Tabular form has to get doubled ie. 2*No of tickets
    The No of Tickets is a Display as Text(does not save state) field so I am not able to select the value of the field in jquery.
    Kindle help me with this.
    Thanks and Regards,
    Madonna

    Madonna
    I have added a true and a false action to the dynamic action disable.
    Here is the code of the false action. The action type is Execute JavaScript Code
    /*Select all input elements with the name attribute f14*/
    apex.jQuery('[name="f14"]').each(
      function(){
        var lNoTickets,lSpan;
        /*Calculate the number of tickets by getting the value and times 2*/
        lNoTickets =(this.value*2);
        /*Determine the display element*/
        lSpan = this.nextSibling.nextSibling;
        /*Set the new number of tickets to the display element*/
        apex.item(lSpan.id).setValue(lNoTickets);
         /*Set the new number of tickets to the hidden element*/
        this.value = lNoTickets;
    Because you have used "Display as text(saves state)" apex renders both an input item of type hidden. And a span element that displays the value.
    Both these elements need to be set separately. See the last two lines of the code.
    The calculation of the new Number of tickets happens for each hidden element with the name f14.
    And the span element is the second sibling of the hidden element.
    Adding a user to your workspace.
    Go to Administration > Manage Users and Groups > Create User.
    Than you don't have to share your own login credentials any more.
    Nicolette

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • How to dynamically change the column in tabular form

    Hi!
    Is there any way to show notice in tabular form if value entered is not in some range?
    eg. I click on button add row, and then I fill out values and if one value is not within a certain range then in last column (this column is not included in table) is notice out of range or something else. I know that this can be achieved with validations but this must be just notice, not some restriction. Values I wrote must be inserted into table.
    I hope you understand me. I use Apex 4.1 and 11g Oracle database.
    Regards,
    drama9346

    Sure you can. If you edit your page attributes you have a field javascript on load. Here you can enter code that does checks or actions depending of user events. Example in the case of a tabular form:
    $('input[name=f01]').live('change', function(){
    if($(this).val()=='1'){
    alert('value is 1');}
    This will give an alert if you change the item in the first column to 1.
    More about jQuery & events at
    http://api.jquery.com/category/events/

  • Displaying large column in tabular form

    Hello,
    I'm trying to display a large column (4000 characters) in a tabular form (it's NOT editable) along with 5 or 6 other not so long columns. What I'd like to do is to maybe display the first 50 or so characters and then when the user hovers over the field it displays the whole field, or maybe make it a popup LOV where the display value is the first 50 characters and then the popup displays the entire 4000 characters for that field. I'm not having any luck with that trying to write the LOV query but just get the value for the current row in the query. Does anyone have any ideas on the best way to do this?
    Any help would be most appreciated.
    Thanks,
    Mark

    Andy,
    I much appreciate the suggestions.
    I made the folllowing modification to my query:
    SELECT
    rif.coll_sequence,
    '<span title="' || rif.finding || '">...</span>' as "FINDING"
    FROM
    review_item_finding rif;
    but I get the following error when running the page:
    report error:
    ORA-01489: result of string concatenation is too long
    the FINDING field is 4000 characters. when I replace the column name finding with substr(finding,1,500) it works. perhaps there is a size limitation on the sql statement itself?
    also, when i hover over the field it looks like it's just displaying the first 80 or so characters. i don't have any carriage return/line feeds in my data so perhaps that's why only the first 80 or so characters are displayed when hovering?

  • RemoveAtt by column in Tabular Form

    Hi guys. This is my problem:
    I have a tabular with "select list" fields. I disable this fields on Load Page if pk is not null, so user can't modify value of this fields. But when I insert new row in tabular form i have an error from MRU (because select list fields are disable). So how can i remove attribute "disable" before submit pages from column with "select list" disabled?
    Thanks for help.

    You just need to modify this code slightly and have it execute on page submit
    if (document.wwv_flow.f25) { // Check to see at least one present
    var l = document.wwv_flow.f25.length;
    if (l == undefined) { // Have only one record
       var curr_id = document.wwv_flow.f25.id;
       document.wwv_flow.f25.disabled = false;
    else { // Having multiple records
       for (var i = 0; i < l; i++) {
                document.wwv_flow.f25.disabled = false;
    varad
    Edited by: varad acharya on Apr 22, 2011 6:27 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use Default value in a column in Tabular form in insertion or upda

    Hello,
    I am trying to use Default values so that user need not have to enter data, but when I select default type and put a default value, I see an error message, if I try to add a new row.
    How can I use a default value in a Column in a Tabular Form?
    Gouri
    Edited by: user1046395 on Apr 3, 2009 9:58 AM

    Gouri,
    You can just simply edit to each column's report attribute. For example,
    To set default date,
    Default Type: PL/SQL Expression of Function
    Default: sysdate
    To set default text,
    Default Type: PL/SQL Expression of Function
    Default: *'CLERK'*
    If you still have an error, what is the error message?
    Ittichai

  • PK Columns in Tabular Form not able to hide

    Hello everyone,
    I'm running Apex 2.0 on 10.2.0.1 Standard Edition. When I create a tabular form on a table with a primary and secondary key, the primary and secondary key columns appear in the actual tabular form, despite the "show" checkbox being unchecked in the "report attributes" page. Is this a bug? or am I missing something? thanks for your help.
    - kenny r.

    The wizard creates additional display-only columns with the alias PK_DISPLAY. Try unchecking the Show checkbox on that column as well.

  • ReadOnly columns on Tabular Forms (Javascript?)

    I have a question in regaurds to tabular forms. I have a tabular form set up, working perfectly. However, I want to be able to make certain columns readonly upon adding the new row (clicking new row button).
    Scenario:
    1) Go to tabular form
    2) Click add row
    3) Once the new row apppears, the columns should all be read only columns (i.e. cant type in them)
    4) Exception: There is one column, a select list, that shouldn't be readonly.
    5) Depending on which value is selected from the select list, determines which columns will be editable, or un-read-only.
    - The last step is merely a conditional. The part that is plaguing me is accessing the actual columns of the tabular form. I'm not too sure how to go about this. Would I even have to make changes to the actual AddRow() function itsself?
    Thanks for any help in advance
    sincerely, #StillLearningApexGuy

    wOW,..this example works perfectly. My javascript/jquery is a little rusty but I should be able to tweak the example for my needs.
    Thanks for the example. I am in your debt
    Sincerely #GreatfulApexGuy

  • Question about Break Columns on Tabular Form

    is it possible to have the following result on apex Tabular Form while doing Break Columns ??
    To place one blank line between departments, enter the following command:
    BREAK ON DEPARTMENT_ID SKIP 1
    Now rerun the query:
    DEPARTMENT_ID LAST_NAME                     SALARY
               20 Hartstein                      13000
               80 Russell                        14000
                  Partners                       13500
               90 King                           24000
                  Kochhar                        17000
                  De Haan                        17000
    6 rows selected.The result achieved was not as expected, the sample is hosted on https://apex.oracle.com/pls/apex/f?p=10037 demo/1234 please help
    Region Source :
    select DEPTNO, EMPNO, ENAME, JOB,MGR, HIREDATE, SAL,COMM
    from "#OWNER#"."EMP"Report Attributes :
    Break Columns - First Column

    LTaura wrote:
    what does the built-in tabular form and break functionality do ?The built-in tabular form wizard generates the tabular form report and ApplyMRU and ApplyMRD processes to handle the submitted form.
    The report renders the retrieved data values as HTML form controls to enable them to be edited by the user. The <tt>DEPTNO</tt> in from the first row in your query is rendered thus:
    &lt;input type="text" name="f01" size="16" maxlength="2000" value="10" id="f01_0001" autocomplete="off"&gt;and that in the second row as:
    &lt;input type="text" name="f01" size="16" maxlength="2000" value="10" id="f01_0002" autocomplete="off"&gt;Since these are not exactly the same (different <tt>id</tt> attributes), the built-in break formatting sees them as different values, so no report break is applied.
    However, even if this was not the case and the break was applied to give only 3 text items for the 3 <tt>DEPTNO</tt> values, the ApplyMRU and ApplyMRD processes expect a <tt>DEPTNO</tt> value to be submitted for each row, and would fail for the subordinate <tt>EMP</tt> rows where it was missing.

  • Popup window for tabular form row edition

    To edit existing or new rows in a tabular form (page 1), I would like to open a popup window (page 2) with fields mirroring original tabular form fields. So, some basic data can be viewed/typed in the tabular form and the whole of the record data are viewed/typed on a separate popup form.
    On opening popup, I pass a tabular form's current line number (filled with up to three zeros on the left).
    When the user clicks on OK button on popup page, data will be put to the corresponding tabular form row. That should allow me to get /set tab form data from popup using following syntax:
    opener.document.getElementById('f04_' + line).value
    However, when I call data-initialization javascript function on onload of the popup form, popup fields to be filled are not rendered yet. At which point (and how) could I call this javascript initialization function?
    Another question. With Firebug Inspector, I see that right in front of each tab form data tag, there is a "label" tag with the name of the column as it was defined in report attributes. As long as I have a information, opener.document.getElementById, what HTML/Javascript syntax should I use to get to this label tag?
    Igor

    OK, the first part of question is OK now. Simply, I was putting a javascript code calling my initialization predure in the HTML Body Attribute section of the page, instead of simply writing there: onload="initFunction();"
    The second one stands still: once I have a tabular form's element id like f20_0003, how can I get to the symbolic name, e.g., "FIRST_NAME", that is in the label tag in the same table cell?

Maybe you are looking for

  • MBP RAM issue

    Hello, I recently upgraded from leopard to snow leopard and love it, it was not until today i looked at my activity monitor to check out how things are doing. I am on a 13 inch MBP with 2 gigs of RAM and 160 gig hard drive. It was today that i notice

  • I trying to chat with some friend on zoosk I have a ipad

    I have a iPad and I'm try to chat with some friend on zoosk but I can not chat with them

  • DEAR GOD I NEED HELP (Find my iPhone)

    DEAR GOD I NEED HELP! A story about a boy and his phone Okay, so. Before I get started, I will provide you fantastic readers with a small amount of background information. The intent of this is so I only have to explain myself once, you dig? Anyway..

  • Service PO and Service Entry Sheets Question

    Hi Guru, I need some advice on the following questions in service PO and service entry sheets. 1) How can i change the default unit of measure in service PO? where is this in customizing? 2) How can i turn off the message "No message record could be

  • Frm-99999 error

    hi everybody i got a java error "java.lang.noclassdeffounderror" while trying to open my static web page using the internet explorer v4, i'm using OAS 4.0.8.1 and oracle developer server ver 6.0.5 installed on one machine called my_app_server , my or