Insert a null value?

does anyone know how to insert a null value?
For example:
insert into tbl_table (col1,col2)
values (null,null)
thanks.

insert into tbl_table (col1,col2)
values (null,null)
This query will insert null into the DB, if the column "NOT
NULL" property is false. Otherwise null can't be inserted into DB.
If "NOT NULL" is true then,
insert into tbl_table (col1,col2)
values ('','') blank value can be inserted, but not null.
Thanks
Sankalan
(www.mindfiresolutions.com)

Similar Messages

  • Inserting a 'null' value in an IF THEN ELSE statement

    Greetings,
    I'm using Business Object webi XiR3
    I'd like to return a 'null' value in certain cases for an IF THEN ELSE statement.  Depending on if I format the field as a text or a number, I can return blanks ("") and zeros (0).  However, what I really need to do is leave the field / column formatted as a number and return a 'null' value.  You can see the variable below ... this will return a blank but the column is text.
    Suggestions?
    thanks.
    variable:
    =If([Comp Rate Mid] = 0 And( ([Market Rate 50th].085) - [Annual Total Targeted Comp] >=0) ; ([Market Rate 50th]0.85) - [Annual Total Targeted Comp]; If([Comp Rate Mid] <> 0 And( ([Comp Rate Mid] 0.85) - [Annual Total Targeted Comp] >=0) ; ([Comp Rate Mid]0.85) - [Annual Total Targeted Comp];""))

    I don't think this is possible using a formula, as formulas deal with content, and images can be placed in cells only as 'image fill', which is Format, rather than Content.
    Might be possible using an AppleScript, but I'm not the person to advise you on that.
    Regards,
    Barry

  • How to insert a NULL value in SQL using JDBC Adapter

    Hi All,
    I have a File -> JDBC scenario.
    In the File and in the SQL table  I have a column called "MR_DATE" that needs to be mapped
    I have to do the following:
    If MR_DATE is NOT equal to "00000000"
             then pass MR_DATE to SQL table
    else
              set the MR_DATE column in the table as NULL.
    Please suggest
    regards,
    Piyush

    Hi Piyush,
    In the receiver JDBC adapter select the option Interpretation of Empty String Values as NULL.
    Pass date as empty, it will be interpreted as NULL by adapter and inserted in database.
    Regards,
    Gautam Purohit

  • How to insert a null value to combobox which is bind with datasource

    Hi,
    i am working on c# winforms application. I have 2 comboboxes one is CustomerCbBox and another is OrderCbBox. CustomerCbBox is bind with data source.
    on CustomerCbBox SelectedIndexChanged event data is populated in OrderCbBox from data source. 
    i want to add a null or empty field in CustomerCbBox. all I want is that when the user don't Select Customer Name and OrderNo null or empty data enter in database. but when i click Insert Button it generate error "Object reference is not "object
    reference not set to an instance of an object".
    here is my code.
      private void MainForm_Load(object sender, EventArgs e)
    production pd = new production();
    CustomerCbBox.DataSource = pd.Customer();
    CustomerCbBox.DisplayMember = "Cust";
    CustomerCbBox.ValueMember = "CustId";
     private void CustomerCbBox_SelectedIndexChanged(object sender, EventArgs e)
                      try
                          string PartyName = CustomerCbBox.SelectedIndex.ToString();
                           PONum1.DataSource = pd.GetPOnumActive(PartyName1);
                              PONum1.DisplayMember = "PONum";
                              PONum1.ValueMember = "PONum";
                      catch (Exception ex)
                          MessageBox.Show(ex.Message);
         Please help me to solve this problem thanks.      

    Hello,
    We could check whether the user has selected any items before adding that to database.
    if (CustomerCbBox.SelectedIndex > -1)
    // do something
    }else{//add dbnull to database}
    And for adding null to databse, we could pass DBNull.Value instead.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Null value in Datetime field

    I have a form that inserts data, but the date fields are getting a default value (1/1/1900 12:00:00 AM) even though I don't insert a value for that field. How would I insert a NULL value in the datatime fields in MSSQL.instead of the default value (1/1/1900 12:00:00 AM) that gets inserted?
    Here is my insert statement.
    <CFLOCK type="exclusive" timeout="10">
        <CFQUERY name="InsertWorkflow"
              datasource="#request.app.DSN#"
              username="#request.app.bsruser#"
              password="#request.app.bsrPassword#">
            INSERT INTO #request.app.DB#.v_NAR_WorkFlowLog
            ([SatApp_ID]
               ,[User_ReqApproval_Logon]
               ,[User_ReqApproval_Date]
               ,[Admin_ReqProcessed_Logon]
               ,[Admin_ReqProcessed]
               ,[Prelim_Approval_Level]
               ,[Prelim_Approval_Date]
               ,[Prelim_Approval_Explain]
               ,[Req_Withdrawn_Date]
               ,[Req_Withdrawn_Explain]
               ,[Req_Denied_Date]
               ,[Req_Denied_Explain]
               ,[User_Req_FinalAppl_Date]
               ,[Admin_FinalAppl_Date]
               ,[DateLastUpdated]
               ,[UpdatedBy])           
            VALUES
               (#SatApp_ID#
               ,'#User_ReqApproval_Logon#'
               ,'#User_ReqApproval_Date#'
               ,'#Admin_ReqProcessed_Logon#'
               ,'#Admin_ReqProcessed#'
               ,'#Prelim_Approval_Level#'
               ,'#Prelim_Approval_Date#'
               ,'#Prelim_Approval_Explain#'
               ,'#Req_Withdrawn_Date#'
               ,'#Req_Withdrawn_Explain#'
               ,'#Req_Denied_Date#'
               ,'#Req_Denied_Explain#'
               ,'#User_Req_FinalAppl_Date#'
               ,'#Admin_FinalAppl_Date#'
               ,'#DateLastUpdated#'
               ,'#UpdatedBy#')                              
        </CFQUERY>
    </CFLOCK>
    Thanks,
    Shearak

    Would CFQueryParam work? For example:
    <cfqueryparam cfsqltype="CF_SQL_DATE" value="#DateLastUpdated#" null = "#YesNoFormat(NOT Len(Trim(DateLastUpdated)))#">
    So, using your given example, your insert would be:
    <CFLOCK type="exclusive" timeout="10">
        <CFQUERY name="InsertWorkflow"
              datasource="#request.app.DSN#"
              username="#request.app.bsruser#"
              password="#request.app.bsrPassword#">
            INSERT INTO #request.app.DB#.v_NAR_WorkFlowLog
            ([SatApp_ID]
               ,[User_ReqApproval_Logon]
               ,[User_ReqApproval_Date]
               ,[Admin_ReqProcessed_Logon]
               ,[Admin_ReqProcessed]
               ,[Prelim_Approval_Level]
               ,[Prelim_Approval_Date]
               ,[Prelim_Approval_Explain]
               ,[Req_Withdrawn_Date]
               ,[Req_Withdrawn_Explain]
               ,[Req_Denied_Date]
               ,[Req_Denied_Explain]
               ,[User_Req_FinalAppl_Date]
               ,[Admin_FinalAppl_Date]
               ,[DateLastUpdated]
               ,[UpdatedBy])           
            VALUES
               (#SatApp_ID#
               ,'#User_ReqApproval_Logon#'
               ,'#User_ReqApproval_Date#'
               ,'#Admin_ReqProcessed_Logon#'
               ,'#Admin_ReqProcessed#'
               ,'#Prelim_Approval_Level#'
               ,'#Prelim_Approval_Date#'
               ,'#Prelim_Approval_Explain#'
               ,'#Req_Withdrawn_Date#'
               ,'#Req_Withdrawn_Explain#'
               ,'#Req_Denied_Date#'
               ,'#Req_Denied_Explain#'
               ,'#User_Req_FinalAppl_Date#'
               ,'#Admin_FinalAppl_Date#'
               ,<cfqueryparam cfsqltype="CF_SQL_DATE" value="#DateLastUpdated#" null = "#YesNoFormat(NOT Len(Trim(DateLastUpdated)))#">           ,'#UpdatedBy#')                              
        </CFQUERY>
    </CFLOCK>

  • Component binding return null value

    I'm migrating a JSF 1.2 application to JSF 2.1, specificly I'm currently using mojorra 2.1.24.
    The application consists of request scoped beans, and in order to pass data between requests, it embeds the data inside UI components.
    The following behaviour works well with JSF 1.2, but not with JSF 2.1.
    The application has the following configuration:
    <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
    </context-param>
    The page contains the following snippet:
    <h:form prependId="false">
         <h:inputHidden binding="#{bean.inputHidden}" />
         <h:panelGroup rendered="#{bean.rendered}">
          <h:commandLink value="onAction" action="#{bean.onAction}" />
         </h:panelGroup>
    </h:form>
    The bean is the following:
    @ManagedBean
    @RequestScoped
    public class Bean {
      private UIInput inputHidden;
      private AItem item;
      public setInputHidden(UIInput inputHidden){
        this.inputHidden = inputHidden;
        if(item != null){ this.inputHidden.setValue(item); }
      public AItem getItem(){
        return (AItem) getInputHidden().getValue();
      // other getter/setter
      public String onNavToPage(AItem item){ this.item = item; return "page"; }
      public String onAction(){ //... do something return ""; }
      public boolean isRendered(){ return getProcessItem() != null; }
    The steps are the following:
    to navigate to page page the method bean.onNavToPage is invoked from within another page;
    upon page rendering the bean.item is set as bean.inputHidden value;
    after the page is diplayed, the command link is pressed.
    At this point no command link is invoked, because the bean.inputHidden.getValue() returns null, and the command link is not processed.
    I noticed that the inputHidden parameter passed to the setInputHidden method during restore view phase has, inputHidden.getValue() == null, no value has been saved previously in the view.
    I would guess that something has changed in the component state management, but debugging the JSF code I didn't find what.
    Debugging JSF code I found that the component state has been masked before the state has been saved in the view, so the ComponentStateHelper.saveState saves the deltaMap and not the defaultMap, where all the state has been put.
    public Object saveState(FacesContext context) {
            if (context == null) {
                throw new NullPointerException();
            if(component.initialStateMarked()) {
                return saveMap(context, deltaMap);
            else {
                return saveMap(context, defaultMap);
    is this a bug?
    If not, how can I restore JSF 1.2 behaviuor and save the defaultMap?
    Thanks in advance for the help.

    0.10: Saved session state: 6385226710016200 "P327_OU_NAME" changedValue="test"
    0.10: ...P327_FK_ORGUNIT session state saving same value: "%null%"
    0.15: Saved session state: 6388922235040486 "P327_OU_DESC" changedValue=""
    0.15: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.15: Branch point: BEFORE_COMPUTATION
    0.15: Computation point: AFTER_SUBMIT
    0.15: Perform Branching for Tab Requests
    0.15: Branch point: BEFORE_VALIDATION
    0.15: Perform validations:
    0.16: Branch point: BEFORE_PROCESSING
    0.16: Processing point: AFTER_SUBMIT
    0.16: ...PLSQL (AFTER_SUBMIT) INSERT INTO INDIT_PS_ORGUNIT ( OU_ID, FK_ORGUNIT, OU_NAME, OU_DESC ) VALUES ( INDIT_PASS_SEQ_GENERIC_ID.NEXTVAL, :P327_FK_ORGUNIT, :P327_OU_NAME, :P327_OU_DESC )
    0.16: Show ERROR page...
    0.17: Processing point: AFTER_ERROR_HEADER
    0.18: Processing point: BEFORE_ERROR_FOOTER
    ORA-01722: invalid number
    the table was created with:
    CREATE TABLE INDIT_PS_ORGUNIT (
    OU_ID NUMBER(15) PRIMARY KEY,
    FK_ORGUNIT NUMBER(15) NULL,
    OU_NAME VARCHAR2(30) NOT NULL,
    OU_DESC VARCHAR2(30) NULL,
    OU_DELETED DATE NULL
    what i see is that the status is "%null%" and not really "" (NULL, nothing, ...).
    so what can i do to insert a null value from a select list?
    i gave up RTFM. because i found nothing (NULL) ?!?!

  • NULL values are inserted into interface table for read only columns

    Hi, I developed a custom Integrator where some of the columns has to be displayed as read only in the layout. I am using SQL content to populate the data. When I upload the data NULL values are inserted into table interface? Is there any work around for this?
    Thanks
    Edited by: user593879 on Jan 12, 2010 7:21 PM

    Doesn't WebADI drive you insane at times?
    I must say, when it's all working it looks great and it is very user friendly (end-user that is, NOT for developers!) but before you get to that stage… please please Oracle invest some time making Web ADI a bit more logical an coherent, get the obvious bugs out, please let us not have to update BNE tables anymore to get things done.
    Anyway, I sorted this one out by setting the Width to zero (0) in the Layout. HTH.

  • APEX post restful service inserts null value

    Oracle APEX 4.2.5
    Oracle Rest Data Service 2.0.7
    Apache Tomcat 7
    Oracle database 11.2.0.4
    Oracle APEX PUT web service inserts null value into column. This is either a bug or the documentation does not properly cover how to correctly set PUT restful services. 
    GET web services works fine. 
    I have granted the role of apex_rest_public_user to both apex_public_user and the schema owner. 
    The payload is a small xml document, but even a text document will yield the same result. 
    I am using the Oracle REST Data Service 2.0.5
    Web service code: 
    RESTful Service Module: software_details/
    URI Template: xml_parser
    Method: POST
    Source Type: PL/SQL
    MIME: Types Allowed: application/xml
    Requires Secure Access: NO
    Source :
    begin
    insert into clob_test (x)
    values (blob_to_clob(:body)); ## according to some online post,  :body is where APEX places any data being transferred through a web service. I have yet to find any official  ##documentation on it. 
    commit:
    end;
    ##Blob_to_clob function code
    CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
    RETURN CLOB
    AS
          v_clob    CLOB;
          v_varchar VARCHAR2(32767);
          v_start      PLS_INTEGER := 1;
          v_buffer  PLS_INTEGER := 32767;
    BEGIN
          DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
          FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
          LOOP
             v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
                DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
               v_start := v_start + v_buffer;
          END LOOP;
        RETURN v_clob;
    END blob_to_clob;
    #Table code 
    create table clob_test(
    x clob));
    Thank you,

    I am experiencing the same issue.
    I implemented the 'chunked file loading' example from Kris Rice's blog at Kris' blog: August 2013 in y workspace at the Oracle hosted APEX site and everything works fine.
    However, I get a null value for 'data' when I implement the same example at my work site.
    Work Site config is
    Apache Tomcat 7
    Oracle REST Data Services version : 2.0.6.27.18.06
    Application Express 4.2.2.00.11
    Oracle RDBMS 11.2.0.3
    I am NOT using SSL at my work site. However this does not seem to affect a POST with form values.
    Varad.

  • SQL server Job failed as null values were tried to be inserted.

    How can i make my job run without failure by making the stored procedure that the job runs to skip a null value?

    This is part of the sp which is causing a problem. 
    Delete from dbo.[tablename] Where Special = 0
    Insert Into dbo.[tablename]
      Select TimekeeperID as EmpID, IsNull(networkID, left(firstname, 1) + left(lastname, 7)) as NetID,
      LastName + ', ' + CASE WHEN IsNull(Nickname, '') = '' THEN FirstName ELSE NickName END as EmpName,
      CASE When Location = 'Brussels' Then '#701-' + Right(workPhone1, 3) Else
        Case Location When 'DC' THEN  '#10-' When 'ACPF' THEN  '#15-' When 'Phoenix' THEN  '#20-'
        When 'CC' THEN  '#50-' When 'NY' THEN  '#60-' When 'LA' THEN '#30-' When 'UK' THEN '#40-'
        When 'Brussels' THEN '#701-' When 'Chicago' THEN  '#25-' ELSE '' END 
        + Right(workPhone1, 4) END as Extension,
      isnull(p.email, '') as Email,
      isnull(Location, '') as Office, roomNumber as Room, 0 as Special
      from SJCentralDB.dbo.[ALLPEOPLE_Kiru] p
      left outer join [tablename] u on u.netid = IsNull(networkID, left(firstname, 1) + left(lastname, 7))
      where u.netid is null and estatus <> 'Terminated' and lastname + firstname <> 'AlvarezKevin' 
      --and TimekeeperID <> ''
      --and p.email = '[email protected]'
      Order by EmpName
    SO what i want is that, if the [TimekeeperID] does not have a value, so i dont want that raw to be inserted. 

  • How to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.

    how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method.  thanks

    INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
       SELECT col1, col2, col3, ...
       FROM   sourcedb.dbo.tbl
    Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Insert data into the column which is having null values.

    Hi,
    I have a column called "Classification_CD" .This column is having NULL values.I want to insert the data into this column.
    I tried to write the query as follows. But it is showing the mesg error "SQL Error: ORA-01400 cannot insert NULL into ("ABC"."A_CMP_W"."A_CMP_SEQ_NUM")"
    Can any one please help me out to write query to insert the dat afor this.
    Thanks.

    I think you are taking about updating the null value.So you can do this..
    SQL> select * from table_a;
            ID SCHEDULED MARK                       PRID
             5 07-NOV-10 T05                           7
             6 18-SEP-10 T06                           8
             4 31-JAN-11 T02                           2
             1 18-JAN-11 T01                           2
             2 18-JAN-11 T02
             3 18-JAN-11 T03                           1
    6 rows selected.See that prid is Null for id 2
    SQL> update table_a
      2  set prid =10
      3  where id =2;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from table_a;
            ID SCHEDULED MARK                       PRID
             5 07-NOV-10 T05                           7
             6 18-SEP-10 T06                           8
             4 31-JAN-11 T02                           2
             1 18-JAN-11 T01                           2
             2 18-JAN-11 T02                          10
             3 18-JAN-11 T03                           1
    6 rows selected.
    SQL> But remember while updating u should choose a primary key column in
    where condition so that only desired row or record is updated..
    Regards
    Umesh

  • Index (or not) for excluding NULL values in a query

    Hello,
    I have table that can become very large. The table has a varchar2 column (let's call it TEXT) that can contain NULL values. I want to process only the records that have a value (NOT NULL). Also, the table is continuously expanded with newly inserted records. The inserts should suffer as little performance loss as possible.
    My question: should I use an index on the column and if so, what kind of index?
    I have done a little test with a function based index (inspired by this Tom Kyte article: http://tkyte.blogspot.com/2006/01/something-about-nothing.html):
    create index text_isnull_idx on my_table(text,0);
    I notice that if I use the clause WHERE TEXT IS NULL, the index is used. But if I use a clause WHERE TEXT IS NOT NULL (which is the clause I want to use), a full table scan is performed. Is this bad? Can I somehow improve the speed of this selection?
    Thanks in advance,
    Frans

    I build a test case with very simple table with 2 columns and it shows that FTS is better than index access even when above ratio is <= 0.01 (1%):
    DROP TABLE T1;
    CREATE TABLE T1
               C1 VARCHAR2(100)
              ,C2 NUMBER
    INSERT INTO T1 (SELECT TO_CHAR(OBJECT_ID), ROWNUM FROM USER_OBJECTS);
    BEGIN
         FOR I IN 1..100 LOOP
              INSERT INTO T1 (SELECT NULL, ROWNUM FROM USER_OBJECTS);
         END LOOP;
    END;
    CREATE INDEX T1_IDX ON T1(C1);
    ANALYZE TABLE T1 COMPUTE STATISTICS
         FOR TABLE
         FOR ALL INDEXES
         FOR ALL INDEXED COLUMNS
    SET AUTOTRACE TRACEONLY
    SELECT
              C1, C2
         FROM T1 WHERE C1 IS NOT NULL;
    3864 rows selected.
    real: 1344
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=59 Card=3864 Bytes=30912)
       1    0   TABLE ACCESS (FULL) OF 'T1' (Cost=59 Card=3864 Bytes=30912)
    Statistics
              0  recursive calls
              0  db block gets
           2527 consistent gets
           3864 rows processed
    BUT
    SELECT
         --+ FIRST_ROWS
              C1, C2
         FROM T1 WHERE C1 IS NOT NULL;
    3864 rows selected.
    real: 1296
    Execution Plan
       0      SELECT STATEMENT Optimizer=HINT: FIRST_ROWS (Cost=35 Card=3864 Bytes=30912)
       1    0   TABLE ACCESS (BY INDEX ROWID) OF 'T1' (Cost=35 Card=3864 Bytes=30912)
       2    1     INDEX (FULL SCAN) OF 'T1_IDX' (NON-UNIQUE) (Cost=11 Card=3864)
    Statistics
              0  recursive calls
              0  db block gets
           5052 consistent gets
           3864 rows processed
    and just for comparison:
    SELECT * FROM T1 WHERE C1 IS NULL;
    386501 rows selected.
    real: 117878
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=59 Card=386501 Bytes=3092008)
       1    0   TABLE ACCESS (FULL) OF 'T1' (Cost=59 Card=386501 Bytes=3092008)
    Statistics
              0  recursive calls
              0  db block gets
         193850 consistent gets
         386501 rows processedHence you have to benchmark you queries with and w/o index[es]

  • Null Values from a Data Source

    This is more of an implementation question than a
    troubleshooting question. Also, since I've been unable to find any
    documentation on this I was wondering if anyone has come across
    this behavior or found a bug with it.
    Yesterday I was working on an application to explore some
    proof of concept aspects of Flex for an application I'm developing.
    I started running into a problem with Flex Data Services throwing
    back an 'Unknown Property: "clientaddress1"' error whenever I tried
    to update data. It seemed that whenever I tried to update a record
    in the database it would thrown the Unknown Property error. I spent
    a good chunk of the day trying to figure out what was causing this
    and finally gave up and called it a day.
    This morning I was reassessing what the problem was and
    trying to find the differences between my database and my code and
    I stumbled upon the fact that I could add no records and modify
    them without a problem, however if I tried to access an existing
    record and update it I'd get the Unknown Property error.
    I start analyzing the database and found that I'd configured
    the database to use null values for empty values and the records
    that I created with the database had null values, however, any of
    the values inserted from Flex were inserted as blank values. As
    matching my action script class as clientaddress1 = ""; So, upon
    further testing I fould that Flex was not processing the null
    values correctly, so that when it came back and rightly generated a
    Conflict Error...and then called AcceptServer() it was unable to
    find the clientaddress1 property of the class.
    Also, if any of the properties in the database are null it
    throws the same error. Basically it seems to have invalidated the
    object just because one value was null. So if all of my values from
    the DB are set to something and only one field is set to null it's
    still throwing the error on the first alphabetical item of the
    properties.
    I can resolve the problem by not using null values in the
    database, but...what sort of effect would this have on someone
    working with a large legacy database that extensively uses nulls
    for undefined values?
    Also, if a Flex guru could explain the reasoning for this
    happening I would greatly appreciate it!
    Best regards,
    Chris Maloney

    I realize that I didn't clarify that I am using ColdFusion
    for getting the data. This class was generated by the Create CFC
    wizard in Flex Builder.
    package com.generated
    [Managed]
    [RemoteClass(alias="components.generated.clients.Clients")]
    public class Clients
    public var clientid:Number = 0;
    public var clientfirstname:String = "";
    public var clientlastname:String = "";
    public var clientaddress1:String = "";
    public var clientaddress2:String = "";
    public var clientcity:String = "";
    public var clientstate:String = "";
    public var clientzip:String = "";
    public var clientphone:String = "";
    public var clientemail:String = "";
    public function Clients()
    }

  • Null value in poplist

    Hi,
    I'm using forms6i, I'm having a poplist in my form, which i populate in when-new-form-instance.
    So when i open the form, and try to select one value, i'm seeing one null value, and if i select one value from list and again try to change the value then the previous null value is gone.
    So to avoid that in when-new-form-instance itself , i assigned one value to the poplist using Get_List_Element_Value.
    But the problem is since i'm assigning value, the form goes in insert status, and so even if i dont enter any valuees and try to exit, it is asking Close Form? (because i have few non-null items also).
    How can i get one safe solution (like as it work when we assign some static values to the poplist).
    ie i dont want nulls to be seen iin the list also i dont want the close form? message
    I tried one solun by setting the form status as new again in w-n-f-i. But since i have multirecord block, this problem comes with every record.
    Please suggest one better solution

    Hi Divya
    why don't u try putting the same code of the w-n-f-i in when-validate-record or when-new-record-instance may be it work...
    if not working pls share us the code what about an example:
    declare
    rg_name varchar2(40):='r_area_record1';
    rg_id Recordgroup;
    LIST_ID ITEM;
    errcode NUMBER;
    begin
    rg_id:=Find_Group(rg_name);
    if Id_null(rg_id)
    then
    rg_id :=Create_group_from_query(rg_name,
    'select VC_ID , research_area from research_info
    where proff_id= 9');
    LIST_ID:=FIND_ITEM('TRY_BLOCK.TRY');
    end if;
    errcode:=populate_group(rg_id);
    POPULATE_LIST(LIST_ID,RG_ID);
    end; Regards,
    Abdetu...
    Edited by: Abdetu on Jan 27, 2011 2:30 AM

  • Null value in a select-option

    Hi all,
    I have the follow question:
    can I populate a range vith a null value?
    I have a field in a standard table which can be "space" or "null". But if I insert:
    sign = I
    option = EQ
    low = space
    records with "null" field aren't extracted by the select statement. So is there any way to populate:
    low = null or something similar?
    Best Regards,
    Raffaele Frattini

    If the field is of type char then you need to wrte the same in quotes woth caps
    else
    declare
    constants : c_null type i value '0'.
    then assign the same
    You check the null value using INITIAL laso.

Maybe you are looking for

  • Error when i try to print in Crystal Report

    Hi , im student from mexico, i have a truble with Crystal Report so u can help me ? plz my problem with Crystal Report is when i try to print check my code     repComandaGeneral.Load("C:\Users\Usuario\Documents\DozRES - comandas\RepTicketCGeneral.rpt

  • Capturing lots of footage for multiple projects?

    I've got 50+ DV tapes with years worth of footage that I want to transfer to my hard disk so that I can eventually make some movies. Do I have to capture to a project in FC4? I want to transfer all the video and then pick out clips for projects as I

  • Confused with Cursors in Oracle Procedures

    Hi , I am new to PLSQL programming , learning it daily . I am having a query here I have read that if we use Explicit Cursor in procedure then we need to open it , fetch and then close it , which i did some examples . The below is a procedure , which

  • A few questions about the Apple TV

    Hi guys. I'm planning on getting an Apple TV but have a few questions. Before I start asking, I gotta mention that my internet connection is limited to 25GB. 1) I'll be using my Apple TV to stream music and movies off my PC running iTunes. Both will

  • How can I rotate the IKImageView

    How can I rotate the IKImageView. ps: not rotate the image in the view but rotate the view itself~!! please help~