How to remove null values from list?

I had created a list in forms 6i and I am getting list values at run time using add_list_item function. The problem is I am getting null value at end of the list. In the property pallet I kept required yes and set the initial value but it is not removing null value. Can any one help me. Thank you.......

Hello
Sorry mis-read question on first reply.
1. Have you set a default value?
2. Is this default value still in your list?
3. What happens if you default the list's value to a value you know exists after you have populated it?
Cheers
Q
Message was edited by:
Q_STEPHENSON

Similar Messages

  • How to remove NULL values from crosstab sheet in Viewer/Plus.

    I created a worksheet as crosstab. The sheet shows blanks in Desktop when there is no data in the cell, but the same sheet is showing NULL in Viewer. Is there any solution to make NULL as 0 or blank in Viewer?
    Thank you.

    Here you can find solution for this issue and its works for me......
    Show null values as

  • Remove null values from query

    Hi All;
    Below is my query and the output and i need to remove null values from the output
    Any help regarding same is much appreciated
    Thanks
    ; WITH CTE AS
    select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,a.new_mainprogramme_idname,
    a.new_subprogramme_idname,
    a.owneridname,
    a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    from opportunity a
    left join contact c on (c.contactid = a.parentcontactid)
    inner join activitypointer ap on ( ap.regardingobjectid = c.contactid )
    inner join appointment appt on (appt.activityid = ap.ActivityId)
    where
    appt.new_didmeetingtakeplace = 1
    and appt.statecode = 1 and
    (a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
    group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid, c.contactid,c.fullname,a.owneridname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,
    a.new_dateofapplication,ap.scheduledstart,
    ap.scheduleddurationminutes
    union
    select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,a.owneridname,
    a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    from opportunity a
    left join contact c on (c.contactid = a.parentcontactid)
    inner join activitypointer ap on (ap.regardingobjectid = a.opportunityid)
    inner join appointment appt on (appt.activityid = ap.ActivityId)
    where
    appt.new_didmeetingtakeplace = 1
    and appt.statecode = 1 and
    (a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
    group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,a.owneridname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,
    c.fullname,a.new_dateofapplication,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    CTE2 As
    select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,
    ac.new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    case when ac.new_businessstartdate > = CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end as PreStartHours,
    case when ac.new_businessstartdate < CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end as PostStartHours
    pp.new_outputs,
    case when po.new_outputsname = 'Pre Start Assist'
    then 'Yes' else 'No' end as Precheck,
    case when po.new_outputsname = 'Business Assist'
    then 'Yes' else 'No' end as Buscheck
    from CTE
    join account ac on (ac.accountid = CTE.parentcustomerid)
    join dbo.new_programmeoutput as po on (CTE.opportunityid = po.new_relatedopportunity)
    join dbo.new_programmeprofile pp on (
    po.new_mainprogrammeid = pp.new_mainprogrammeid and
    po.new_subprogrammeid = pp.new_subprogrammeid
    and pp.new_claimstartdate = po.new_claimdate
    and pp.new_outputsname = po.new_outputsname)
    where (ac.SCRIBE_DELETEDON is null)
    group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,ac.new_businessstartdate,new_dateofapplication,NoOfAppointments,
    scheduledstart,new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,scheduleddurationminutes
    select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
    new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    PreStartHours, PostStartHours,po.new_programmeoutputid,
    case when (new_outputsname) = 'Pre Start Assist'
    then 'Yes' else 'No' end as Precheck,
    case when (new_outputsname) = 'Business Assist'
    then 'Yes' else 'No' end as Buscheck --po.*
    from cte2
    left join dbo.new_programmeoutput as po on (cte2.opportunityid = po.new_relatedopportunity)
    where po.new_claimmonthidname is not null and po.statuscode_displayname = 'claimed'
    group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
    new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    PreStartHours, PostStartHours,po.new_programmeoutputid,new_outputsname
    --where new_claimmonthidname is not null --and CTE2.PreStartHours is not null and CTE2.PostStartHours is not null
    Pradnya07

     i need to remove null values from the output
    Hello,
    What exactly do you mean with "remove", to filter the rows out from result set or to replace the null value by an other value e.g. 0? This can be done with the
    ISNULL function:
    ISNULL(case when ac.new_businessstartdate > = CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end, 0) as PreStartHours, ...
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • 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

  • How to post null values from h:inputText?

    Hello,
    I have a form made of h:inputText fields that map to an entity class as the backing bean. Whenever I post the form from a web page, all the fields that I did not fill out and that are mapped to String fields in the entity class are set to "" (empty string) instead of null.
    However, I would like to post null values to my entity, because that would indicate that the user did not fill out the field. In other contexts (outside of the web app) it is possible to set the fields to empty strings, but from the web app it should always be null. How can I get JSF to do this correctly?
    Also, when reading entitys with null values from the database, these are converted to empty h:inputText fields, so this direction works as expected.
    Ulrich

    I haven't seen a solution for this as far.
    This is how I do it:
    public void action() {
        if (isEmpty(inputValue)) {
            // do your thing
        } else {
            // do your thing
    public static boolean isEmpty(Object value) {
        if (value == null) {
            return true;
        if (value instanceof String && ((String) value).trim().length() == 0) {
            return true;
        if (value instanceof Collection && ((Collection) value).size() == 0) {
            return true;
        // And go so on .. make it an utility method.
        return false;
    }

  • Removing Null values from character string

    Hi All,
    Can i remove NULL values (hexadecimal - 0000) from character string. I am uploading a file from presentation layer (shared server) and getting NULL values in many fields which i want to remove.
    please assist.
    Thanks for you help..
    Regards,
    Mohaiyuddin

    Hi,
    Most likely, nobody needed it, but if anybody in future will need the solution for related problem  - here's solution:
    data: lv_nullchar type xstring value '0'.
    shift lv_xstring right deleting trailing lv_nullchar in byte mode.
    shift lv_xstring left deleting leading lv_nullchar in byte mode.
    This hack deleting null chars in lv_xstring at end file and at begining of file. Works perfect for me, where i also worked with files.

  • How to remove a value from a vector of vectors

    How can I remove a value from a vector inside another vector, say;
    Vector myvector= new Vector();
    Vector data= new Vector();
    myvector.addElement(rs.getString(1));
    myvector.addElement(rs.getString(2));
    myvector.addElement(rs.getString(3));
    data.addElement(myvector);
    I want to get an element in the Vector "myvector" at index 2.

    import java.util.*;
    public class Test {
      public static void main(String args[]) {
        Vector myvector= new Vector();
        Vector data= new Vector();
        myvector.addElement("Zero");
        myvector.addElement("One");
        myvector.addElement("Two");
        data.addElement(myvector);
        System.out.println("main vector initially contains:" + data);
        myvector.remove(1);
        System.out.println("main vector now contains:" + data);
    }Output:
    main vector initially contains:[[Zero, One, Two]]
    main vector now contains:[[Zero, Two]]
    Just to be sure I was correct in the first place. Perhaps you should have done likewise before continuing stick to your guns.

  • How to remove default value from table definition?

    Hi,
    running 9.2
    Following problem :
    I need to remove default value from table.
    Example
    CREATE TABLE MY_TABLE(
    NAME VARCHAR2(50) DEFAULT 'NAME',
    AGE NUMBER DEFAULT 0
    Now even when I use MODIFY like
    ALTER TABLE MY_TABLE MODIFY (NAME VARCHAR2(10) );
    The default is still there:
    SELECT DATA_DEFAULT FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MY_TABLE';
    Is there any way?
    Thanks

    Thanks,
    found the answer. It is not possible!!!!
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm
    Note:
    If a column has a default value, then you can use the DEFAULT clause to change the default to NULL, but you cannot remove the default value completely. That is, if a column has ever had a default value assigned to it, then the DATA_DEFAULT column of the USER_TAB_COLUMNS data dictionary view will always display either a default value or NULL

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • How to remove all values from column

    Hi all
    I have one table and in that i have one column which contain some null value.now i want add a not null constraint on that column but it already contain null values.
    how shuld i delete that column value only or how should i proceed now please help me

    What do you mean by REMOVE?
    All values for that column are null or not? if not, then can those value removable?
    NULL means no value, how can you remove non-existing value?
    Update the null column to default value is one way.
    the other is to drop the column and add it again together with your not -null constraint.
    But I definitely wouldn`t recommend this approach in your case since some of your records have values for that column.

  • How to eliminate null values from the data?

    This query displays data for a project with approval & submission dates...I'm trying to eliminate records that have null values in Approval & submission date columns at the same time. But rather keep the records that have atleast one submission date or approval date?
    SELECT distinct QP.QIP_id,
            Max(decode( Upper(QP.Status_CD), Upper('Approved') , Effective_date, null ))  as Approved_date,
            Max( decode( Upper(QP.Status_CD), Upper('Submitted') , Effective_date, null ) ) as Submitted_date
             FROM  Llp_Sys.Project_Status QP
             WHERE SYSDATE >= qp.effective_date
                AND (qp.terminated_date IS NULL OR SYSDATE < qp.terminated_date)
            GROUP by QP.QIP_ID,Qp.Status_CD
            order by QP.QIP_ID

    francislazaro wrote:
    This query displays data for a project with approval & submission dates...I'm trying to eliminate records that have null values in Approval & submission date columns at the same time. But rather keep the records that have atleast one submission date or approval date?
    SELECT distinct QP.QIP_id,
    Max(decode( Upper(QP.Status_CD), Upper('Approved') , Effective_date, null ))  as Approved_date,
    Max( decode( Upper(QP.Status_CD), Upper('Submitted') , Effective_date, null ) ) as Submitted_date
    FROM  Llp_Sys.Project_Status QP
    WHERE SYSDATE >= qp.effective_date
    AND (qp.terminated_date IS NULL OR SYSDATE < qp.terminated_date)
    GROUP by QP.QIP_ID,Qp.Status_CD
    order by QP.QIP_ID
    based on my assumption, will the following not work ? if so then post some sample data and expected output (simplify as much as possible)
    SELECT *
      FROM (SELECT DISTINCT qp.qip_id,
                            MAX(DECODE(UPPER(qp.status_cd),
                                       UPPER('Approved'), effective_date,
                                       NULL
                                      )) AS approved_date,
                            MAX(DECODE(UPPER(qp.status_cd),
                                       UPPER('Submitted'), effective_date,
                                       NULL
                                      )) AS submitted_date
                       FROM llp_sys.project_status qp
                      WHERE SYSDATE >= qp.effective_date
                        AND (   qp.terminated_date IS NULL
                             OR SYSDATE < qp.terminated_date
                   GROUP BY qp.qip_id, qp.status_cd
                   ORDER BY qp.qip_id)
    WHERE approved_date IS NOT NULL OR submitted_date IS NOT NULL;Edited by: Clearance 6`- 8`` on Jul 9, 2010 12:46 PM

  • How to include null values from DB

    Hi,
    I want to see all columns values even though it may contain null values. Right now all null columns are being suppresed by XSQL. Is there any way i can configure this.
    Thanks in advance
    Regards
    Veera

    use the following attribute in the <xsql:query> element (see the xsql help!):
    <xsql:query null-indicator = "yes">..
    </xsql:query>
    Indicates whether to signal that a column's value is NULL by including the NULL="Y" attribute on the element for the column. By default, columns with NULL values are omitted from the output. Valid values are 'yes' and 'no'.(Default value is 'no')

  • Remove null values from string array

    Hi ,
    I have a string array in a jsp page which I save some values inside. After I store the values I want to print only those who are not null. How can I do this? Is there a way to delete the null values?

    Thank you but because I am new in programming what do you mean to use continue. Can you explain it a little bit further?<%
    //go through the array to check all the values
    for(int i=0; i<array.length();i++) {
    //If array is null, nothing happen
    if(array==null){
    //leave here blank; instead use continue like:
    //this will skip the statements next to it, and increments the value of i in for loop and continues to execute the body of for loop.
    //The same will be repeated till the last iteration.
    continue;
    //If array not null, then print value in a new line
    else{
    out.print(array+"<br>"); //don't change the logic here
    %>

  • Removing null values from a chart

    Hello,
    I have a chart embedded in  a Crystal report. (v.11.5).  The data set essentially is a value per date, but because of the way the stored procedure is written, I have null values returned.   Is there anyway to have the chart ignore null values?
    Thanks
    Ray

    Even if the SP returns null values, in your record selection criteria couldnt you just say NOT ISNULL() and thus eliminate null values?

Maybe you are looking for

  • My iTunes won't open on the new ios7

    my iTunes won't open with the new iOS7. it will start to open then crash.

  • HP Pro L7680 all-in-one printing extra blank pages

    No matter what I print the printer adds a blank page before and after each print job. Doesn't matter application amd I don't see it on fax, scans or copies. Thi shappened after my laptop had to be wiped and reloaded. I reloaded the drivers and has ha

  • Raw and DNG

    Have been successfully using RAW and DNG conversion with Canon 20D in CS3. New Canon 5D Mark II. No longer able to covert to DNG or open RAW files. Have downloaded updates RAW 4.6 and corresponding DNG converter that are supposed to work in CS3. Stil

  • Quadro v GTX 980?

    We are specialist UK TV production unit using win 7 pcs (who on earth would use 8?) in PAL at 25 fps of course. Adobe Premier pro, after effects etc etc CC 2014  latest incarnation installed on each and all three are v fast i7 multi thread chips with

  • G4 PB 12" aliminium turns itself on

    My G4 PB 12" aliminium has begun to turn itself on for no apparent reason. It has just begun to do this. I shut it down from the menu then sometime later I will hear the chime and it has turned itself back on without human intervention. This happens