Read only column in tabular form

There is a not null column ( say SEQ) in a tabular form that is getting an auto value from other process. 2 more columns need user input on each row.I need to make this column(SEQ) as read only.
If I make this column (SEQ) as standard report column then when I submit the newly added row , I always get ORA-20001 error- can not insert NULL into SEQ.. even though I can see there is a value there. Switch ithe column back to text field, the insert went just fine .
How do you solve this read only column issue ?
Thanks a bunch for your help.
Tai

thank you for your reply.
Nope, SEQ is not the first column. Primary Key is and I leave the pK alone.
When I press ADDROW button , tabular form is like the following: ( table alreay has 2 rows), I auto populate SEQ column and I like to make this SEQ column display only.
-- represents checkbox
PK      SEQ      col1           col2
--     1     890          test1
--     2     675          test2
--     3     

Similar Messages

  • 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

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

  • 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

  • Error - Failure inserting into the read-only column "Adj_ID".

    I received the error messages while importing data from one DB to another.
    Validating (Error)
    Messages
    Error 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column "Adj_ID".
     (SQL Server Import and Export Wizard)
    Error 0xc0202045: Data Flow Task 1: Column metadata validation failed.
     (SQL Server Import and Export Wizard)
    Error 0xc004706b: Data Flow Task 1: "component "Destination 2 - Adjustments" (271)" failed validation and returned validation status "VS_ISBROKEN".
     (SQL Server Import and Export Wizard)
    Error 0xc004700c: Data Flow Task 1: One or more component failed validation.
     (SQL Server Import and Export Wizard)
    Error 0xc0024107: Data Flow Task 1: There were errors during task validation.
     (SQL Server Import and Export Wizard)

    >> Failure inserting into the
    read-only column "Adj_ID". 
    The error message is very clear(inserting to readonly column). Are you inserting data to  Identity or calculated column
    Satheesh
    My Blog

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

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

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

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

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

  • Failed validation highlights entire column in tabular form

    Hi,
    I have a tabular form where one of the field is a date field. I need to ensure that that the date selected or entered falls in the correct range of another page item P6_WEEK_ENDING. Here is my code.
    DECLARE
         last_week_fri      DATE;
         this_week_fri     DATE;
         in_range NUMBER:=1;
         ret_bool BOOLEAN := TRUE;
    BEGIN
         -- Get current end of week ID
         this_week_fri:= CONVERTDATE2(:P6_WEEK_ENDING);
         SELECT CONVERTDATE2(this_week_fri-7) INTO last_week_fri FROM DUAL;
         FOR i in 1..apex_application.g_f03.count LOOP
              IF apex_application.g_f03(i) IS NOT NULL THEN
                   CASE
                        WHEN CONVERTDATE2(apex_application.g_f03(i)) >= CONVERTDATE2(last_week_fri) AND CONVERTDATE2(apex_application.g_f03(i)) <= CONVERTDATE2(this_week_fri) THEN
                             null;
                        ELSE
                             in_range:=0;                    
                   END CASE;
              END IF;
              if in_range != 1 THEN
                   ret_bool:= FALSE;
                   EXIT;
              END IF;          
         END LOOP;
         return ret_bool;
    END;Where
    convertdate2 takes date format and outputs date in dd-mm-yyyy format.
    apex_application.g_f03(i) is the date field.
    Now it all works well except when my validation fails, it highlights the entire column instead of highlighting the only the bad entries.
    I have my execution scope as : Created and Modified Rows, tried changing it with no luck.
    Many thank.
    Environment: APEX.4.1.1 using Sand theme

    Taepodong ,
    I assume this is a validation. When you first created the validation, you either selected a page item or tabular form. If you selected the latter, you then selected the tabular form to which the validation would apply. On the next screen, you were asked to "Identify the validation level:" I am guessing that, at that point, you selected "Tabular Form Row" rather than "Column" The former will highlight the entire row, while the latter will only highlight the column which was specified.
    -Joe

  • Read only columns in Planning Webform

    Hi All,
    I have build a form with Period (months jan, feb and Mar) and members of Custom called Type dimension in Columns.
    The members in Type dimension I have selelcted is Type1, Type1 Adj, Type2,Type2 Adj.
    My requirement is that I want to show Type1 and Type2 Columns as READ ONLY where the users should not enter any data in those two coulmns.
    Is there any way to achieve this requirement.  I am using Planning 11.1.2.2 version.
    Any suggestions would be appreciated.
    Thanks in Advance

    Hi,
    Please follow the below steps to make particular columns as read-only in Hyperion 11.1.2.2.
    1) Open the form in Edit mode
    2) Click on the Layout tab, once layout tab is opened. Please click on the below Column which you want to make as "Read-only" (A, B, C etc), if you have three columns then you could see A, B and C.
    Note: Mouse Cursors are very sensitive in latest version, if you click on the right place only, you will get the required proprieties, otherwise it wont show any properties.
    In this example, am going to make Column B as read only. Exactly move the cursor on "B" and click, in the right hand side, you could see lot of properities, click on "Segment Properties" and under that option as "Read only", select that check box to make column as read only.
    Thanks,
    Prakash

  • Setting default value to columns on tabular form is not working.

    Hi,
    I created a tabular form and i want to set some default values to columns based on the values in page items.
    so i set the page item to column value in tabular form attributes by selecting the Default type as PLSQL Expression & Function DEFAULT value &P24_ISSUE_ID. it worked fine but
    in the similar way i tried for the another column by selecting the default type as pl/sql expression & function and default value &P24_CASE_NAME.
    but it throwing an error for this like failed to parse SQL query:    ORA-00904: "C254DB": invalid identifier
    i don't understand where i gone wrong even i checked for the data types of the columns, everything is fine.
    so please help me out of this problem.

    Tulasi 1243 wrote:
    for the first column
    i selected
    DEFAULT TYPE as PL/SQL Expression & FUNCTION
    Default as *&P24_ISSUE_ID.* This is a number data type column
    2nd column
    Default Type as PL/SQL Expression & Function
    Default as *&P24_CASE_NAME.* This is Varchar2 data type column.The appropriate options for a default value from a page item are Item (application or page item name) for Default Type and the item name ( P24_ISSUE_ID, P24_CASE_NAME etc) for Default.
    *&P24_ISSUE_ID.* is not a "PL/SQL Expression or Function".
    but it throwing an error for this like failed to parse SQL query: ORA-00904: "C254DB": invalid identifierWhat you are doing results in the APEX engine substituting the P24_CASE_NAME value "C254DB" into the default value and then trying to evaluate this string as a piece of PL/SQL. Outside of a block in which it is defined as a variable, constant or function "C254DB" is not a valid PL/SQL expression.

  • JQuery format mask for date columns in tabular form

    Hi,
    How can I apply jQuery format mask for date columns in a tabular form?
    Thanks.
    Andy

    OK, I realized I didn't choose the default type as "Pl/SQL Expression", now it's working correctly.
    Thank you very much!

Maybe you are looking for

  • How to connect DMS to the Solution Manager

    Hi, I have a DMS system in our SAP Landscape. I like to monitor this system in our Solution Manager. After installation and registration of the DAA agent in the Solution Manager I can see the host,but I do not see the DMS or the SAP MAX DB. How do I

  • Recording/exporting to quicktime

    Is the function of recording a Keynote show with timings and transitions completely garbage when exported to Quicktime? When I export, it seems that most of the transitions are lost. Is there something I'm missing or is this just broken? I need to fi

  • Important Note: Skype Manager Message Board

    Dear Readers, Welcome to the Skype Manager message board!  "Skype Manager" is the name of one of Skype's business products.  Skype Manager offers a simple way to manage Skype in your business.  This message board is reserved for users of Skype Manage

  • Read the pdf file from the Third party server.

    hi all, we got the requirement that we have to display the salary statement and form16 in the portal. we are not using the sap for the pay roll. pay roll will run by the third party....they will keep all salary slips in the one folder under the serve

  • Netgear and my mac, and a suggestion to reinstall OSX

    Newbie to all things mac. I have a new Macbook pro15 using OSX 6.5 I have been on to suupport twice as the airport can see my network, but keeps forgetting the network settings and defaulting to the self assigned IP address. support have walked me th