Inserting static text in between rows returned from a pivot table
Is there a way to type static text (eg. “Note that the data for Land has an accuracy of 98%”) in between rows returned from the dataset in the rtf template. The alternative would be to break the BI analysis report (which is the source of the template data) into 2 parts and then insert each part into the template one below the other with the text typed in between.
Oracle support has confirmed that this requirement is not possible to implement
Similar Messages
-
How to Customize the Message "No Row Returned" from a Report
Hi,
I've been trying to customize the Message "No Row Returned" from a Report.
First i followed the instructions in Note:183131.1 -
How to Customize the Message "No Row Returned" from a Report
But of course the OWA_UTIL.REDIRECT_URL in this solution did not work (in a portlet) and i found the metalink document 228620.1 which described how to fix it.
So i followed the "fix" in the document above and now my output is,..
"Portlet 38,70711 responded with content-type text/plain when the client was requesting content-type text/html"
So i search in Metalink for the above and come up with,...
Bug 3548276 PORTLET X,Y RESPONDED WITH CONTENT-TYPE TEXT/PLAIN INSTEAD OF TEXT/HTML
And i've read it and read it and read it and read it and can't make heads or tails of what it's saying.
Every "solution" seems to cause another problem that i have to fix. And all i want to do is customize the Message "No Row Returned" from a Report. Please,...does anyone know how to do this?My guess is that it only shows the number of rows it has retrieved. I believe the defailt is for it to only retrieve 50 rows and as you page through your report it retrieves more. So this would just tell you how many rows was retireved, but probably not how many rows the report would contain if you pages to the end. Oracle doesn't really have a notion of total number of rows until the whole result set has been materialized.
-
Is it possible to count the rows returned from a query?
Hello,
When using JDBC is there anyway of finding out the number of
rows returned from a query before actually getting each row?
In Forms 4.5 you can use the count_query function, does anyone
know of an equivalent function or work around in JDBC and/or
SQLJ?
Thanks.
nullPasi Hmlinen (guest) wrote:
: Try
: SELECT COUNT(*) FROM the_table WHERE <conditions>;
: Hope this helps,
: Pasi
Thanks for the advice, I'm currently using SELECT COUNT(*) but
I'm looking for a more efficient way of doing it. If I SELECT
COUNT each time then I have to prepare and execute a SQL
statement each time. What I want to do it execute a single SQL
statement to return my results and somehow find out the number
of rows in the resultset without having to go back to the
database.
Gethin.
null -
How do you limit the number of rows return from query?
How do you limit the number of rows return from query? Do all databases support this kind of feature?
i think the standard is limit
to get the top 30
select * from mytable LIMIT 30;returns the first 30 rows
also if you want a range
select * from mytable LIMIT 10,30;returns 30 rows starting from 10
this last one is useful for displaying ranges... something similar happens in these forums when viewing topics and messages -
Mimic "show data as percent of row parent" in non-pivot table
Is it possible to implement or mimic the 'percentage of parent row' functionality, foreseen for pivot tables in obiee 11g, for a 'normal' table?
We use a rather fixed table, in which no drilling is allowed - conditions are applied by means of prompts and filters. The report is based upon the store dimension, which has as hierarchy: country > cluster > store. We have added a column to represent the 'share' of a store's net turnover in the cluster total. The results looks like:
country cluster store turnover share
======= ======= ===== ======== =====
belgium 1 a 20.000 66.7%
b 10.000 33.3%
cluster total: 30.000 100.0%
2 c 40.000 57.1%
d 30.000 42.9%
cluster total: 70.000 100.0%
country total: 100.000 100.0%
holland 3 e 50.000 71.4%
4 f 20.000 28.6%
cluster total: 70.000 100.0%
country total: 70.000 100.0%
grand total: 170.000 100.0%Instead of all the total levels showing as 100% however, we would like to see each sub-total represented as a percentage of the level above, much like the forementioned pivot table functionality. For the example above that would mean it should look like:
country cluster store turnover share
======= ======= ===== ======== =====
belgium 1 a 20.000 66.7%
b 10.000 33.3%
cluster total: 30.000 30.0%
2 c 40.000 57.1%
d 30.000 42.9%
cluster total: 70.000 70.0%
country total: 100.000 58.8%
holland 3 e 50.000 71.4%
4 f 20.000 28.6%
cluster total: 70.000 100.0%
country total: 70.000 41.2%
grand total: 170.000 100.0%Any advice or idea would be greatly appreciated...902360 wrote:
Hello,
I'd like to know if there's a way to configure the Pivot Table "Show Data As - Percent of" precision.
ATM, I have some reports using SR types where one of those are much bigger than the others.. So when the report its generated, it returns something like:
TYPE A: 99%
TYPE B: 0%
TYPE C: 0%
TYPE D: 0%
How can I show the other types correct value? Something like number of decimal places...
Ps: As criteria to this report, I have changed my Data Format to "Number", "Minus: -123" with 15 Decimal Places.
Thanks,
RamonYup. Can do. Read this link:
http://shivabizint.wordpress.com/2008/09/14/changing-the-precession-of-percent-of-columns-in-pivot-table-of-obiee/ -
Leading zeros are not carried from the pivot table to exported Excel (9927815)
Hello All -
I am just wondering if there is a fix available for -- Leading zeros are not carried from the pivot table to exported Excel (9927815)
can anybody suggest when it will be fixed and if there is any-workaround for this issue if there is no fix available.
Thanks
RamThanks Timo -
Studio Edition Version 11.1.1.2.0
About
Oracle JDeveloper 11g Release 1 11.1.1.2.0
Studio Edition Version 11.1.1.2.0
Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
IDE Version: 11.1.1.2.36.55.36
Product ID: oracle.jdeveloper
Product Version: 11.1.1.2.36.55.36
I will check on support.oracle.com -
DB get step: managing multiple row returned from a table
Hi,
please can someone tell me if it is possible to manage multiple row when returned in a db get step?
For example, I execute a SELECT in db read step to read an SQL table which returns two rows. From each row I get two string variables, let's say: "Var1", "Var2".
Assigning them to local variables, I am able to assign just the 2 variables of the first row, not the variables of the second row.
I tried to use array as local variables with not success, how can I do?
Thanksmmaddalena,
You have two options, you can pre populate, or work row by row.
Prepopulate:
String[] Var1
int row
DBGet Loop:
DBGet
Successful:
save to Var1[row]
increment row
Goto DBGet Loop
No data:
/* this is the last row */
Goto After DB Get Loop
After DB Get Loop:
/* do whatever with the data */
Conversely:
Row by row:
String Var 1
int row
DBGet Loop:
DBGet
Successful:
/* do whatever with the data */
Increment row
Goto DBGet Loop
No data:
/* no more data (last row) */
Goto After DB Get Loop
After DB Get Loop:
/* do whatever after your done with the data */ -
Getting the number of rows returned from ResultSet
Hi,
Does anyone know a method to get the number of rows returned with a query using the Resultset class?
Thanks.Hi 281080,
If your database and JDBC driver support it, in order to use the solution that da-alexj has suggested, you need to create a 'scrollable' "ResultSet" -- the javadoc for method "createStatement()" (in class "java.sql.Connection") has more details.
However, I have found with Oracle 8.1.7.4 database and Oracle (thin) JDBC driver, that part of their implementation of the "last()" method (in class "java.sql.ResultSet") is to actually iterate through the entire "ResultSet" in order to reach the last row. If your "ResultSet" is very large (I tested it with a 100,000 row "ResultSet"), this will take a long time.
Just wanted to make you aware of that.
Of-course, this may be irrelevant to you since I didn't see any mention in your post of what database and JDBC driver you are using.
Hope this has helped you, anyway.
Good Luck,
Avi. -
Dear All,
I want to add static text in each field of the matrix .Can anyone send me a coding ......
Rajkumarhi raj
could u explain bit more regarding the same
ajit -
How to delete(remove) one row(record) from a dynamic table
Hi,
I have adynamically created table.
I want to delete 1 record(Row) from that Dynamic table.
Say if my dynamic table contains 5 records(rows);after deletion of 1 record(1 complete row)from that dynamic table,the number of records(rows) should be 4 .
Please suggest me how to proceed.
Please provide me some sample code.Its not working
I tried with these code:-Its not working-->
IPrivateExportexView.IEt_WriteoffNode node=wdContext.nodeEt_Writeoff();
IPrivateExportexView.IEt_WriteoffElement nodeEle= node.createEt_WriteoffElement(new Zfrm_Writeoff_P());
node.removeElement(nodeEle);
Please suggest
Thanks
-SandipHi,
*int n=wdContext.nodeTable().getLeadSelection();*
*wdContext.nodeTable().removeElement(wdContext.nodeTable().getTableElementAt(n));*
Further more , an example is given below for better understanding , do modifications according to your need.
node :
value node - Table (cardinality - 0..n , selection 0..1)
no ( value attribute - string )
name (value attribute - string )
// create node elements
for(int i=0;i<5;i++)
IPrivateClearnodeElements.ITableNode node = wdContext.nodeTable();
IPrivateClearnodeElements.ITableElement ele = node.createTableElement();
ele.setNo((101i)"");
ele.setName("name :"(i1));
node.addElement(ele);
// Apply template Table -- select -- table node or
// create a table UI element and set the property Datasource - Table ( of the context)
Insert Colum , in that column, next insert celleditor , of type text view , bind the property text -- to "name " of Table node of the context
Insert Colum , in that column, next insert celleditor , of type text view , bind the property text -- to "no " of Table node of the context
// create a action "removeElement"
// create a button "Remove Element " --> Event action -- removeElement
// under the action write down the code :
public void onActionremoveElement(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionremoveElement(ServerEvent)
// before removing display elements
wdComponentAPI.getMessageManager().reportSuccess("Before deletion :");
for(int i=0;i<wdContext.nodeTable().size();i++)
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getNo()) ;
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getName()) ;
int n=wdContext.nodeTable().getLeadSelection();
wdContext.nodeTable().removeElement(wdContext.nodeTable().getTableElementAt(n));
// After deletion
wdComponentAPI.getMessageManager().reportSuccess("After deletion :");
for(int i=0;i<wdContext.nodeTable().size();i++)
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getNo()) ;
wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeTable().getTableElementAt(i).getName()) ;
//@@end
If helpful , give points .
Let me know if any problem u face .
Thanks,
Srini -
Af:commandButton only works for the first 10 rows returned in the af:table
Using JDeveloper 10.1.3.2.0.
I am new to ADF programming. I have attempted to create an ADF page that contains a search and return table in the same page. The search appears to work fine but the return table displays odd behavior. If the search returns more than 10 rows such that it is possible to page forward through the rows returned the command button associated with the return table that allows the user to pick a particular row and navigate to another page does not work. If the user finds what he/she is looking for in the first ten rows then the command button works fine and the user is taken to the next page. The command button is actually defined to have an af:setActionListener to set a value in a backing bean and then command button has an action to invoke a backing bean. Both of these fire just fine if the selection is made from the first 10 rows. However once the user pages forward to another set of rows then neither seem to happen. Any advice on where to figure out what I did wrong?When I get a component that seems to do nothing under certain circumstances, the first thing I usually check for is Javascript errors. Sometimes errors on page load can keep a component's Javascript from firing properly.
Try reproducing your problem in Firefox (or another browser with a decent Javascript error console; IE doesn't have one, although I think you can get extensions that provide JS debugging). Check the error console:
# Before scrolling off the first 10 rows.
# Right after scrolling off the first 10 rows.
# After unsuccessfully clicking the command button.
Do any interesting errors show up in steps 2 or 3? -
Variance between 2 columns in a Pivot Table
Hello,
We have an analysis that is a Union of 2 analysis. It has two result columns in the Union, each column have a value of one month. We have to create a third column with the variance between the second and first column.
We are using a Pivot Table and creating a New Calculated Item in the month column with difference between the columns ($2 - $1). But this results in four different columns - The 2 original ones and the difference repeated (for each month).
Pls. is there a way to build the pivot table the way we need it ? with just the 3rd column as a variance result.
Txs for any help.
AntonioYou may get the logical query as below
SELECT saw_0, saw_1, FROM (
(SELECT A saw_0, B saw_1 FROM "SA" )
UNION
(SELECT C saw_0, D saw_1 FROM "SA" )
) t1 ORDER BY saw_0
I would suggest to create another column at first line of SELECT so that you can use those saw_0, saw_1 columns to get another column something like
SELECT saw_0, saw_1, saw_0+saw_1 FROM (
(SELECT A saw_0, B saw_1 FROM "SA" )
UNION
(SELECT C saw_0, D saw_1 FROM "SA" )
) t1 ORDER BY saw_0
This is just a hint you need to put in your requirements
if make sense mark :)
Edited by: Srini VEERAVALLI on May 14, 2013 10:35 AM -
Include Row/Column Headers in Pivot Table Export to Excel
I am using JDeveloper version 11.1.2.3
I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version?I am using JDeveloper version 11.1.2.3
I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version? -
Count of occurace of a specific text in between rows
ROW
SESSION
1
Application Started
2
Application Aborted
3
Application Ended
4
Application Started
5
Application Started
6
Application Ended
7
Application Ended
8
Application Started
This is a sample data taken from an External Excel Sheet.
Our motive is to count the occurrence of "Application Ended" in between "Application Started". and return the desired output as below.
S NO.
Count of Application Ended between application starts
1
1
2
2
Is it possible to achieve this using Power Query. Please help.Hi,
Base on this sample, you can use below code :
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Index = Table.AddIndexColumn(Source,"Index"),
Position = Table.AddColumn(Index, "Position", each if List.Contains( List.PositionOf( Source[SESSION] , "Application Started" ,2), [Index]) then [Index] else null ),
DuplicatedColumn = Table.DuplicateColumn(Position, "Position", "Temp"),
FillUp = Table.FillUp(DuplicatedColumn,{"Temp"}),
InsertedCustom = Table.AddColumn(FillUp, "Custom", each try if [Position]=[Index] and FillUp {[Index]+1}[Position]<>null then [Temp] else FillUp {[Index]+1}[Temp] otherwise [Temp] ),
RemovedColumns = Table.RemoveColumns(InsertedCustom,{"Index", "Position", "Temp"}),
GroupedRows = Table.Group(RemovedColumns, {"Custom"}, {{"Count", each List.Count( List.Select( _[SESSION], (lst)=> lst= "Application Ended" ) ), type number}}),
RemovedColumns1 = Table.RemoveColumns(GroupedRows,{"Custom"}),
InsertedIndex = Table.AddIndexColumn(RemovedColumns1,"S NO ", 1,1 ),
ReorderedColumns = Table.ReorderColumns(InsertedIndex,{"S NO ", "Count"})
in
ReorderedColumns
I also make sample file and share in my one drive as below :
https://onedrive.live.com/edit.aspx?cid=94B99C319E63236A&resid=94B99C319E63236A%21337&app=Excel
Regards, -
How to capture all the rows returned from a sql select query in CPO
Hi,
I am executing an sql select query which returns multiple rows. I need to capture the values of each row to specific variables. How do I proceed.
Thanks,
SwatiThe select activities ("Select from Oracle," Select from SQL Server," etc.) against database already return tables. Use one of the database adapters to do your select, and it will already be in a table form. Just put your query in the select and identify the columns in your result table. The online help or the database adapter guides in the product documentation can help.
Maybe you are looking for
-
Error #2038: File I/O error in muse
I am trying to open a prieview of my website in muse and it wont allow me to and gives me the file I/O error. Help?
-
How can i make my google account calendar be the same as my icloud calendar?
i want to make my icloud account send all appointments i give it directly over to my gmail calendar as well, is this possible?
-
I am trying to find the tables where the SD side pricing info is stored. A016 and KONP are from the MM side. Could you please let me know if you have the answer on the SD side. Thanks, Amrutha
-
Hello, I am using Apache Axis to utilize a webservice. I am running this service on the Tomcat localhost:8080. I want to be able to utilize the getServletConfig().getInitParameter() method and I know to do this I must include the HttpServlet library.
-
3D functionality has stopped working in Photoshop CC?
3D functionality has stopped working in Photoshop CC? Any ideas anyone.