Display Empty rows instead of 'No result message' in OBIEE 11.1.1.7.1
Hi all,
I need to display empty table instead of no results message. I am using OBIEE 11.1.1.7.1 .
Reply ASAP.
Thanks.
Hi..
You can do it..
1.Please run the analysis which shows the data in IE
2.Press F12 to see the source code for this page.
3.Identify the code for that particular table
That might look like that;;
<COLGROUP>
<COL style="DISPLAY: none" id=saw_216_7_1_0_Grp></COL></COLGROUP>
<COLGROUP>
<COL></COL></COLGROUP>
<COLGROUP>
<COL style="DISPLAY: none" id=saw_216_7_1_1_Grp></COL></COLGROUP>
<COLGROUP>
<COL></COL></COLGROUP>
<COLGROUP>
<COL style="DISPLAY: none" id=saw_216_7_1_2_Grp></COL></COLGROUP>
<TBODY>
<TR>
<TD class="PTTCDC"> </TD>
<TD class="PTTCC" cid="saw_216_7" s="-1" l="0" e="1" dc=" t">
<TABLE style="VISIBILITY: hidden" id=saw_216_7_1_0 class="PT_HGHT" onmousedown="PTPSS(event, this); return false" border=0 cellSpacing=0 cellPadding=0 cid="saw_216_7" s="-1" l="0" e="1">
<TBODY>
<TR class="PT_HGHR" border="0">
<TD class="PT_RHPHL"> </TD>
<TD class="PT_RHPHC"> </TD>
<TD class="PT_RHPHR"> </TD></TR>
<TR style="DISPLAY: none" class="PT_HGHRL">
<TD colSpan=3>CALENDAR_YEAR</TD></TR></TBODY></TABLE></TD>
<TD class="PTTCDC PTNLB"> </TD>
<TD class="PTTCC PTNLB">
<TABLE style="WIDTH: 100%" border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR style="WIDTH: 100%">
<TD style="WIDTH: 100%; VERTICAL-ALIGN: bottom" cid="saw_216_7" s="-1" l="1" e="1">
<TABLE style="VISIBILITY: hidden" id=saw_216_7_1_1 class="PT_HGHT" onmousedown="PTPSS(event, this); return false" border=0 cellSpacing=0 cellPadding=0 cid="saw_216_7" s="-1" l="1" e="1">
<TBODY>
<TR class="PT_HGHR" border="0">
<TD class="PT_RHPHL"> </TD>
<TD class="PT_RHPHC"> </TD>
<TD class="PT_RHPHR"> </TD></TR>
<TR style="DISPLAY: none" class="PT_HGHRL">
<TD colSpan=3>AMOUNT_SOLD</TD></TR></TBODY></TABLE></TD>
<TD style="WIDTH: 100%" cid="saw_216_7" s="-1" l="0" e="0"></TD></TR></TBODY></TABLE></TD>
<TD class="PTTCDC PTNLB"> </TD></TR>
<TR>
<TD class="PTRHDC PTBT"> </TD>
<TD id=hl_saw_216_7_1_0 class="PTCHC0" cid="saw_216_7" s="-1" l="0" e="1">
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>CALENDAR_YEAR</TD>
<TD><IMG class="PT_SI" title="Sort Ascending" onclick="PTSrtLyr(this, event)" border=0 src="res/s_blafp/viewui/pivot/sort_plc.png" f="t" si="t" oldSrc="http://pdudhane-d01:7001/analytics/res/s_blafp/viewui/pivot/sort_plc.png"></TD>
<TD><IMG class="PT_SI" title="Sort Descending" onclick="PTSrtLyr(this, event)" border=0 src="res/s_blafp/viewui/pivot/sort_plc.png" f="f" si="t" oldSrc="http://pdudhane-d01:7001/analytics/res/s_blafp/viewui/pivot/sort_plc.png"></TD></TR></TBODY></TABLE></TD>
<TD class="PTRHDC PTBT"> </TD>
<TD id=hl_saw_216_7_1_1 class="PTCHC1 PTLC" cid="saw_216_7" s="-1" l="1" e="1">
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>AMOUNT_SOLD</TD>
<TD><IMG class="PT_SI" title="Sort Ascending" onclick="PTSrtLyr(this, event)" border=0 src="res/s_blafp/viewui/pivot/sort_plc.png" f="t" si="t" oldSrc=":7001/analytics/res/s_blafp/viewui/pivot/sort_plc.png"></TD>
<TD><IMG class="PT_SI" title="Sort Descending" onclick="PTSrtLyr(this, event)" border=0 src="res/s_blafp/viewui/pivot/sort_plc.png" f="f" si="t" oldSrc="http://pd01:7001/analytics/res/s_blafp/viewui/pivot/sort_plc.png"></TD></TR></TBODY></TABLE></TD>
<TD class="PTRHDC PTBT PTNLB PTLC"> </TD></TR>
<TR>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_0_0 class="TTHC OORT">0</TD>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_1_0 class="TTHC PTLC OORT">0</TD>
<TD class="PTRHDC PTNLB PTLC"> </TD>0</TR>
<TR>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_0_1 class="TTHC OORT">0</TD>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_1_1 class="TTHC PTLC OORT">0</TD>
<TD class="PTRHDC PTNLB PTLC"> </TD></TR>
<TR>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_0_2 class="TTHC OORT">0</TD>
<TD class="PTRHDC"> </TD>
<TD id=e_saw_216_7_1_1_2 class="TTHC PTLC OORT">0</TD>
<TD class="PTRHDC PTNLB PTLC"> </TD></TR>
<TR>
<TD class="PTRHDC PTLR"> </TD>
<TD id=e_saw_216_7_1_0_3 class="TTHC PTLR OORT">0</TD>
<TD class="PTRHDC PTLR"> </TD>
<TD id=e_saw_216_7_1_1_3 class="TTHC PTLR PTLC OORT">0</TD>
<TD class="PTRHDC PTLR PTNLB PTLC"> </TD></TR></TBODY>
4. Put 0 where it shows fact values
5. Insert the code into the Edit analysis properties No result setting and custom messege..
you can see the table and columns with 0 values for no data.
Thanks,
Similar Messages
-
How to avoid displaying empty rows in a table?
The situation is as follows:
I have got a set of questions under a particular category say marketing category.
The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each question.
Now once he is done with all the set of questions under a particular category, he will be navigated to the next set of questions under some other category say 'xyz'
Now instead of creating seperate view objects for each category, we have created a view object which will hold all the set of questions from all the category but will display only the set of questions under a particular category by declaring a variable in the backing bean and setting the question rendering to the value in the variable. the value to the variable will be changed once the user is done with answering all the set of questions under a particular category.
Now the problem that i am facing is:
Because of the rendering condition that i have used, it displays only those rows that have the rendering condition set to the variable in the backing and displays all other empty rows overlapped.
How do i avoid this situation ??Seems odd, but you could use COALESCE to achieve this.
ME_XE?create table all_nullz (col1 number, col2 number, col3 number);
Table created.
Elapsed: 00:00:00.20
ME_XE?
ME_XE?insert into all_nullz values (1,2,3);
1 row created.
Elapsed: 00:00:00.12
ME_XE?insert into all_nullz values (null, null, null);
1 row created.
Elapsed: 00:00:00.06
ME_XE?
ME_XE?delete from all_nullz where coalesce(col1,col2,col3) is null;
1 row deleted.
Elapsed: 00:00:00.26
ME_XE? -
Hi,
We have a simple report like the following left side, because we use group by in query, now the empty rows will not show in report.
Is there any way we can show all empty items from column B as the snapshot right side? Thank you.
select columnA, columnB, sum(total1) as Total
from mytable
group by columnA, columnBThat's not so much an SSRS issue as it is a SQL issue. It can be tough getting SSRS to display data that doesn't exist.
You may be able to get it to work using a Matrix but my personal preference is to handle it in the SQL code itself. Something like the following should work for you...
CREATE TABLE #temp (
ColA CHAR(2),
ColB CHAR(2),
Amt INT
INSERT #temp (ColA,ColB,Amt) VALUES
('A1','B1',10),
('A1','B1',10),
('A1','B2',25),
('A1','B2',5),
('A1','B3',10),
('A2','B1',20)
-- SELECT * FROM #temp
SELECT
t0.ColA,
t0.ColB,
SUM(COALESCE(t.Amt, 0)) AS Total
FROM
#temp t
FULL JOIN (
SELECT
t1.ColA,
t2.ColB
FROM (
SELECT DISTINCT t1.ColA
FROM #temp t1
) t1
CROSS JOIN (
SELECT DISTINCT t2.ColB
FROM #temp t2
) t2
) t0
ON t.ColA = t0.ColA
AND t.ColB = t0.ColB
GROUP BY
t0.ColA,
t0.ColB
ORDER BY
t0.ColA,
t0.ColB
Jason Long -
Producedure givng two rows instead of one row
Hi
Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.
CREATE PROCEDURE SP_CWCTravel_Cruise_Amenities_S(
@Cruise_Line_Code varchar(2500) = NULL,
@Ship_Code varchar(2500) = NULL,
@Sail_Id varchar(100) = NULL,
@Base_Price decimal(8, 2),
@Category_Groups varchar(2500) = NULL,
@Categories varchar(2500) = NULL,
@Rate_Codes varchar(2500) = NULL,
@Booking_Date VARCHAR( 10 ),
@Sail_Start_Date VARCHAR( 10 )
AS
BEGIN
SELECT TOP 1 *
FROM CWCTravel_Cruise_Amenities_Definition as cad
JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
ON cad.id = caddr.Amenities_Definition_Id
WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id)))
AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
(SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
WHERE A.Item LIKE B.Item) > 0))
AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
WHERE A.Item LIKE B.Item) > 0))
AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
WHERE A.Item LIKE B.Item) > 0))
AND (@Booking_Date is null or @Booking_Date=''
OR (( caddr.from_date IS NULL OR caddr.from_date <= @Booking_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Booking_Date )
AND (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'BOOK_DATE' ))) )
union
SELECT TOP 1 *
FROM CWCTravel_Cruise_Amenities_Definition as cad
JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
ON cad.id = caddr.Amenities_Definition_Id
WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id)))
AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
(SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
WHERE A.Item LIKE B.Item) > 0))
AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
WHERE A.Item LIKE B.Item) > 0))
AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
(SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
WHERE A.Item LIKE B.Item) > 0))
AND (@Sail_Start_Date is null or @Sail_Start_Date=''
OR (( caddr.from_date IS NULL OR caddr.from_date <= @Sail_Start_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Sail_Start_Date )
AND (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'TRAVEL_DATE' ))) )
ORDER BY Cruise_Line_Code DESC, Ship_Code DESC, Sail_Id DESC, Rate_Codes DESC, Category_Groups DESC, Categories DESC
ENDWhile executing this SP
I am getting the following results.
2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 20-08-2011 AM 12:00:00 30-11-2011 AM 12:00:00 BOOK_DATE
2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 01-10-2011 AM 12:00:00 30-11-2011 AM 12:00:00 TRAVEL_DATE
I need only the first record.
Thanks in adv
Rekha871270 wrote:
Hi
Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.Seriously?
You wrote a query against tables we've never seen, containing data we can't possibly have any idea about and you expect us to be able to help you?
Please go discuss this with someone in your organization who understands the data model and have them explain to you how it is supposed to work.
Put yourself in our situation (forum volunteers) ... if we threw some arbitrary code with no explanation as to what it does, what the data model looks like and what's supposed to be happening, do you think you'd be very successful ? -
Hello Experts,
How can we make an Empty Row Invisible in ALV webdynpro table.
Thanks,
Bsreddy.Hi,
If you check my method call i have used object
LR_FUNCTION_SETTINGS which holds the reference of class CL_SALV_WD_CONFIG_TABLE.
This class CL_SALV_WD_CONFIG_TABLE implements the interface IF_SALV_WD_TABLE_SETTINGS
which has the method SET_DISPLAY_EMPTY_ROWS.
DATA: lo_cmp_usage type ref to if_wd_component_usage.
DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
DATA: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
Data: lo_config_table TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
*create an instance of your ALV component
lo_cmp_usage = wd_this->wd_cpuse_OVERVIEW_POTENT_ALV( ).
* if not initialized, then initialize
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
* get ALV component
lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_POTENT_ALV( ).
lo_config_table = lr_salv_wd_table->get_model( ).
* get function settings
lr_function_settings ?= lo_config_table.
*now call method
* dont display empty rows
CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_TABLE_SETTINGS~SET_DISPLAY_EMPTY_ROWS
EXPORTING
VALUE = ABAP_FALSE.
Here I'm first creating a instance of ALV componet I used and then calling the reqd method.
Hope this helps.
Regards
Manas Dua -
Displaying SQL Query results in rows instead of Columns
Hi,
I'm fairly new to Oracle so forgive me if this is a really stupid question.
I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
This would give me output like...
Column_1: AAAA
Column_2: BBBB
Column_3: CCCC
Instead of the normal
Column_1 Column_2 Column_3
AAAAAA BBBBBBB CCCCCCC
Is there an equivalent in SQLPlus to the MySQL \G termination?
Thanks.
John> so forgive me if this is a really stupid question.
It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
[url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
In 11g you have special PIVOT and UNPIVOT functions.
Regards,
Rob. -
How to display ID and Type in a row instead of column
I have a table A with ID_NO, TYPE, PUBID(foreign key).
The type can be CAT, ISBN, ISSN. I also have another table B with PUB_ID (primary key) and a lot of other details.
The requirements are to display the results as rows like this:
PUB_NO | CAT | ISBN | ISSN
222 | abc | qwe | zxc
I know it would be easy to display like this:
ID_NO | TYPE | PUB_NO
abc | CAT | 222
qwe | ISBN | 222
zxc | ISSN | 222
But I need it in a row instead. I was thinking of getting all PUB_NOs and looping through each to get the rest in a PL/SQL procedure but is this the best approach?
I can't wrap my head around this. I'm not a DB expert and I haven't done any PL/SQL in a very long time.
Thanks for your help
MarcelJohn:
<quote>
I did point out the need for unique types in my original post with the MAX/DECODE solution.
</quote>
Indeed, you did. Sorry about that ... I looked closely only at your last post with the two SQLs and missed the caveat you had included in the first post.
:o) ... couldn't stop myself ... one last loose [but reasonable?!?!] thing [I can think of] to keep those 2 sql different:
insert into pubDetail values (333,'333');
â¦
flip@FLOP> select * from pubDetail;
Â
PUB_NO PUB_DATA
111 111
222 222
333 333
Â
flip@FLOP> select * from test_a;
Â
ID_NO TYPE PUB_NO
abc CAT 111
def CAT 222
qwe ISBN 111
xyz ISSN 222
Â
flip@FLOP> SELECT d.pub_no, a.cat, b.isbn, c.issn
2 FROM pubDetail d,
3 (SELECT pub_no, id_no cat
4 FROM test_a
5 WHERE type = 'CAT') a,
6 (SELECT pub_no, id_no isbn
7 FROM test_a
8 WHERE type = 'ISBN') b,
9 (SELECT pub_no, id_no issn
10 FROM test_a
11 WHERE type = 'ISSN') c
12 WHERE d.pub_no = a.pub_no(+) AND
13 d.pub_no = b.pub_no(+) AND
14 d.pub_no = c.pub_no(+)
15 ;
Â
PUB_NO CAT ISBN ISSN
111 abc qwe
222 def xyz
333
Â
flip@FLOP> SELECT d.pub_no
2 ,MAX(DECODE(a.type, 'CAT' , id_no)) cat
3 ,MAX(DECODE(a.type, 'ISBN', id_no)) isbn
4 ,MAX(DECODE(a.type, 'ISSN', id_no)) issn
5 FROM pubDetail d, test_a a
6 WHERE d.pub_no = a.pub_no
7 AND a.type IN ('CAT', 'ISBN', 'ISSN')
8 GROUP BY d.pub_no
9 ;
Â
PUB_NO CAT ISBN ISSN
111 abc qwe
222 def xyzHope you take this only as a bit of humor [about incomplete requirements] ⦠I like your stuff! -
Query result area on the first row instead of last row
Hi BI experts,
I want to display the result of the BI query at the first row instead of last row.Could somebody help me how to accomplish this.
I tried with the layout->move result area but could not be possible.
I need your kind suggetion.
Thanks.hi jyuoti,
Further, open your query in query designer, look at the query property, under the tab "rows/columns"
change the result position of rows to "Below", you can see the preview there itself.
This should solve your problem.
Best Regards,
*Assign points if you find the answer useful. -
Result displaying multiple rows with Single Record
I created DB adapter and using transformation to display the result set. Expecting 4 rows as a result but it displays one row 4 times.
SOA - Studio Edition Version 11.1.1.2.0,
Database - DB2,
DB Adapter - xsd
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="F4102Collection" type="F4102Collection"/>
<xs:complexType name="F4102Collection">
<xs:sequence>
<xs:element name="F4102" type="F4102" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="F4102">
<xs:sequence>
<xs:element name="ibitm" type="xs:int"/>
<xs:element name="iblitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibaitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibmcu" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="cd_DBASelect_ITMInputParameters" type="cd_DBASelect_ITM"/>
<xs:complexType name="cd_DBASelect_ITM">
<xs:sequence>
<xs:element name="ITM" type="xs:int" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Adapter WSDL
<?binding.jca cd_DBA_db.jca?>
<wsdl:definitions name="cd_DBA" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA">
<plt:partnerLinkType name="cd_DBA_plt">
<plt:role name="cd_DBA_role">
<plt:portType name="tns:cd_DBA_ptt"/>
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" schemaLocation="xsd/cd_DBA_table.xsd"/>
</schema>
</wsdl:types>
<wsdl:message name="cd_DBASelect_inputParameters">
<wsdl:part name="cd_DBASelect_inputParameters" element="top:cd_DBASelect_ITMInputParameters"/>
</wsdl:message>
<wsdl:message name="F4102Collection_msg">
<wsdl:part name="F4102Collection" element="top:F4102Collection"/>
</wsdl:message>
<wsdl:portType name="cd_DBA_ptt">
<wsdl:operation name="cd_DBASelect">
<wsdl:input message="tns:cd_DBASelect_inputParameters"/>
<wsdl:output message="tns:F4102Collection_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>James Thanks for reply.
I am using BPEL. I am seeing these 4 rows in XML out put.
My Query is very simple.
select ibitm,iblitm,ibaitm,ibmcu from accdtaa73/f4102 where ibitm = InputToBPEL.
o/p should see these 4 rows.
IBLITM IBMCU
2002313 AGRT
2002313 AG00
2002313 FAR0
2002313 FA00
But o/p is
IBLITM IBMCU
2002313 AGRT
2002313 AGRT
2002313 AGRT
2002313 AGRT
Here is o/p of this BPEL
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<env:Header>
<wsa:MessageID>urn:F60F8800A01311DFBFAC73A17F5C618C</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:ReplyTo>
</env:Header>
<env:Body>
<processResponse xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess" xmlns="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess">
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
</processResponse>
</env:Body>
</env:Envelope>
XSL Script
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="XSD">
<schema location="../xsd/cd_DBA_table.xsd"/>
<rootElement name="F4102Collection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="../CD_BPELProcess.wsdl"/>
<rootElement name="processResponse" namespace="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [WED AUG 04 11:39:11 PDT 2010]. -->
?>
<xsl:stylesheet version="1.0"
xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:med="http://schemas.oracle.com/mediator/xpath"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
exclude-result-prefixes="xsi xsl ns0 xsd client plnk wsdl xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
<xsl:template match="/">
<client:processResponse>
<xsl:for-each select="/ns0:F4102Collection/ns0:F4102">
<client:element1>
<client:UPC>
<xsl:value-of select="ns0:ibmcu"/>
</client:UPC>
<client:LITM>
<xsl:value-of select="ns0:iblitm"/>
</client:LITM>
</client:element1>
</xsl:for-each>
</client:processResponse>
</xsl:template>
</xsl:stylesheet> -
How to display a 1 to many query result in a single row?
Hi,
I want to display a 1 to many relationship in a query in just one row. The current result is that I get more than 1 rows. How can I display it in one column with the additional attribute in a column, without repeating? Thank you.
Select s.student, t.teacher from student_table s, teacher_table t where s.id = t.student_id
Result
Student Teacher
John Doe Larry Woe
John Doe Mary Moe
I would rather get a result like this:
Result
Student Teacher 1 Teacher 2
John Doe Larry Woe Mary Woe
Edited by: Samantha on May 18, 2011 2:48 PMHi,
Will all Students have exactly two Teachers?
If not picture your sample with two more Students.
One having 1 Teacher
One having N Teachers
Think about N, what will it be? - How would you create a table with N columns?
If you can't easily answer above, re-consider what you are trying.
That said, it could still be done - even if all Students do not have exactly two Teachers - and is called Pivot a dynamic number of columns.
Examples are in FAQ
SQL and PL/SQL FAQ
Still a bad idea, with or without known number of teachers
Regards
Peter -
How to display as blank instead of zero (0) if result is zero
Hello :
How to display as blank instead of zero (0) if result is zero.*
*any properties can do this. BI 7.0.
Regards,
ManthanaHi,
If you are using BI 7.0 ,goto Query designer and click the properties under the 'Query'. Then select 'Value Display' from the properties and there is a drop-down 'Display Zeroes' . You can choose 'Zero as Space' from that drop-down for the query.
Hope it will solve your issue.
Thanks. -
- Add an empty row before every subtotal display -
Hi,
I would like know the best way to define an empty row before the start of subtotal display in the BW query.
Thanks,
VenuHi,
Pls Refer - /thread/814122 [original link is broken]
Regards
CSM Reddy -
Displaying jtable as rows instead of columns
This may be really simple, but I can't figure it out. I want to display information in a JTable as rows instead of columns. Can anyone help me with this?
Thanks in advance,
mCheck here:
http://www2.gol.com/users/tame/swing/examples/SwingExam
les.html
They may well have what you want, if not they will
probably have some ideas you can use.There's always the swing tutorial, also. I learned JTables from the tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/table.html and it gave me a lot of good ideas and points to start from.
You could probably create your own cell renderer (or use the header renderer) and set the first column to use that to display their text. -
Empty rows in a table should not be displayed
Hi,
I have an ADF table which contains 10 rows and 5 columsns,
in which i have rendered all the values in 5 columns of 5 rows to false.
But when displaying the table,the empty rows are displaying by overlapping..
I do not want to display those empty rows.
Thank u
BhanuDuplicate of How to make some rows of a table invisible
Frank -
When executing query...in the result i want to display each row values
Hi All,
When executing query...in the result area i want to display each row values.
Example: query result is like this
Business Area Sales Material
kh02 1000 2000
2000 300
5000 400
6990 1000
Kh03 1400 700
200 500
50 60
but i need like this
kh02 1000 2000
kh02 500 600
kh02 400 300
kh03 1400 700
kh03 200 500
Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
please advice me easy way
i willl be very gr8ful
Thanks
sidharthaHi,
that'S exactly what hide repeated key values does. If this option is on your result is:
Kh02 1000 1500
blank 500 456
blank 600 700
kh03 400 500
balnk 500 600
If you turn it off, the result will be:
Kh02 1000 1500
Kh02 500 456
kh02 600 700
kh03 400 500
kh03 500 600
Exaclty what you want. Try it, it should work
Regards,
Juergen
Maybe you are looking for
-
Unable to connect informatica repository on database
Hi, i am facing error that unable to connect informatica repository on database thanks
-
Is there some report where I can get a list of all production orders and its planned quantity, actual quantity, planned cost, actual cost? thanks
-
Hi, can only ask question for NetBeans here then :-) In NetBeans 5.5, could i change service binding in BPEL at runtime? ( assume I have "interchangeable" services) It applies BPMN to model/manage BPEL execution, but i can not find anywhere to change
-
Missing iPhone. No iCloud on Mac to assist in locating phone. What must I do to load iCloud on my Mac? Thank you for any help.
-
Solution!!!!!! for AVG DETECTED iTune as a Trojan or Threat!
1.Uninstall iTune, Quicktime, Apple Mobile Device Support, Apple Software Update! 2.Open AVG Anti-virus software 3.Disable "Resident Shield" 4.Reinstall iTune setup 5.Back to your music!!!!!!!!!! Good luck everyone! [email protected]