JComboBox displaying multiple columns

I'm new with NetBeans and Java Swing and i've tried to create a combobox that displays 2 fields from a database table(ID an Name). But i can't build a right model for this.
Please give me an example of such a model.
Thanks.

What happens if you do
     Vector items = new Vector();
     items.addElement( new Item("1", "Car" ) );
     items.addElement( new Item("23", "Plane" ) );
     items.addElement( new Item("345", "Train" ) );
     items.addElement( new Item("4567", "Nuclear Submarine" ) );
     JComboBox combo=new LComboBox(items);Does that work? Are you sure it isn't a problem with LComboBox?
You may want to provide a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program
which demonstrates the problem you are experiencing.

Similar Messages

  • How can I display multiple column results of a sql query?

    I'm wanting to display the results of a query selecting from multiple columns, but I can't seem to find an item type that will allow this. I've tried LOV, multiselect, display as text and others. Any ideas on how to do this. Here is my basic query:
    Select ul.meaning,
    rqa.submission_date,
    rqa.location_num
    from
    cfa_rqa_doc_submit_dates rqa,
    cfa_user_lookups ul
    where
    rqa.location_num in (Select location_num from cfa_current_locations_mv
    where operator_person_id = :P1_PERSON_ID and substr(location_num,1,1) = '8')
    and
    ul.lookup_type_id='1269'
    and
    to_char(rqa.submission_date, 'month') = to_char(sysdate, 'month')
    and
    rqa.submission_date >= (SYSDATE-365)
    and ul.lookup_ID= rqa.document_type_id
    ;

    Hi,
    Do you just wish to display the result of the query? If so, you can simply parse it out in HTML.
    You can then choose if you want to use tables or css.
    Multiple column layout in tables are based on <tr> and <td>.
    <tr> is a table row, where <td> is a column.
    All tags should be closed.
    Example:
    <table>
    <tr>
    <td>col1</td><td>col2</td>
    </tr>
    <tr>
    <td colspan="2">spans over 2 cols</td>
    </tr>
    </table>If you want to do the same in css:
    (Seems this forum removes the styles!):
    float:left; width:50; << first div and 2 div (col 1 and col 2 style)
    float:left;clear:both; width:100%; << clear both, double width (spans over 2)
    <div>
    <div style="float:left; width:50;">col1</div><div style="float:left;width:50%;">col2</div>
    <div style="float:left;clear:both; width=100%;">Spans over 2 cols</div>
    </div>The div might look more complicated, but if you refrain from styling in the tags them selves, you can define different styles in the .css file.
    You need the clear:both to start a new line with the divs that float.
    I usually run a dedicated "new line" div, without content.. (exception beeing the html-entities version of ' ' (& nbsp ; << without the spaces)).
    eg.:
    <div style="cls"> </div>Parsing out the values from the PL SQL you do like so:
    begin
    declare
       cursor c_search is 
    Select ul.meaning,
    rqa.submission_date,
    rqa.location_num
    from
    cfa_rqa_doc_submit_dates rqa,
    cfa_user_lookups ul
    where
    rqa.location_num in (Select location_num from cfa_current_locations_mv
    where operator_person_id = :P1_PERSON_ID and substr(location_num,1,1) = '8')
    and
    ul.lookup_type_id='1269'
    and
    to_char(rqa.submission_date, 'month') = to_char(sysdate, 'month')
    and
    rqa.submission_date >= (SYSDATE-365)
    and ul.lookup_ID= rqa.document_type_id
    begin  
    htp.p('<div style="width:80%;">');
    for v_search in c_search loop
    htp.p('<div style="float:left;clear:none;">'||v_search.location_num||'</div>');
    htp.p('<div style="float:left;clear:none;">'||v_search.submission_date||'</div>');
    end loop;
    htp.p('</div>');
      end;
    end;Ps. hope I understood you correctly, also this code is untested.. but I hope it can still help.
    Edited by: Olav Alexander Mjelde on May 12, 2010 9:36 AM

  • Af:treeTable: how build tree that displays multiple columns?

    I only find a default single column behavior in the dev guide regarding af:treetable. Perhaps some of you might have already tried this out, I'm trying to build a master detail using a treetable with multiple columns. After establishing the ViewLink association and dragging the Master View Object onto the cavas, the default generated code looks like:
    <af:treeTable ...
    <f:facet name="nodeStamp">
    <af:column binding="#{backing_tree.column1}" id="column1"
    sortable="false" headerText="">
    <af:outputText value="#{node}"
    binding="#{backing_tree.outputText1}"
    id="outputText1"/>
    </af:column>
    </f:facet>
    </af:treeTable>
    This renderes the entire tree in one column, but my detail ViewObject contains multiple attributes and I would like seperate columns to display those values. I'm not sure how to extract the "#{node}" EL to output the detail or child ViewObject's values in seperate af:column. Can someone advise? Thank you.
    Z

    Luis, thanks for the suggestion. I did get the header labels to show, however, the values are still not being printed correctly. I have department as the Master or parent node and employee as the Detail or child node. Here is what I have
    <af:treeTable value="#{bindings.DeptView1.treeModel}" var="node"
    binding="#{backing_treeTest.treeTable1}" id="treeTable1"
    rowsByDepth="0 0">
    <f:facet name="nodeStamp">
    <af:column binding="#{backing_treeTest.column1}" id="column1">
    <f:facet name="header">
    <af:outputText value="Department Name"/>
    </f:facet>
    <af:outputText value="#{node.Dname}"
    binding="#{backing_treeTest.outputText1}"
    id="outputText1"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node.Dname}"
    binding="#{backing_treeTest.outputText2}"
    id="outputText2"/>
    </f:facet>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Employee Name"/>
    </f:facet>
    <af:outputText value="#{node.Ename}"
    binding="#{backing_treeTest.outputText3}"
    id="outputText3"/>
    </af:column>
    </af:treeTable>
    The Tree Table looks Like:
    Department Name | Employee Name
    - Accounting
    Thanks in advance,
    Z

  • Content Query display multiple columns

    Hello,
    I am using a content query web part (in sharepoint 2013) to display a list from another site. The problem is that I don't see enough info from that list because I can display maximum 2 columns.
    Is it possible to display more columns from this list with the Content query web part? I would like to display all the columns from this list. Do i need to make a display template or something? 
    Thanks. 

    You have to customize the CQWP.
    Please check the below link
    http://pholpar.wordpress.com/2010/01/21/displaying-results-in-multiple-columns-using-the-content-query-web-part/
    Other option is you ca use Dataview webpart to show the list details from one site to other site
    http://www.learningsharepoint.com/2012/08/12/sharepoint-2013-add-dataview-webpart-with-sharepoint-designer-2013/
    http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
    MCTS,MCPD Sharepoint 2010. My Blog-
    http://www.sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Displaying multiple columns of a single column query

    Would anyone happen to know how to display a result set in multiple horizontal columns as opposed to a single vertical column in ApEx?
    Example:
    select server_name from owner.servers;
    A normal sql report would return:
    server1
    server2
    server3
    server4
    server5
    server6
    What I'm looking for is a return that will display:
    server1 server2 server3
    server4 server5 server6

    I'm sure there's a much better way, but one thing that popped into my head was to make your report be a Dynamic PL/SQL Region.
    If you loop thru the records in a cursor, you can build a string and once you have "three" records, use the htp.p to print it out.
    So something like this maybe:
    v_count NUMBER(1);
    v_data SERVERS.SERVER_NAME%TYPE;
    v_string VARCHAR2(100);
    CURSOR getdata IS
    SELECT server_name
    FROM servers
    ORDER BY server_name;
    BEGIN
    v_count := 0;
    OPEN getdata;
    LOOP
    FETCH getdata INTO v_data;
    EXIT WHEN getdata%NOTFOUND;
    v_count := v_count + 1;
    IF v_count = 1 THEN
    v_string := rpad(v_data,25,' ');
    ELSIF v_count = 4 THEN
    htp.p(v_string);
    v_count := 1;
    v_string := rpad(v_data,25,' ');
    ELSE
    v_string := v_string||rpad(v_data,25,' ');
    END IF;
    END LOOP;
    CLOSE getdata;
    END;
    Variable lengths would need to be adjusted to fit your data, but you get the idea (hopefully).
    Again, perhaps it's not the most efficient, but it would work.
    Chad

  • Problem in displaying multiple column values using Narrative View

    Hi All,
    I have a requirement where in I need to display column 1 of an Answers report as a header and all values of column 2 below tht.
    There are multiple values from column 2 for every value in column 1
    Example:
    Group:
    Grp (This is column 1)
    Activity:
    Act1
    Act2
    Act3 (These are values from column 2)
    I have used narrative view for this which looks like:
    Group: @1
    Activity:@2[br/]
    But this displays the value of column1 along with every value of column 2. I want column 1 value to be displayed only once.
    Thanks in advance
    Radhika

    Hi see this link it may helpful
    Re: Narrative view not showing up in the report
    Re: how to transpose columns to rows in OBIEE
    Regards
    Naresh

  • How to display multiple column in report

    Hi Abaper,
    I have client requirment to develop new report for sim hotel.
    The requirment is we have select multiple hotel , based on hotel selection the report will display, the report layout like:
    Hotel1               |Hotel2               |Hotel 3          
    Day     |Month     |Year     |Day     |Month     |Year     |Day     |Month     |Year
    Please any one can give me idea  how to develop same layout for this requirment.
    Thanks in Advance.
    Regards,
    Sourav

    Hi,
    U can use write statement like below
    write:/ 'Day 1'.
    write:20 'Year 1'.
    This will leave 20 spaces between Day 1 and Year 1.
    For more information u can go to transaction 'ABAPDOCU' and in Keyword help type 'Write' u will get all options u can use with write statement.
    Let me know further.
    Cheers,
    Parth Parikh

  • How to display multiple columns under one item

    Hi
    i have one page in that page person having 4 (multipul) phone number
    i need to desplay under the item these phone numbers
    so witch item style i need take
    please tell me

    Hi,
    Create a stack Layout in advance table and under that stack layout create four messagesStyledTexts to show different numbers.
    Thanks,
    Gaurav

  • JComboBox: Multiple columns?

    How to get JComboBox to display multiple columns? In addition, how to extract the data from each column in the program? Thanks a lot.

    Hello!
    Thanks for help.
    It was my first try(the solution from that site).
    It works for a 1 column JComboBox.But i wanted to know if anyone used that example for multi-column JComboBox and if it works.
    I've tried to "adapt" it for myCombo but ....no luck...
    Any help on that ...PLS
    Thank you

  • Display mutiple columns in a drop down

    Has anyone found a way to display multiple columns in a drop down field? For example, I want to populate my drop down with an ID type field and associated DESCRIPTION1, DESCRIPTION2, DESCRIPTION3 and DESCRIPTION4 fields:
    10100101 EXTERNAL COMBUSTION BOILERS ELECTRIC GENERATION ANTHRACITE COAL PULVERIZED COAL
    10100102 EXTERNAL COMBUSTION BOILERS ELECTRIC GENERATION ANTHRACITE COAL TRAVELING GRATE (OVERFEED) STOKER
    This was possible in Form Designer 5 - you could add one to many columns in a drop down and choose which columns to display, set a column width, and choose which column was the "text" property and which was the "value" property of the drop down. For example, in my sample above the text "ANTHRACITE COAL TRAVELING GRATE (OVERFEED) STOKER" would display in the drop down and the value "10100102" would be saved as the value.

    The closest you can come is, taking from your example, you add the item "ANTRACITE COAL TRAVELING GRATE (OVERFEED) STOKER" to your drop down. Then in the binding tab you give that item the value "10100102".
    Chris
    Adobe Enterprise Developer Support

  • Multiple column list

    Dear All,
    Anybody can help me in the scenario....
    I want to display multiple columns (each column may contain multiple values) in java frame. What java control should i use? java.awt.List cannot show multiple columns. Remember the column and rows values which i want to display are not coming from database. It can be like i have an array for columns and array of row values for each column.
    I would be grateful if someone email me the solution at [email protected]
    Waiting for prompt reply.
    Thanks
    Kamran

    What about AWT.table or Swing.JTable ?

  • Multiple Columns In JComboBox

    Hi,
    Does anybody know if it's possible to display several (3) columns in a comboBox, and how do I achive it?
    The columns are retrived from a db.
    thanks
    gmtongar

    That depends on what you mean by "display several" columns. Do you mean display 12 distinct selections in three columns of four? Or do you mean display four distinct seletions each with three columns of information to represent it?
    The out of the box JComboBox displays its drop down area as a list so you can only have one selection per line. If you were to create your own UI or possibly your own version of a combo box (I am not sure how involved it would be) you could replace the drop down list with a drop down table. That would be a fair amount of work but it is doable.
    If you want three pieces of data per selection to appear you can do that by providing your own ListCellRenderer that displays the three strings in columns. Then make that your combo box's renderer.
    Ian

  • How to display MySql query results in multiple columns?

    Hi, I know how to display PHP/MySq
    l query results in a single column, but I am really stuck at displa
    ying the results in multiple columns in DW CS4.
    Can anyone help me with a code example?. I am new to php/mysql. Thanks

    Are you asking how to pivot the results of the query? Do a search for horizontal looping. If that's not what you are asking, please provide more details.

  • Customized CQWP display only multiple columns after migration to 2013 when source is a list.

    If I select Show items from all sites in this site collection or Show items from the following site and all subsites as Query source all my custom columns are with out value, if I select Show items from the following list every thing is as it should be.
    (Se picture)
    This is show multiple columns values correctly:
    <webParts>
      <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
        <metaData>
          <type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
        </metaData>
        <data>
          <properties>
            <property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="Direction" type="direction">NotSet</property>
            <property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="DataSourceID" type="string" />
            <property name="ChromeState" type="chromestate">Normal</property>
            <property name="SystemViewFields" type="string" />
            <property name="ListName" type="string">Document library</property>
            <property name="FilterDisplayValue3" type="string" />
            <property name="FilterDisplayValue2" type="string">5.7.2</property>
            <property name="FilterDisplayValue1" type="string">HCM/Payroll</property>
            <property name="FilterField1" type="string">SectionName</property>
            <property name="Description" type="string">Use to display a dynamic view of content from your site on a web page</property>
            <property name="DataColumnRenames" type="string" />
            <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
            <property name="PageSize" type="int">-1</property>
            <property name="ViewContentTypeId" type="string" />
            <property name="ParameterBindings" type="string" null="true" />
            <property name="HelpUrl" type="string" />
            <property name="AdditionalFilterFields" type="string" />
            <property name="DataMappingViewFields" type="string">{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;</property>
            <property name="Title" type="string">Prod CQWP</property>
            <property name="FeedDescription" type="string" />
            <property name="UseCache" type="bool">True</property>
            <property name="XslLink" type="string" null="true" />
            <property name="AutoRefresh" type="bool">False</property>
            <property name="Filter1IsCustomValue" type="bool">False</property>
            <property name="FireInitialRow" type="bool">True</property>
            <property name="FilterValue3" type="string" />
            <property name="SortByFieldType" type="string">DateTime</property>
            <property name="ManualRefresh" type="bool">False</property>
            <property name="HelpMode" type="helpmode">Modeless</property>
            <property name="AllowConnect" type="bool">True</property>
            <property name="ItemStyle" type="string">DesignDocumentsTest</property>
            <property name="SampleData" type="string">&lt;dsQueryResponse&gt;
                        &lt;Rows&gt;
                            &lt;Row Title="Item 1" LinkUrl="http://Item1" Group="Group Header" __begincolumn="True"
    __begingroup="True" /&gt;
                            &lt;Row Title="Item 2" LinkUrl="http://Item2" __begincolumn="False" __begingroup="False"
    /&gt;
                            &lt;Row Title="Item 3" LinkUrl="http://Item3" __begincolumn="False" __begingroup="False"
    /&gt;
                        &lt;/Rows&gt;
                        &lt;/dsQueryResponse&gt;</property>
            <property name="FilterIncludeChildren2" type="bool">False</property>
            <property name="XmlDefinitionLink" type="string" />
            <property name="ServerTemplate" type="string">101</property>
            <property name="TitleUrl" type="string" />
            <property name="CommonViewFields" type="string">Title,Text;Product_x0020_Name,Choice;Areabranch,Choice;ProdcutDesignDocCategory,Choice;User_x0020_Story,Text;Status,Choice</property>
            <property name="QueryOverride" type="string" />
            <property name="DataSourcesString" type="string" />
            <property name="DisplayName" type="string" />
            <property name="ListGuid" type="string">ce5f8d8e-6ab9-4ed1-8c10-557362473348</property>
            <property name="DataFields" type="string" />
            <property name="ShowWithSampleData" type="bool">False</property>
            <property name="GroupByFieldType" type="string">Choice</property>
            <property name="Default" type="string" />
            <property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
            <property name="ContentTypeBeginsWithId" type="string">0x010100634C5EFE866C834E92467F3F8D9C37C7080401</property>
            <property name="AllowHide" type="bool">True</property>
            <property name="FeedEnabled" type="bool">False</property>
            <property name="SortBy" type="string">Modified</property>
            <property name="FilterByContextTerm" type="bool">False</property>
            <property name="TitleIconImageUrl" type="string" />
            <property name="PlayMediaInBrowser" type="bool">True</property>
            <property name="ViewFlag" type="string">0</property>
            <property name="Xsl" type="string">&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" &gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /&gt; &lt;xsl:import href="/Style
    Library/XSL Style Sheets/ItemStyle.xsl" /&gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /&gt; &lt;/xsl:stylesheet&gt;</property>
            <property name="FilterField2" type="string">Product_x0020_Version</property>
            <property name="ChromeType" type="chrometype">TitleOnly</property>
            <property name="CacheXslTimeOut" type="int">86400</property>
            <property name="AdditionalGroupAndSortFields" type="string" />
            <property name="UseSQLDataSourcePaging" type="bool">True</property>
            <property name="Height" type="string" />
            <property name="DataMappings" type="string">User_x005F_x0020_Story:|LinkUrl:|Description:|OpenInNewWindow:|Product_x005F_x0020_Name:|Areabranch:|ImageUrl:|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|LinkToolTip:|ProdcutDesignDocCategory:|Status:|SipAddress:|</property>
            <property name="ListUrl" type="string" null="true" />
            <property name="ShowUntargetedItems" type="bool">False</property>
            <property name="AllowMinimize" type="bool">True</property>
            <property name="GroupBy" type="string">Areabranch</property>
            <property name="FilterIncludeChildren1" type="bool">False</property>
            <property name="BaseType" type="string" />
            <property name="MainXslLink" type="string" />
            <property name="AsyncRefresh" type="bool">False</property>
            <property name="FilterValue1" type="string">HCM/Payroll</property>
            <property name="FilterValue2" type="string">5.7.2</property>
            <property name="InitialAsyncDataFetch" type="bool">False</property>
            <property name="AutoRefreshInterval" type="int">60</property>
            <property name="Filter3IsCustomValue" type="bool">False</property>
            <property name="GroupStyle" type="string">Band</property>
            <property name="AllowZoneChange" type="bool">True</property>
            <property name="FilterIncludeChildren3" type="bool">False</property>
            <property name="EnableOriginalValue" type="bool">False</property>
            <property name="ItemLimit" type="int">3</property>
            <property name="FilterType1" type="string">Choice</property>
            <property name="UseCopyUtil" type="bool">True</property>
            <property name="FilterType3" type="string" />
            <property name="FilterType2" type="string">Choice</property>
            <property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
            <property name="FilterByAudience" type="bool">False</property>
            <property name="ItemXslLink" type="string" />
            <property name="Hidden" type="bool">False</property>
            <property name="WebUrl" type="string">~sitecollection/ProductDevelopment/HCMPayroll/HRMSproject572</property>
            <property name="HeaderXslLink" type="string" />
            <property name="CacheXslStorage" type="bool">True</property>
            <property name="ListsOverride" type="string" />
            <property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="Filter2IsCustomValue" type="bool">False</property>
            <property name="AllowEdit" type="bool">True</property>
            <property name="FeedTitle" type="string" />
            <property name="FilterField3" type="string" />
            <property name="MediaPlayerStyleSource" type="string" null="true" />
            <property name="DisplayColumns" type="int">2</property>
            <property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="XmlDefinition" type="string" />
            <property name="WebsOverride" type="string" />
            <property name="AllowClose" type="bool">True</property>
            <property name="ContentTypeName" type="string" />
            <property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
            <property name="ExportMode" type="exportmode">All</property>
            <property name="NoDefaultStyle" type="string" null="true" />
            <property name="ViewFieldsOverride" type="string" />
            <property name="CatalogIconImageUrl" type="string" />
            <property name="ListDisplayName" type="string" null="true" />
            <property name="Width" type="string" />
          </properties>
        </data>
      </webPart>
    </webParts><label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>
    This is with missing columns values
    <webParts>
      <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
        <metaData>
          <type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
        </metaData>
        <data>
          <properties>
            <property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">And</property>
            <property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="Direction" type="direction">NotSet</property>
            <property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="DataSourceID" type="string" />
            <property name="ChromeState" type="chromestate">Normal</property>
            <property name="SystemViewFields" type="string" />
            <property name="ListName" type="string" />
            <property name="FilterDisplayValue3" type="string" />
            <property name="FilterDisplayValue2" type="string">5.7.2</property>
            <property name="FilterDisplayValue1" type="string">HCM/Payroll</property>
            <property name="FilterField1" type="string">{a10809c0-a375-4279-ade5-2603dbdcd7e9}</property>
            <property name="Description" type="string">Use to display a dynamic view of content from your site on a web page</property>
            <property name="DataColumnRenames" type="string" />
            <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
            <property name="PageSize" type="int">-1</property>
            <property name="ViewContentTypeId" type="string" />
            <property name="ParameterBindings" type="string" null="true" />
            <property name="HelpUrl" type="string" />
            <property name="AdditionalFilterFields" type="string" />
            <property name="DataMappingViewFields" type="string">{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;</property>
            <property name="Title" type="string">Prod 1 Lib CQWP</property>
            <property name="FeedDescription" type="string" />
            <property name="UseCache" type="bool">True</property>
            <property name="XslLink" type="string" null="true" />
            <property name="AutoRefresh" type="bool">False</property>
            <property name="Filter1IsCustomValue" type="bool">False</property>
            <property name="FireInitialRow" type="bool">True</property>
            <property name="FilterValue3" type="string" />
            <property name="SortByFieldType" type="string">DateTime</property>
            <property name="ManualRefresh" type="bool">False</property>
            <property name="HelpMode" type="helpmode">Modeless</property>
            <property name="AllowConnect" type="bool">True</property>
            <property name="ItemStyle" type="string">RDDesignDocuments</property>
            <property name="SampleData" type="string">&lt;dsQueryResponse&gt;
                        &lt;Rows&gt;
                            &lt;Row Title="Item 1" LinkUrl="http://Item1" Group="Group Header" __begincolumn="True"
    __begingroup="True" /&gt;
                            &lt;Row Title="Item 2" LinkUrl="http://Item2" __begincolumn="False" __begingroup="False"
    /&gt;
                            &lt;Row Title="Item 3" LinkUrl="http://Item3" __begincolumn="False" __begingroup="False"
    /&gt;
                        &lt;/Rows&gt;
                        &lt;/dsQueryResponse&gt;</property>
            <property name="FilterIncludeChildren2" type="bool">False</property>
            <property name="XmlDefinitionLink" type="string" />
            <property name="ServerTemplate" type="string">101</property>
            <property name="TitleUrl" type="string" />
            <property name="CommonViewFields" type="string">Title,Text;Product_x0020_Name,Choice;Areabranch,Choice;ProdcutDesignDocCategory,Choice;User_x0020_Story,Text;Status,Choice</property>
            <property name="QueryOverride" type="string" />
            <property name="DataSourcesString" type="string" />
            <property name="DisplayName" type="string" />
            <property name="ListGuid" type="string" />
            <property name="DataFields" type="string" />
            <property name="ShowWithSampleData" type="bool">False</property>
            <property name="GroupByFieldType" type="string">Text</property>
            <property name="Default" type="string" />
            <property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
            <property name="ContentTypeBeginsWithId" type="string">0x010100634C5EFE866C834E92467F3F8D9C37C7080401</property>
            <property name="AllowHide" type="bool">True</property>
            <property name="FeedEnabled" type="bool">False</property>
            <property name="SortBy" type="string">{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}</property>
            <property name="FilterByContextTerm" type="bool">False</property>
            <property name="TitleIconImageUrl" type="string" />
            <property name="PlayMediaInBrowser" type="bool">True</property>
            <property name="ViewFlag" type="string">0</property>
            <property name="Xsl" type="string">&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" &gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /&gt; &lt;xsl:import href="/Style
    Library/XSL Style Sheets/ItemStyle.xsl" /&gt; &lt;xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /&gt; &lt;/xsl:stylesheet&gt;</property>
            <property name="FilterField2" type="string">{d51bf689-5b9f-454b-9d6a-4e2c375ec3fe}</property>
            <property name="ChromeType" type="chrometype">TitleOnly</property>
            <property name="CacheXslTimeOut" type="int">86400</property>
            <property name="AdditionalGroupAndSortFields" type="string" />
            <property name="UseSQLDataSourcePaging" type="bool">True</property>
            <property name="Height" type="string" />
            <property name="DataMappings" type="string">User_x005F_x0020_Story:|LinkUrl:|Description:|OpenInNewWindow:|Product_x005F_x0020_Name:|Areabranch:|ImageUrl:|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|LinkToolTip:|ProdcutDesignDocCategory:|Status:|SipAddress:|</property>
            <property name="ListUrl" type="string" null="true" />
            <property name="ShowUntargetedItems" type="bool">False</property>
            <property name="AllowMinimize" type="bool">True</property>
            <property name="GroupBy" type="string">{5c67db99-375a-4afa-a1b0-16f2aac40bb8}</property>
            <property name="FilterIncludeChildren1" type="bool">False</property>
            <property name="BaseType" type="string" />
            <property name="MainXslLink" type="string" />
            <property name="AsyncRefresh" type="bool">False</property>
            <property name="FilterValue1" type="string">HCM/Payroll</property>
            <property name="FilterValue2" type="string">5.7.2</property>
            <property name="InitialAsyncDataFetch" type="bool">False</property>
            <property name="AutoRefreshInterval" type="int">60</property>
            <property name="Filter3IsCustomValue" type="bool">False</property>
            <property name="GroupStyle" type="string">Band</property>
            <property name="AllowZoneChange" type="bool">True</property>
            <property name="FilterIncludeChildren3" type="bool">False</property>
            <property name="EnableOriginalValue" type="bool">False</property>
            <property name="ItemLimit" type="int">3</property>
            <property name="FilterType1" type="string">Text</property>
            <property name="UseCopyUtil" type="bool">True</property>
            <property name="FilterType3" type="string" />
            <property name="FilterType2" type="string">Text</property>
            <property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Eq</property>
            <property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
            <property name="FilterByAudience" type="bool">False</property>
            <property name="ItemXslLink" type="string" />
            <property name="Hidden" type="bool">False</property>
            <property name="WebUrl" type="string" />
            <property name="HeaderXslLink" type="string" />
            <property name="CacheXslStorage" type="bool">True</property>
            <property name="ListsOverride" type="string" />
            <property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Asc</property>
            <property name="Filter2IsCustomValue" type="bool">False</property>
            <property name="AllowEdit" type="bool">True</property>
            <property name="FeedTitle" type="string" />
            <property name="FilterField3" type="string" />
            <property name="MediaPlayerStyleSource" type="string" null="true" />
            <property name="DisplayColumns" type="int">2</property>
            <property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c">Or</property>
            <property name="XmlDefinition" type="string" />
            <property name="WebsOverride" type="string" />
            <property name="AllowClose" type="bool">True</property>
            <property name="ContentTypeName" type="string" />
            <property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
            <property name="ExportMode" type="exportmode">All</property>
            <property name="NoDefaultStyle" type="string" null="true" />
            <property name="ViewFieldsOverride" type="string" />
            <property name="CatalogIconImageUrl" type="string" />
            <property name="ListDisplayName" type="string" null="true" />
            <property name="Width" type="string" />
          </properties>
        </data>
      </webPart>
    </webParts>
    <label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>
    <label for="ctl00_MSOTlPn_EditorZone_Edit0g_789619b5_3406_469e_8b24_fc42ff130ea0_CBQToolPartshowItemsFromListRadioButton"></label>

    Hi, 
    may i know how many items that you have that CQWP filter for?
    because as i remember there should be a limitation on the items number.
    http://technet.microsoft.com/en-us/library/cc262813(v=office.14).aspx
    http://office.microsoft.com/en-us/sharepoint-foundation-help/manage-lists-and-libraries-with-many-items-HA010377496.aspx
    you can try to upsize the threshold but it will affect your environment's performance.
    http://blogs.msdn.com/b/dinaayoub/archive/2010/04/22/sharepoint-2010-how-to-change-the-list-view-threshold.aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • To display comma separted value into multiple column

    Hi,
    I want to display value into multiple column like below
    data is like this
    col1
    res_menaHome:MenaHome
    res_menaHomeEmp:MenaHome Employee
    res_MDSpecialSer:MD Special Services
    res_Smart:Smart
    now i want to display like
    col1 col2
    res_menaHome MenaHome
    res_menaHomeEmp MenaHome Employee
    res_MDSpecialSer MD Special Services
    res_Smart Smart
    Thanks in advance.

    You mean like this?
    with q as (select 'res_menaHome:MenaHome' myString from dual)
    select substr(myString, 1, instr(myString, ':') - 1) col1,
    substr(myString, instr(myString, ':') + 1) col2
    from q
    COL1,COL2
    res_menaHome,MenaHome

Maybe you are looking for