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
Similar Messages
-
Full text query across multiple columns
In the SQL Server, when you do the full text query, you can specify multiple columns, e.g.
FREETEXT ( { column_name | [b](column_list) | * } , 'freetext_string' [ , LANGUAGE language_term ] )
CONTAINS ( { column_name | [b](column_list) | * } , '< contains_search_condition>' [ , LANGUAGE language_term ])
Where,
column_list Indicates that several columns, separated by a comma, can be specified...
* Specifies that all columns in the table registered for full-text searching should be used to search for the given contains search condition. The columns in the CONTAINS clause must come from a single table...
That makes full text query cross multiple columns very convenient. Are there any mechnisms in Oracle to do the same thing?
Thanks in advance.Thanks for your reply.
I knew that you could build full text index for the multiple columns using Oracle Text. But that does not solve my problem, which is how to build the query to search multiple columns at once. Say, I have columns firstname, lastname, address, and email in the table customers. I want to get the results that ANY column contains 'bob'. In SQL Server, I can do
select * from customers where contains(*, 'bob')
that is. But for Oracle, I have to do
select * from customers where contains('firstname', 'bob') or contains('lastname', 'bob') or contains('address', 'bob') or contains('email', 'bob')
Can you imagine if I have many columns in many tables and I have to do the query against all columns in all tables? I have to dynamically get all the columns and then build the query string.
So, any better solutions? -
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.
ZLuis, 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 -
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 server6I'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
RadhikaHi 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,
SouravHi,
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 -
Select Query where multiple column in multiple values (cant use in clause)
I can use (in clause) with on column like this:
Select code from table where code in(1,2,3)
-------------------------------My case:-------------------------------------------------
I’ve 4 columns PK of table as below
I need to :
select
where (code, month, year) in ((1,1,2013) and (2,1,2014) and (2,2,2015))
i can't write it this way :
select where code in (1,2) and month in (1,2) and year in (2013,2014,2015)
case i'll get my rows but others included like (1,1,2015) , (1,1,2014),(2,1,2013) .. etc
I’m terribly want to solve this problem
Please help me
Code (pk)
Month (pk)
Year (pk)
emp_code(pk)
1
1
2013
101
1
1
2013
102
2
1
2013
101
2
1
2013
102
1
2
2013
101
1
2
2013
102
2
2
2013
101
2
2
2013
102
1
1
2014
101
1
1
2014
102
2
1
2014
101
2
1
2014
102
1
2
2014
101
1
2
2014
102
2
2
2014
101
2
2
2014
102
1
1
2015
101
1
1
2015
102
2
1
2015
101
2
1
2015
102
1
2
2015
101
1
2
2015
102
2
2
2015
101
2
2
2015
102
thank youIn T-SQL you have to use OR-ed predicates.
In full ANSI Standard SQL youcan write row comparisons (a,b,c) = (1,2,3) etc! but not in T-SQL dialect. Ignoring that problem, what you have is a design flaw called attribute splitting; you have put one unit of measurement
in two columns.
I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the
ISO-8601 data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
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. -
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 meHi,
Create a stack Layout in advance table and under that stack layout create four messagesStyledTexts to show different numbers.
Thanks,
Gaurav -
Content Query Web Part will not display all fields.
I would love some assistance on this. When I choose fields to display in the Web Part they do not appear. And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
a great start but it is only applicable to '07 and '10. Where is the detailed info for SP 2013??Hi,
According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
The method in the link below is also can be used for SharePoint 2013:
http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
Do you encounter any issue when customizing in in a Content Query Web Part?
Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Hi All,
Question: How do I filter rows out of a query where multiple columns are equal to a single question mark character?
Background: I'm using SQL 2008 R2. Furthermore, the part of my brain that helps me create less-than-simple queries hasn't been working for the last 4 days, apparently, and now I need help.
We have about 4,000 rows in a table. This data set was generated from an exported report, and many of the rows in the detail table were not actual data rows but were simply "header" rows. For those table rows, most of the columns have
a single question mark as the value.
Some of the detail rows have one or more question mark values, too, so it's important that these rows don't get filtered out.
When I include criteria like "WHERE col1 <> '?' AND col2 <> '?' AND col3 <> '?' AND col4 <> '?'", all rows with a question mark value for even a single one of those columns get filtered out. How do I filter out rows
where all columns 1-4 contain a question mark value?
Thanks for your help,
EricI just tried to create to create a scenario for you. Please see ig you're looking for something like this.
Create table test_Question_mark
RecordID INT identity(1,1),
Col1 varchar(10),
Col2 varchar(10),
Col3 varchar(10),
Col4 varchar(10),
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','??','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','??','??','??')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ??','??','??')
insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ?','??','??')
--drop table test_Questio_mark
select * from test_Question_mark
select * from test_Question_mark
WHERE
(CHARINDEX('?', Col1,1) > 0 AND CHARINDEX('?', Col1, CHARINDEX('?', Col1,1)+1) = 0) AND
(CHARINDEX('?', Col2) > 0 AND CHARINDEX('?', Col2, CHARINDEX('?', Col2,1)+1) = 0) AND
(CHARINDEX('?', Col3,1) > 0 AND CHARINDEX('?', Col3, CHARINDEX('?', Col3,1)+1) = 0) AND
(CHARINDEX('?', Col4,1) > 0 AND CHARINDEX('?', Col4, CHARINDEX('?', Col4,1)+1) = 0)
--drop table test_Questio_mark
I hope above solution will help.
Thanks!
Ashish. -
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 -
NamedQuery problem- single argument compared to multiple columns
Hello,
I'm not sure if this issue is a bug or if I'm misinterpreting the API. I'm trying to execute a text search query against multiple columns in the same table via EJB 3.0, e.g.
select object(o) from Location o where o.city LIKE :searchString OR o.county LIKE :searchString"So, a single text argument is compared to multiple fields- but I keep getting an exception that the number of supplied arguments (one) does not match the number of required arguments (one- even though it's ID is referenced twice). Is there a separate syntax for repeating arguments in EQL (EJB 3.0, JDeveloper 10.1.3)? Is it not supported?
I get around the issue by just specifying a Query at runtime, but I'd prefer --if possible-- to create a NamedQuery instead.
Any help would be appreciated. Take care.Should the EJBQL statement be
select object(o) from Location o where o.city LIKE :?1 OR o.county LIKE :?2 -
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
KamranWhat about AWT.table or Swing.JTable ?
Maybe you are looking for
-
How to get the data from Pooled Table T157E.
Hi Experts, How to get the data from Pooled Table T157E. Any help. Thanks in Advance, Ur's Harsha.
-
Error message in PO : System error (error in method PO_POST)
Hi all, I'm working on BAdI ME_PURCHDOC_POSTED for Requisition qty checking with PO qty with some tolerance(+/-). For some conditions I have to terminate the PO posting(ME57). In the implementation of the method POSTED, afetr some validations, menti
-
Howto use SSL-2 (https) and .pfx certificate in SOAP cc - padding error!
I'm working on a rfc to soap scenario in PI 7.1, and I must connect PI to some external web services through https. We must use a two-sided SSL connection (SSL-2), we received a .pfx certificate to achieve this. SAP Basis installed the certificate in
-
Firefox 3.6.8 no updates why no 5.0.1
hard drive crash went back to older drive i left OS 10.5.8 and software still on did all the updates since its been a year Firefox problem: i used to use version 5.0.1 present version 3.x.x click on firefox help drop down to update well updated me to
-
Changing WVC200 from Sololink to TZO (or other DDNS) so that is viewable from the internet
I am currently a Sololink user and I am trying to set up my WVC200 web cam with TZO (or other DDNS) but their website says that "We are sorry to say that this camera is not compatible with our TZO DDNS service. If you have a Linksys router, you can t