Assigning a null value

Hi ,
I have a consuming web service. Initially while sending a request I have to pass null value to certain parameters. But the parameters are of type string and Im unable to do this. I tried the syntax clear var with null, but this supports only character not string. Please help in this.
Thanks,
Sarath.C

Just to close the thread.

Similar Messages

  • Doubt about  a null value assigned to a String variable

    Hi,
    I have a doubt about a behavior when assigning a null value to a string variable and then seeing the output, the code is the next one:
    public static void main(String[] args) {
            String total = null;
            System.out.println(total);
            total = total+"one";
            System.out.println(total);
    }the doubt comes when i see the output, the output i get is this:
    null
    nulloneA variable with null value means it does not contains a reference to an object in memory, so the question is why the null is printed when i concatenate the total variable which has a null value with the string "one".
    Is the null value converted to string ??
    Please clarify
    Regards and thanks!
    Carlos

    null is a keyword to inform compiler that the reference contain nothingNo. 'null' is not a keyword, it is a literal. Beyond that the compiler doesn't care. It has a runtime value as well.
    total contains null value means it does not have memory,No, it means it refers to nothing, as opposed to referring to an object.
    for representation purpose it contain "null"No. println(String) has special behaviour if the argument is null. This is documented and has already been described above. Your handwaving about 'for representation purpose' is meaningless. The compiler and the JVM don't know the purpose of the code.
    e.g. this keyword shows a hash value instead of memory addressNo it doesn't: it depends entirely on the actual class of the object referred to by 'this', and specifically what its toString() method does.
    similarly "total" maps null as a literal.Completely meaningless. "total" doesn't 'map' anything, it is just a literal. The behaviour you describe is a property of the string concatenation operator, not of string literals.
    I hope you can understand this.Nobody could understand it. It is compete nonsense. The correct answer has already been given. Please read the thread before you contribute.

  • Operate C# to modify PPT's hyperlink, while configuring the hyperlink's text to display attribute, the address value will be assigned as null. Anyone know this issue? Any solution?

    operate C# to modify PPT's hyperlink, while configuring the hyperlink's text to display attribute, the address value will be assigned as null.  Anyone know this issue? Any solution?
    How to reproduce the issue:
    1.Create a new PPT slide in Office2010.
    2. Insert a certain text/characters, such as Mircosoft blablabla,
    3. Insert an URL right after the text part , TextToDisplay is the “Test”,Address is the "Url".
    4. The content in the ppt is ”Microsoft Test“,here "Test" is the hyperlink which we would like to convert. Please execute the code we list below.
    5. The problem will be reproduced by the above steps.
    PPT.Application ap = new PPT.Application();
    PPT.Presentation pre = null;
    pre = ap.Presentations.Open(mFileName, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
    foreach (PPT.Slide mSlide in pre.Slides)
    PPT.Hyperlinks links = mSlide.Hyperlinks;
    for (int i = 1; i <= links.Count; i++)
    PPT.Hyperlink mLink = links[i];
    mLink.TextToDisplay = mLink.TextToDisplay.Replace(mLink.TextToDisplay,"url");
    mLink.Address = mLink.Address.Replace(mLink.Address, "url");
    Modify texttodisplay, the address vaule will be assigned as null. Anyone knows how to solve it?
    Does it caused by a PPT API's Limitation?

    I've tried the below code and it works, you can refer this article:
    https://msdn.microsoft.com/en-us/library/office/ff745021.aspx
    to find that the hyperlink needs to be associated with a text range, and thats what I did in the code below with the help of the link sent by Tony.
    Microsoft.Office.Interop.PowerPoint.Application ap = new Application();
    Microsoft.Office.Interop.PowerPoint.Presentation pre = null;
    pre = ap.Presentations.Open(@"C:\Users\Fouad\Desktop\abcc.pptx", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
    foreach (Microsoft.Office.Interop.PowerPoint.Slide mSlide in pre.Slides)
    Microsoft.Office.Interop.PowerPoint.Hyperlinks links = mSlide.Hyperlinks;
    Microsoft.Office.Interop.PowerPoint.Shape textShape = mSlide.Shapes[1];
    for (int i = 1; i <= links.Count; i++)
    Microsoft.Office.Interop.PowerPoint.Hyperlink mLink = links[i];
    Microsoft.Office.Interop.PowerPoint.TextRange range1 = textShape.TextFrame.TextRange;
    TextRange oTxtRng = range1.Find(((Microsoft.Office.Interop.PowerPoint.Hyperlink)mLink).TextToDisplay,After:range1.Start,WholeWords:Microsoft.Office.Core.MsoTriState.msoTrue);
    oTxtRng.Replace(((Microsoft.Office.Interop.PowerPoint.Hyperlink)mLink).TextToDisplay, "url");
    oTxtRng.ActionSettings[Microsoft.Office.Interop.PowerPoint.PpMouseActivation.ppMouseClick].Hyperlink.Address = "http://www.microsoft.com";
    Fouad Roumieh

  • How to assign NULL value to an ITEM in Forms Personalization?

    Hi,
    how to assign NULL value to an ITEM in Forms Personalization?
    please suggest me.
    Thanks

    I don't know what your form personalization does and maybe I misunderstand you ...
    Try
    :item_name := null;

  • Distinguishing between empty string and null values

    hi all,
    I am using an ODBC connection to connect my java app to database using JDBCODBC driver. I have 2 columns 'aColumn' and 'bColumn' in my table, both allow null values. I have one row in it, which has null value in aColumn and empty string in bColumn. I retrieve this row's data and assign it to 2 columns : 'aColumnVar' and 'bColumnVar' respectively. I find out that both 'aColumnVar' and 'bColumnVar' variables has null values (although bColumnVar should has an empty string as its value). Now my ODBC connection Data Source has the option "Use ANSI nulls, paddings, and warnings" ON. I turn it off and try again. This time both 'aColumnVar' and 'bColumnVar' variables has empty string as values (although aColumnVar should has null as its value).
    How can I make sure that i can get the data exactly as it is in the database in my variables?
    Thanks

    there is a wasNull() method on ResultSet. After you
    have obtained the value of a column e.g. by calling a
    method like getString you can call wasNull and if it
    returns true then the value on the database is null.
    Check the java docs, it might explain it better
    http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Result
    et.html#wasNull()I am using MS SQL Server 7.0 under Windows NT 4.0 with JDK 1.2. My ODBC connection Data Source has to have the option "Use ANSI nulls, paddings, and warnings" ON.
    I try the wasNull() method but it is doing the same thing i.e. telling me that a column is null when in database it is null (right); and a column is null when in database it is an empty string (wrong). I suspect it is something to do with the JDBC-ODBC driver I am using.

  • Null values in Numeric fields of Datasets

    I am wondering if anyone has run into this problem before and
    checking to see if anyone has an elegant solution.
    I have a rather large data set. (actually 5 of them on a
    single page) I am sorting certain columns in a table as numbers so
    i assign the variable " ds1.setColumnType("somenumbercolumn",
    "number")" In most cases Spry works great and it sorts by numbers
    properly. The problem is some of the fields in the XML file are
    null and I am trying to sort them as a number. Spry actually
    adjusts for this (as far as i can tell) and treats them like a 0
    which isn't exactly ideal considering there are real zero values in
    the data. I know spry doesn't currently format numbers:
    So here is my question. Does anyone one have a solution to
    fixing null values in a table so that it is still sortable but
    doesn't display a "0" and instead displays something like "--" or
    whatever. I have the option of editing the XML file as well, but I
    still need the table to sort by number.
    If not null values, how about non numeric fields which can
    still be sorted in a numeric column?

    Hi,
    We have an old post that raised a similar problem with yours.
    The post can be found
    here
    For you situation, you should add an if condition for the
    rows that have 0 and to add a custom string instead 0.
    for (var i = 0; i < numRows; i++)
    if(rows
    [ "field_name"] == 0)
    rows[ "field_name" ] = '--';
    Hope this helps you,
    Diana

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

  • NULL value in GeoRaster cells?

    Hi all,
    How to store a NULL value in GeoRaster cells ? For example i need to store raster data of NOAA image of continent of Australia, with null value for cells in the surrounding ocean.
    Given the cell depth is 8 BIT U, then the range will be 0 to 255. But i need to assign NULL instead of any value within the range, to ocean cells.
    I think the .setBlankCellValue does not help for this.
    I do not think Oracle GeoRaster does not recognize Null cell value. But i don't know how.
    The geoRaster documentation explain about SDO_GEOR.getNODATA, but how to set it ?
    Or do i have to make some kind of alpha layer for this purpose ?
    Please advise
    Thank you for reading and commenting,
    =Damon

    Jeffrey,
    >
    1. setup NODATA value(s) or NODATA value
    ranges. for this you can call:
    sdo_geor.addNODATA
    sdo_geor.getNODATA
    sdo_geor.deleteNODATA.
    this case, the NODATA value(s) must be in the range
    of the cellDepth. in your case with 8bit unsigned, it
    must be an non-negative integer in [0,255].
    your are talking about NOAA image, I would suggest
    you use 0 (zero) as NODATA for the ocean area. In
    general, the good image pixels would not be zero.The thing is i need to preserve the whole range of possible value of the cell depth meaningful. Probably best example as oppose to NOAA images, is image derived from raster algebra (eg. substraction).
    So i was considering the rest of your suggestion. Bitmap mask or alpha channel might help, BUT
    among
    sdo_geor.addNODATA
    sdo_geor.getNODATA
    sdo_geor.deleteNODATA
    sdo_geor.setBitmapMask
    sdo_geor.getBitmapMask
    sdo_geor.mergeLayers
    ALL are available in 11gR1 while only the sdo_geor.getNODATA that is available in 10gR2 (the one am using); correct me please. (this is based documents of both versions)
    Are you saying that 10gR2 is too obsolete for these, and that i shud upgrade to 11gR1 ?
    Please advise.
    ==================
    Other than general requirement for raster in geospatial, that raster should provide NODATA or null value; my specific aim is for (again) focal operation of geoRaster. For example :
    - an image of 512 rows x 1024 columns x 1 layer as input
    - processed by focal operation (or filtered) by 3 x 3 filter, result is the same size but cells in the row 0, row 511, column 0, and column 1023 ALL have NODATA value
    - similarly by 5x5 filter, row[0,1,510,511] and column[0,1,1022,1023] ALL have NODATA value
    hope this helps,
    JeffreyMany thanks and cheers
    =Damon

  • How to replace null value, if column is text and not numeric in OBIEE?

    Hi,
    Please note that I had tried to change the null text by adding bin value for Unspecified and Unknown but this did not work for me.. not sure if I am missing out to put anything in value filter…
    Thank You,
    Ravi

    Check this function:
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10544/appsql.htm#CHDHJABI
    Cheers
    Nico
    IFNULL
    This function tests if an expression evaluates to a null value, and if it does, assigns the specified value to the expression.
    Syntax
    IFNULL(expr, value)
    Where:
    expr is the expression to evaluate.
    value is the value to assign if the expression evaluates to a null value.

  • GetParameter() null value

    Hi all,
    We are having a problem using the request.getParameter(String) method. We are using the method to define an argument for a Java Webstart (jnlp mime type) file we are creating with jsp. Other arguments have been successfully created using the request.getServerName() and request.getRequestURI() methods. The getParameter() return value looks fine if printed back to HTML. The jsp file creating the jnlp file is called using an HREF created inside another jsp file as follows:
    <a href="xmlfetch.jsp?filename=mti.xml""></a>
    The param value for filename in each HREF is filled using an String array entry (i.e. +names).
    The xmlfetch.jsp file uses StringBuffers to capture/store the servername, uri and param data as follows:
    StringBuffer svrname = new StringBuffer();
    svrname.append(request.getServerName());
    StringBuffer requri = new StringBuffer();
    requri.append(request.getRequestURI());
    StringBuffer fname = new StringBuffer();
    fname.append(request.getParameter("filename"));
    All 3 variables look ok if dumped in html as follows:
    out.println("svrname=" +svrname);
    out.println("requri=" +requri);
    out.println("fname=" +fname);
    But only the param value is null when the variables are passed as arguments in the jnlp stream as follows:
    <argument><%=svrname.toString()%></argument>
    <argument><%=requri.toString()%></argument>
    <argument><%=fname.toString()%></argument>
    So the question is ... why do the parameter values evaluate to non null when dumped to html but become null when used as an argument for jnlp? AND what is the difference between the strings returned by the 3 request methods we are using as arguments (i.e. why do 2/3 work?).
    ANY HELP APPRECIATED:)
    Greg Hock
    Software Engr
    Northrop Grumman Corp.
    (321) 726-7758
    [email protected]

    I have tried the parameter specification both with and without quotes but either case results in null value for argument going into the Java Webstart (.jnlp) file that I create in the second jsp file (xmlfetch.jsp). What I don't understand is why the parameter looks correct when sent out.println() but is null when not printed and only used for the jnlp app argument. Both the other variables assigned using request.getXXX() methods are ok as arguments...only the parameters passed from the first jsp page (mtiquery.jsp) to the second jsp page (xmlfetch.jsp) become null when used as the jnlp argument.
    Anyone ... please help. :)
    Here is the code for the first jsp page. This page creates a table of filenames each of which has a href link to the second jsp page and passes it's filename as the parameter.
    <%@ page
    language="java"
    import="java.util.*,java.text.*,java.io.*,javax.swing.filechooser.FileFilter"
    %>
    <html>
    <title>MTIX MTI Query Tool</title>
    <body>
    <p>
    <center>
    <h1>JSP MTI QueryTest</h1><br>
    <jsp:include page="copyright.jsp" flush="true"/>
    <br>
    <%=(new java.util.Date())%>
    <%
    String startPath = "../webapps/ATServlets/data/mti";
    File myDir = new File(startPath);
    String myPath = myDir.getCanonicalPath();
    out.println("<br><br><br>Results of Query Path: <br>" myPath "<br><br>");
    String[] filelist = myDir.list();
    out.println("<br>");
    out.println("<center>");
    out.println("<table BORDER COLS=1 width=400>");
    String urlPath = null;
    String hrefPath = null;
    for (int i=0; i<filelist.length; i++)
    urlPath = new String("\"http://judy:8080/ATServlets/jsp/xmlfetch.jsp?filename="+filelist[i]+ "\"");
    hrefPath = new String("<a href=" urlPath ">");
    out.println("<tr><td><center>");
    out.println(hrefPath + filelist[i] + "</a>");
    out.println("</center></td></tr>");
    out.println("</table>");
    out.println("</center>");
    %>
    </center>
    </body>
    </html>
    This first page resulted in source as follows:
    NOTICE that the second jsp page is the HREF and I am using "filename" as the parameter key and the value is assigned (without quotes) to be the filelist entry.
    <html>
    <title>MTIX MTI Query Tool</title>
    <body>
    <p>
    <center>
    <h1>JSP MTI QueryTest</h1><br>
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <p>(c) 1999,2000,2001 Northrop-Grumman All Rights Reserved </p>
    </body>
    </html>
    <br>
    Wed Aug 08 10:01:34 EDT 2001
    <br><br><br>Results of Query Path: <br>/opt/mtix/data/mti<br><br>
    <br>
    <center>
    <table BORDER COLS=1 width=400>
    <tr><td><center>
    MtiOutput.xml
    </center></td></tr>
    <tr><td><center>
    KoreaMTI.xml
    </center></td></tr>
    <tr><td><center>
    testMti.xml
    </center></td></tr>
    <tr><td><center>
    testMti2.xml
    </center></td></tr>
    <tr><td><center>
    testMti4.xml
    </center></td></tr>
    </table>
    </center>
    </center>
    </body>
    </html>
    OK Now here is the second jsp file (xmlfetch.jsp) that is fired up after the table selection. This file creates a stream to the Java Webstart plugin and tries to use the passed parameter as 1 of 3 arguments to the application (see last few lines). The variable fname is used to hold the contents of the getParameter() method.
    <%@ page
    contentType="application/x-java-jnlp-file"
    info="myjnlp"
    import="java.lang.*,java.text.*,java.io.*"
    %>
    <%
    StringBuffer fname = new StringBuffer();
    fname.append(request.getParameter("filename"));
    //fname.append("MtiOutput.xml");
    //out.println("the fname var = " +fname);
    StringBuffer cBase = new StringBuffer();
    cBase.append(!request.isSecure() ? "http://" : "https://");
    cBase.append(request.getServerName());
    if(request.getServerPort() != (request.isSecure() ? 80 : 443))
    cBase.append(':');
    cBase.append(request.getServerPort());
    StringBuffer httpref = new StringBuffer();
    httpref = cBase;
    httpref.append(request.getRequestURI());
    StringBuffer cBase2 = new StringBuffer();
    cBase2.append(!request.isSecure() ? "http://" : "https://");
    cBase2.append(request.getServerName());
    if(request.getServerPort() != (request.isSecure() ? 80 : 443))
    cBase2.append(':');
    cBase2.append("80");
    cBase2.append('/');
    cBase2.append("ATJava");
    cBase2.append('/');
    %>
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for downloading xml from servlet -->
    <jnlp
    spec="1.0"
    codebase="<%=cBase2.toString()%>"
    href="<%=httpref.toString()%>">
    <information>
    <title>Catalog Download Application</title>
    <vendor>Northrop Grumman, Inc.</vendor>
    <homepage href="ATJava.init/documents/index.html"/>
    <description>XML Catalog Download Application>
    <description kind="short">A demo.</description>
    <icon href="ATJava.init/images/tomcat.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.2" initial-heap-size="16m" max-heap-size="512m"/>
    <jar href="ATJava.build/ATJava.jars/ATSignedRuntime.jar" download="eager"/>
    </resources>
    <resources>
    <j2se version="1.3" initial-heap-size="16m" max-heap-size="512m"/>
    <jar href="ATJava.build/ATJava.jars/ATSignedRuntime.jar" download="eager"/>
    </resources>
    <application-desc main-class="mtix.XMLFetch">
    <argument><%=fname.toString()%></argument>
    <argument><%=cBase2.toString()%></argument>
    <argument><%=httpref.toString()%></argument>
    </application-desc>
    </jnlp>
    Please HELP/COMMENT if you can.... Gregg

  • Form displays NULL values

    A page is using PL/SQL script to display data. There are 2 display variables. Instead of bringing initial set of data, it displays NULL values. It "fixes" itself after changing variable values from a drop down menu. Why is that and how to fix it?

    If you plan on performing all of the work under the Click event, then you won't need to worry about assigning a Script scope to the variables, but if you are planning on using those variables outside of the Event, then David's answer is the way to go.
    Another option is to use a hash table as it also works around the issue with variable scope in a UI Event.
    #Define at beginning of script
    $hashtable = @{}
    $OKButton.Add_Click({$hashtable.SelectedTemplate=$Something})
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How to replace NULL values from main table

    Dear all,
    I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
    e.g.   I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
    any recommendation.
    Regards,
    Naeem

    Hi Naeem,
    You can try using Workflows for automatically replacing NULLs with any specific value.
    What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
    Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
    For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
    Hope this will solve your problem.
    Regards,
    Varun
    Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM

  • Exclude NULL values from SUM and AVG calculation

    Hi,
    I have column in report that contains some NULL values. When i perform SUM,MAX,MIN or AVG calculation on this column the NULL values are treated as '0' and included in calculation. Is there any way to exclude them while calculating aggregate functions? 
    As a result MIN calculation on values (NULL,0.7,0.5,0.9) gives me output as 0 when it should have been 0.5 
    Can someone please help ?
    Thanks and Regards,
    Oliver D'mello

    Hi Oliver,
    According to your description, you want to ignore the NULL values when you perform aggregation functions.
    In this scenario, aggregate functions always ignore the NULL values, because their operation objects are non-null values. So I would like to know if you have assigned “0” for NULL values. I would appreciate it if you could provide some screenshots about
    your expressions or reports.
    Besides, we have tested in our environment using  Min() function. The expression returns the minimum value among the non-null numeric values. Please refer to the screenshots below:
    Reference:
    Min Function (Report Builder and SSRS)
    Aggregate Functions Reference (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Null value in Nested table of nested table for xml guru Steve Muench

    The procedure I am using takes xml document with nested levels and insert into single table using DBMS_XMLSave.insertXML.
    I am able to insert into table without any error message but when I am selecting row from table, it is showing null values in all the column of nested table's inner nested table.
    When I am removing nested table's nested table by replacing with object type, it is showing data of object type for the first occurance and ignoring the rest nested occurance.
    Help is greatly appreciated.
    Below is the sql I used to create objects and table:-
    Create or Replace Type addressType as Object
    Line_one     varchar2(40),
    Line_two     varchar2(40),
    City          Varchar2(30),
    State          Varchar2(2),
    zip          Varchar2(10)
    Create or Replace Type ce_reqType as Object
    Status               varchar2(25),
    Status_date          Date,
    type_code          Varchar2(25),
    review_begin_date     Date,
    assigned_review_date     date
    Create or Replace type ce_reqListType
    as table of ce_reqType;
    Create or Replace Type LicenseType as Object
    type_code          Varchar2(10),
    license_number          Varchar2(16),
    ce_requirements      ce_reqListType
    Create or Replace type LicenseListType
    as table of LicenseType;
    Create table IndividualType
    individual_id          Number(9),
    social_security_number Varchar2(9),
    Last_name          varchar2(40),
    First_name          Varchar2(40),
    Middle_name          Varchar2(40),
    Birth_date          Date,
    address          addressType,
    Licenses          LicenseListType
    nested table licenses store as licensestab
    (nested table ce_requirements store as lic_ce_reqtab);

    Maddy wrote:
    dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)Because instead of adding an element to bookset collectionto are assigning (ergo replacing) it a collection containing last fetched book. Use:
    declare
        bookset book_table;
        ln_cnt pls_integer;
    begin
        bookset := book_table(book_obj('madhu','kongara','sudhan'));
        dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1
        bookset := book_table(); --> Assigning back to NULL.
        dbms_output.put_line('The count is '||bookset.count); --> I can see count as 0
        for rec in (select * from book) loop --> Now Looping two times.
          dbms_output.put_line(' name > '||rec.name);
          bookset.extend;
          bookset(bookset.count) := book_obj(rec.name, rec.author, rec.abstract);
        end loop;
        dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)
    end;
    The count is 1
    The count is 0
    name > Harry Potter
    name > Ramayana
    The count is 2
    PL/SQL procedure successfully completed.
    SQL> Or better use bulk collect:
    declare
        bookset book_table;
        ln_cnt pls_integer;
    begin
        bookset := book_table(book_obj('madhu','kongara','sudhan'));
        dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1
        bookset := book_table(); --> Assigning back to NULL.
        dbms_output.put_line('The count is '||bookset.count); --> I can see count as 0
        select  book_obj(name,author,abstract)
          bulk collect
          into  bookset
          from  book;
        for i in 1..bookset.count loop --> Now Looping two times.
          dbms_output.put_line(' name > '||bookset(i).name);
        end loop;
        dbms_output.put_line('The count is '||bookset.count); --> I can see COUNT =1 (why)
    end;
    The count is 1
    The count is 0
    name > Harry Potter
    name > Ramayana
    The count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.

Maybe you are looking for

  • Purchase order contains faulty items

    HI,   When I tried to change the plant of purchase order I'm getting an error " po contains faulty items, plant can't be changed",          I'm getting this error only for one line item out of 5, for other line items I didn't find any error. For this

  • How to  Connect to ftp server in active mode using the finder

    How can I can I use the finder command "connect to server" to connect to a ftp server using the active Mode. With Cyberduck I can connect to this server only in active mode. Apparently the connect to server command uses the ftp passive mode. Or is it

  • Problem regional formats setting

    Hi all, in my Dashboard I am using the SDK KPI Tile to show some values (but this problem occurs in others components too). In the initial view of my datasource I selected scaling factor 1,000. The KPI Tile should display the value 300 000 as 300 T€.

  • Magic mouse scrolling issue

    - I am having a weird problem with my magic mouse; it scrolls through pages with no problem, but will not function within flash games. It used to, beautifully in fact..now no response other than the page itself moving. i am running lion, 10.7.5 on a

  • Sound is Suddenly Quiet

    I changed the entire housing on my 8520 and now the various alert sounds are really quiet.  I cranked them all the way up but still they are sounding quietly.  Any thoughts on what to check to get them louder again?