disabled the columns writing null in DB

Hi all
I have an im app building and there is a tabular form with a few pairs of columns, one column is a code and the other is a description.
I have LOV popups that populate the description based on the chosen code.
What is now everything works really well.

Then I disabled all the fields of description in tabular form (for 25 displayed lines), the surface looks like a lot.
the user selects the code from the context menu and the changes of the description. and the description cannot be changed.
but when the user clicks on the button submit, these fields of 25 description is written with the NULL value to the database.

is this normal?

I just need to activate the fields again before submitting? or is there a better way to do it?

Thanks in advance
Ryan

Hello

One way is to change your button to submit measures for "defined by the dynamic Action.
Then create a dynamic action that fires on your submit button click event.
In dynamic action, first enable you items and then submit.

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • Disable the column in a table.

    Hello

    How can I disable column in a table.
    in collaboration with 4.1 and I Assistant founded in table form.

    If I entered the value in a column second column must disable and vice versa?



    How can I do this?



    Thanks and greetings
    CORINE

    CORINE wrote:
    Hello
    Could you help me to write the code. My column in a table are 13,14,15,16

    If I type in field 13 then 14 and 16th column should turn off and
    If I go should disable the value in field 14 and 13 and 15 column.

    How can I do this?

    Thank you & best regards
    CORINE

    I have not tested this code; but the following may be your approach:
    In the field 'Attributes of the element' of column 13, you can call a javascript function:

    onblur = "javascript:updateCols(this);"
    

    In your browser, right click on each of your columns (one at a time) and select "inspect element" to check the attributes of the HTML element. Assuming that column in the form of your table 13 is rendered in the HTML like f13, 14th column as f14, 15 columns as f15 and 16th as f16, write this JS function in the HTML page header:

    
    

    The JS function above is triggered when the user moves out of column 13. The function then checks the length of the value entered by the user in column 13. If the length is greater than 0, it disables the columns 14th and 15th. Otherwise, it allows them.

    The code above is for your first scenario:

    If I get home should disable the value in the field column 13 then 14 and 16

    You can do the same for the other scenario.

    Hope this is clear. Or otherwise, give me access to your workspace and I try the here above.

  • Disable the column key functional for an individual of forms

    Hi all

    I have a block of multiple registration details in my form with fields (type, point, wt, vehicle number etc.). Keys are already scheduled for functional use as f3 to copy.

    In my form, I want to use the copy function to get to the fields as type, point, wt, but not for the vehicle number column. IE type, point, maybe same wt columns but number of vehicle may not be same (according to customer requirement). They will not accidentally copying the same number of vehicle.

    For this I need to disable the copy (F3) function for this vehicle only number column.

    Is there a workaround for this...

    My version of the form is 10g

    Thanks in advance

    Concerning

    JaKes

    the KEY-F3-trigger has nothing to do with the F3 function key. In client-server F3 is associated with the DUPLICATE_ITEM function, so you should use the KEY-DUPITM-trigger.

    Also, if you implement a release BUTTON, it replaces the functionality by default, so you must manage the service for yourself.

    As for the OP functionality should just be deleted at one, the simplest solution is to create KEY-DUPITM-relaxation so precise and simple insert a value that is NULL. inside.

  • Impossible to disable the column "Preview" in the Finder Windows

    Before that I describe this problem, I just want to clarify that I have configured Finder to always open folders in a new window, and while some of my files are put into mode icon that the majority is set to display in the list.

    Following an upgrade to Yosemite to El Capitan, some of my Finder list view windows began to show the column "Preview" on the side of the far right, after the date modified column. I don't like this feature because when none of the folders or items are selected it shows just a ugly "blank" space in the window. So, I quickly discovered that I can disable this "Preview" column by selecting "hide the Preview" in the view menu.

    The problem is that once I chose this, in many of my files change does not stick. After a reboot or a restart, I'll go back to the window and the preview column is again. Sometimes it happens immediately after closing the window and opening it again. The worst culprit is my user folder.

    I tried selecting "Hide Preview" and then enter the display options and set as the default view for all Finder Windows, but this makes no difference.

    Anyone know how to disable the overview at all times column in all the windows in the Finder?

    This is what it looks like in my folders set to display from the list:

  • SET COLSEP does not insert character if the column is null or empty - please help

    Hello experts,
    This is probably a question of beginner and I can't seem to find the answer. I train at the output of the coil of a simple SQL query to a file .txt or .csv using colsep as the column separator that prints fine except when there is a column value empty. Here is my SQL:
    recsep off Set
    set linesize 240
    NewPage 0 value
    set pagesize 9999
    the value of colsep «;»
    BREAK ON JUMP MESSAGE_SET_NBR 1 ON LAST_UPDATE_DTTM
    Select D.MESSAGE_SET_NBR, S.DESCR, D.MESSAGE_NBR, D.LAST_UPDATE_DTTM, D.MESSAGE_TEXT
    PSMSGCATDEFN D, PSMSGSETDEFN S
    WHERE
    D.MESSAGE_SET_NBR = S.MESSAGE_SET_NBR AND D.MESSAGE_SET_NBR BETWEEN 999 AND 19999
    ORDER by D.MESSAGE_SET_NBR, D.MESSAGE_NBR ASC, S.DESCR
    Here is an example of the data that are generated. The missing splitter really screw up my spacing outfile. Please note the last line that is missing from the colsep the missing date.

    18177; Applicant tracking messages. 2582; APRIL 13 07; Some applicants, %1, do not have an email address in the order
    ; Applicant tracking messages. 2613; 7 FEBRUARY 07; Rejected candidates
    ; Applicant tracking messages. 2614; 4 APRIL 07. Select the employee to whom the plaintiff is routed
    ; Applicant tracking messages. 2615; 7 MARCH 07; The name of this source is in use.
    ; Applicant tracking messages. 2616; JULY 2 09; Subsource name is in use.
    ; Applicant tracking messages. 2617; 12 OCTOBER 10; Jurisdiction is not specified for one or more skills.
    ; Applicant tracking messages. 2618; Please enter a value in the field before continuing.

    Thanks in advance for your help!... Jason

    Published by: user957626 on June 16, 2011 14:40

    Hi Jason,

    Welcome to the forum!

    Usually, when you go to waiting a .csv file, you want to concatenate the columns together as

    select empno || ';' || ename || ';' ||job from emp;
    

    Downside is that you need to SET 0 PAGES and then produce your own header.
    Something like

    PROMPT Empno;Ename;Job 
    

    Alternatively, if you want to pursuit the COLSEP approach, you can play with

    SET NULL text
    

    Concerning
    Peter

  • How to assign the text value when the data in the column is null or empty

    Hello guys

    I have a small question

    I have a column A that half of its value is empty, now the condition is that whenever the column is empty, assign "N/a" in the column... So I wrote a code which is:

    <? If: not (column A)? > column a = 'n/a' <? end if? >

    However, when I preview the RTF model, the data in the column still has not changed at all, many lines are still empty and did not show 'n/a '... The column is of type text

    Please advice

    Thank you
    N/A
    
  • Update updated the columns with null are excluded from the DB adapter

    Hi all

    My fusion system interacts with DB2 using the DB adapter.

    I have a script that I need to update a flag in the table after completing my bpel workflow. But by updating the value of indicator to "Processsed", there are other columns with a NULL value.

    How to solve this problem. I don't want to do, the other columns should not be alerted.

    Thank you

    Richa

    Hello

    The issue has been resolved. In fact, I've updated the update statement, excluding items that couldnot be updated top link mappings. I had to create a new adapter and it worked.

    Concerning

  • SELECT where the column is NULL or a number

    Hello

    I am trying to use a query that the WHERE clause contains a column that can be NULL or a number. If it contains a number, I want to select the rows that contain the numerical value for this column; Otherwise, the rows that contain NULL for this column, as shown here:

    SELECT col_1,
    col_2,
    etc...
    OF CN_BGT_ENTRIES
    WHERE grnt_id = p_grnt_id

    AND subbgt_nbr = (SELECT MAX (subbgt_nbr) FROM CN_BGT_ENTRIES WHERE grnt_id = p_grnt_id);

    in the opposite case

    AND subbgt_nbr is null;

    My strategy has been to create a cursor, EXTRACT the max value in l_subbgt_max and then use a BOX of the form:

    SELECT col_1,
    col_2,
    etc...
    OF CN_BGT_ENTRIES
    WHERE grnt_id = p_grnt_id
    AND (CASE
    WHEN l_subbgt_max IS NULL THEN ' subbgt_nbr IS NULL; "
    ELSE ' subbgt_nbr = l_subbgt_max; »
    (END);

    I tried every syntax since I can think of (for example, CASE NVL(l_subbgt_max,0) = 0) but continues to receive:

    PL/SQL: ORA-00920: invalid relational operator
    ORA-06550: line 13, column 3:
    PL/SQL: SQL statement ignored

    I know that I can DECLARE 2 sliders and then use a conditional to run one or the other, but in the interest of the growth and written some thing a little more sophisticated, I was hoping that someone with more experience SQL could tell me how [s] he would do this.

    Thanks in advance for your time.

    I guess that l_subbgt_nbr is a variable?

    In any case, something like this:

    SELECT col_1,
    col_2,
    etc ...
    FROM CN_BGT_ENTRIES
    WHERE grnt_id = p_grnt_id
    AND  ( ( l_subbgt_nbr is null and  subbgt_nbr is null )
              OR ( l_subbgt_nbr is not null and  subbgt_nbr = (SELECT MAX(subbgt_nbr)
                                                            FROM CN_BGT_ENTRIES
                                                            WHERE grnt_id = p_grnt_id)
                    )
               ); 
    

    Cheers, APC

    Published by: APC on July 23, 2012 15:46

  • create a view, the default value of the columns are NULL

    Windows XP / 10g 10.2.0.1.0

    I have a table tab1 (test1, test2, test3)

    And, I have to create a view as:
    create or replace VW1 (test1, test2, viewtest1, viewtest2) as (select test1, test2, viewtest1, viewtest2 from tab1, double);

    And need to viewtest1 and viewtest2 to be default null value column.

    Thank you.

    You are looking for something like this?

    create or replace VIEW VW1(test1, test2, viewtest1, viewtest2) as
             (select test1, test2, NULL, NULL from tab1);
    
  • update of NULL in the column with the values of the adjacent column

    Examples of data

    with test_data as
    (select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual
    union all
    select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual)
    select * from test_data;
    

    This is one of those cases, the case may be where any value of a column can be null

    or two similar columns can be null. If the column is null then I want to update the adjacent column

    average value of the column, if the first column is null so I want to take the next non-null column and update, if the last column is null

    so I want to take prev not zero column and to update.

    In this case would be my expected output

    Un Two Three Four Five Six
    11.52566
    123566

    Prospects for the future the suggesion or advice.

    Or, using Analytics:

    SQL> with test_data (id, one, two, three, four, five, six) as (
      2    select 1, 1   , null, 2   , 5, 6, null  from dual union all
      3    select 2, 1   , null, 3   , 5, 6, null  from dual union all
      4    select 3, 1   , null, null, 5, 6, null  from dual union all
      5    select 4, null, null, null, 5, 6, null  from dual
      6  )
      7  select *
      8  from (
      9    select id
     10         , cell
     11         , case when next_nn is not null and prev_nn is not null
     12             then (next_nn + prev_nn)/2
     13             else nvl(next_nn, prev_nn)
     14           end val
     15    from (
     16      select id
     17           , cell
     18           , val
     19           , last_value(val) ignore nulls over(partition by id order by cell) as prev_nn
     20           , first_value(val) ignore nulls over(partition by id order by cell range between current row and unbounded following) as next_nn
     21      from test_data
     22      unpivot include nulls (val for cell in (one as 1, two as 2, three as 3, four as 4, five as 5, six as 6) )
     23    )
     24  )
     25  pivot ( min(val) for cell in (1 as "ONE", 2 as "TWO", 3 as "THREE", 4 as "FOUR", 5 as "FIVE", 6 as "SIX") )
     26  ;
    
            ID        ONE        TWO      THREE       FOUR       FIVE        SIX
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
             1          1        1,5          2          5          6          6
             2          1          2          3          5          6          6
             3          1          3          3          5          6          6
             4          5          5          5          5          6          6
    
  • Change the default value of column NOT NULL to NULL

    Hi all
    How can I change the default value of column not NULL to NULL?
    Suppose I have run the following commands:
    SQL> alter table hr.test modify temp_num2 default null;
    
    Table altered.
    
    SQL> desc hr.test;
     Name                            Null?    Type
     ----------------------------------------- -------- ----------------------------
     TEMP_NUM                             NUMBER
     TEMP_NUM2                       NOT NULL NUMBER
    Why forced temp_num2 has not changed with the NULL value? I'm under 11.g rel2

    Best regards
    Valerie

    You can NOT change the column constraint NULL to contain NULL values by:

    alter table table_name modify column_name null; 
    

    After this change, the column can contain null values. In Oracle, not null constraints are created automatically when not null is specified for a column. Similarly, they are deleted automatically when the column is changed to allow NULL values.

  • Query that count only the column null lines

    create table test
    (a varchar2 (10))
    b varchar2 (10),
    c varchar2 (10),
    d varchar2 (10),
    e varchar2 (10));


    SQL > DESC TEST
    Name Null? Type
    ------------------------------- -------- ----
    A VARCHAR2 (10)
    B VARCHAR2 (10)
    C VARCHAR2 (10)
    D VARCHAR2 (10)
    E VARCHAR2 (10)

    SQL > SELECT * FROM TEST;

    A B C D E
    ---------- ---------- ---------- ---------- ----------
    A1 - A3 A4-
    B1 - B3, B4-
    C1 - C3 C4-
    D1 - D4 D5
    -E2 - E4 E5


    I want an application that only count the rows of the column as null

    A B C D E
    --- ---- ----- ------ -------
    1 4 2 0 3

    Published by: Nilesh hole, Pune, India, on August 28, 2009 12:30
    select SUM(case when a is null then 1 else 0 end)
          ,SUM(case when b is null then 1 else 0 end)
          ,SUM(case when c is null then 1 else 0 end)
          ,SUM(case when d is null then 1 else 0 end)
          ,SUM(case when e is null then 1 else 0 end)
    from TEST
    /
    

    Published by: Toon Koppelaars August 28, 2009 09:07

  • Deactivation of the column in a table based on the setting in the search box

    Hi all

    I use Oracle Apex 4.1. I have two region

    1. search box

    2. in the form of a table

    In the search box, I have a LOV field where the user can select the value. Based on this LOV in the search box, tabular column f06 must disable or read-only.

    For example if I select THREE in LOV then only column f06 is expected on the other it must disable. How to get there.

    Thanks in advance

    Ravi

    Hi Bobo,

    Hope link below will solve your query.

    Disable the column in a table.

    BR,

    Patrick

  • Not able to the column of the virtual model

    Hello

    I use SQL developer Data Modeler version 3.1.4.710 with 3.2.20.09.

    I am trying to model a virtual column by adding the following properties in the column:
    Allow nulls: not verified
    Data type: varchar2 (1)
    Calculated: checked
    The column expression: the call to a function

    When you generate the DDL, the column is modeled as:
    < Name > VARCHAR2 (1) NOT NULL

    What is the proper way to model the virtual column?

    Thanks in advance,

    Joop

    Hi Joop,

    Yes, your definition is correct. The virtual columns are supported in the Oracle 11 g database, you must define the type of RDBMS for your relational model as Oracle 11 g (or set up) and then you will get good generated DDL.

    Philippe

  • Change data type for the column in a table - Oracle 8i

    Team,

    I need to change a VARCHAR2 column in number.

    ALTER table xyz change number abc;

    By giving the above statement, it says I need empty this column before you change.

    I can't change the data type before emptying this column.

    Please indicate any other solution. Give me some suggestions.

    Empty the column for me here BIG task.

    user11081688 wrote:
    I can't change the data type before emptying this column.

    Not according to the documentation:

    You can change the data type of any column or decrease the size of the entire column if all rows in the column contains NULL values.

    Please indicate any other solution. Give me some suggestions.

    You can add another column with the correct data type.

    ALTER TABLE xyz ADD COLUMN def NUMBER;
    UPDATE TABLE xyz SET def = TO_NUMBER(abc);
    ALTER TABLE xyz DROP COLUMN abc;
    ALTER TABLE xyz ADD COLUMN abc NUMBER;
    UPDATE TABLE xyz SET abc = def;
    ALTER TABEL xyz DROP COLUMN xyz;
    

    If I remember correctly, Oracle 8i does not support the change of name of column if this solution is a bit more complicated than 9i and above. Another option would be to create a new table with CREATE TABLE AS... SELECT, drop the old one and rename a new one to the old.

Maybe you are looking for