Creating vertical reports with alternating colored rows
I wanted to create a vertical report with alternating colored rows. Creating a vertical report template was not a problem but I am not able to use different bgcolor for alternating rows.
As I mentioned above, I used the follwoing code to generate the vertical report BUT i could not get the alternating rows in a diffrent color:
Before Rows:
<table class="default2">
Before Each Row:
OMIT
Column Template 1
<tr><td bgcolor="#CCCC99" width="200"><font color="#336699" #ALIGNMENT#><b> #COLUMN_HEADER#</td> <td width="500">#COLUMN_VALUE#</td></tr>
Column Template 1 Condition
Use for Odd rows
Column Template 1
<tr><td bgcolor="#CCCC99" width="200"><font color="#336699" #ALIGNMENT#><b> #COLUMN_HEADER#</td> <td bgcolor="#FFFFFF" width="500">#COLUMN_VALUE#</td></tr>
Column Template 1 Condition
Use for Even rows
After Each Row
OMIT
After Rows
</table>
Similar Messages
-
How to create a report with different page sizes
Hi,
I would like to create a report with different page sizes, it's possible to do it with diadem?
When I change the layout parameters, changes afect to all sheets...
Is there a way to change page size individually for each sheet?
Thanks in advance.
MarcHi Marc,
You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach. This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
' Print PDF Page by Page.VBS
OPTION EXPLICIT
Dim i, Path, OldPrintName
Path = AutoActPath & "2D Stacked"
Call DataDelAll
Call DataFileLoad(Path & ".TDM")
PDFFileName = Path & " Page by Page.pdf"
IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
OldPrintName = PrintName
PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
PDFResolution = "72 DPI" ' "2400 DPI" , "default"
PDFOptimization = TRUE
PDFFontsEmbedded = FALSE
PDFJPGCompressed = "high"
PrintOrient = "landscape" ' orient paper
Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
PrintLeftMarg = 0.181
PrintTopMarg = 0.181
PrintWidth = 10.67
'PrintHeigth = 7 (read-only)
Call WndShow("REPORT")
Call DocStart ' Begin multi-page document/print job
FOR i = 1 TO 4
Call PicLoad(Path & ".TDR")
Call GraphSheetNGet(1)
Call GraphSheetRename(GraphSheetName, "Page " & i)
Call PicUpdate
Call PicPrint("WinPrint") ' Add a page to be printed
NEXT ' i
Call DocEnd ' End multi-page document/print job
PrintName = OldPrintName
Call ExtProgram(PDFFileName)
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Help creating a report with Financial Reporting Studio.
Hi,
Im new at Financial Reporting Studio so my question might be something very easy, for beginners.
Im trying to create a report with two columns where in each column there is the year dimension. In the first column there is the current POV for year, but in the second column I would like to set the prevoius year of the POV automatically, without using a prompt. Is there any function or way to do it?
Tanks foy yuour help!
EduUse the relative function.
The first column will be set to use the User POV.
For the second column... see the tab named "Functions". Select the function "RelativeMember". For the Member row - select User POV. For the offset enter -1... that will automatically select the prior year. -
Need to create a report with drop down option
Hi,
I have created a report with a simple query. Its a real time report.
select host_name, target_name, instance_name from MGMT$DB_DBNINSTANCEINFO
where target_type = 'oracle_database';
It gives me a tabular report. It works fine. But it is a huge report about 1000 rows. We can see a particular number of rows per page. Thats fine.
I need something else. I will select a particular target name from a drop down and the report will give me the result for the respective target only. Is that possible ? How to do that ?
Thanks in AdvanceHello,
When you create your report, in the "general" tab, under Targets click on the first radio button named "A target will be selected by the report viewer when viewing the report" and under that choose target type="Database Instance".
Then in your report query, use the predefined variable ??EMIP_BIND_TARGET_GUID?? to identify the target the report user will select at execution time; for instance:
select host_name, target_name, instance_name from MGMT$DB_DBNINSTANCEINFO
where target_type = 'oracle_database' and target_guid=??EMIP_BIND_TARGET_GUID?? ;
regards,
Noel -
Can we create a analyses with measures as rows for comparision trend
I am working in OBIEE 11g.
Need to create a analyses with measures as rows and study their yearly progress in a single table
normally dimesions are used as rows and measures as columns but this one is slightly different ..tried using table and pivot but unable to show diff measures in single table
Something like this:
------------------------------------Yearly ------Prev year------change%
Shipped Qty ---------------------150----------100--------------50%
Delivered Qty---------------------150----------100--------------50%
Undelivered Qty-----------------150----------100--------------50%
Billed Qty---------------------------150----------100--------------50%
where shipped Qty , Delivered Qty , Billed Qty are the various measures
Please share your expertise in achieveing this
Would appreciate your help as its urgent
Regards
PranatiHi Pranati,
Create a Union report. You have one calculated column with just the text, eg.; 'Shipped Qty' and 3 columns with the 'Shipped Qty'-measures; Yearly ------Prev year------change%
Do the same for the other 3 Qty's
Good Luck,
Daan Bakboord
http://obibb.wordpress.com -
How to create a report with survey data
Hi All,
I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
SwapnaHi Swapna,
According to your description, you want to create a report with survey data and display the summary.
Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
How to create a report with data using the Crystal Reports for Java SDK
Hi,
How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats. I can create my own report through the following code snippet:
ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.newDocument();
However, I cannot find a way to add data elements to the report without specifying an RPT file. Is this possible? I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
is there a way to do this through these packages?
com.crystaldecisions.sdk.occa.report.data
com.crystaldecisions.sdk.occa.report.definition
Am I forced to create a RPT file for the different table and column structures I have?
Thank you in advance for any insights.
Ted JenneyHi Rameez,
After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser. I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
<%
try {
ReportClientDocument rcd = new ReportClientDocument();
rcd.newDocument();
// Setup the DB connection
String database_dll = "Sqlsrv32.dll";
String db = "qa_start_2012";
String dsn = "SQL Server";
String userName = "sa";
String pwd = "sa";
// Create the DB connection
ConnectionInfo oConnectionInfo = new ConnectionInfo();
PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
// Set new table logon properties
PropertyBag oPropertyBag2 = new PropertyBag();
oPropertyBag2.put("DSN", dsn);
oPropertyBag2.put("Data Source", db);
// Set the connection info objects members
// 1. Pass the Logon Properties to the main PropertyBag
// 2. Set the Server Description to the new **System DSN**
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
oPropertyBag1.put("Database DLL", database_dll);
oConnectionInfo.setAttributes(oPropertyBag1);
oConnectionInfo.setUserName(userName);
oConnectionInfo.setPassword(pwd);
// The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
// Add a Database table
String tableName = "Building";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
catch(ReportSDKException RsdkEx) {
out.println(RsdkEx);
catch (Exception ex) {
out.println(ex);
%>
Throws the exception
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
String tableName = "Building";
String fieldname = "Building_Name";
Table oTable = new Table();
oTable.setName(tableName);
oTable.setAlias(tableName);
oTable.setQualifiedName(tableName);
oTable.setDescription(tableName) ;
Fields fields = new Fields();
DBField field = new DBField();
field.setDescription(fieldname);
field.setHeadingText(fieldname);
field.setName(fieldname);
field.setType(FieldValueType.stringField);
field.setLength(40);
fields.add(field);
oTable.setDataFields(fields);
oTable.setConnectionInfo(oConnectionInfo);
rcd.getDatabaseController().addTable(oTable, null);
This code succeeds, but it is not clear how to add that database field to a section. If I attempt to call the following:
FieldObject oFieldObject = new FieldObject();
oFieldObject.setDataSourceName(field.getFormulaForm());
oFieldObject.setFieldValueType(field.getType());
// Now add it to the section
oFieldObject.setLeft(3120);
oFieldObject.setTop(120);
oFieldObject.setWidth(1911);
oFieldObject.setHeight(226);
rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
Then I get an error (which is not unexpected)
com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
How do I add one of the table.SetDataFields() to my report to be displayed?
Are there any other pointers or suggestions you may have?
Thank you -
Problem while creating XDO Report with PL/SQL
hi,
i am trying to create
1.created XDO Report with the help of PL/SQL which takes two parameters and code for writing XML tags to output file
2.created concurrent program that will call the PL/SQL pkg
here i am trying to create the xml out put bu t i am stuck with some errors below is the code
create or replace
PACKAGE AgentTimeReport_XDO_pkg AS
TYPE srdaterange_rec is RECORD (
fromsrdate varchar2(20 byte),
tosrdate varchar2(20 byte)
Type agent_table IS TABLE OF srdaterange_rec INDEX BY BINARY_INTEGER;
procedure GetAgentTimeList(o_errbuf OUT VARCHAR2
,o_retcode OUT VARCHAR2,p_fromsrdate IN varchar2,p_tosrdate IN varchar2);
END AgentTimeReport_XDO_pkg;
create or replace
PACKAGE BODY AGENTTIMEREPORT_XDO_PKG AS
procedure GetAgentTimeList(o_errbuf OUT VARCHAR2
,o_retcode OUT VARCHAR2,p_fromsrdate IN
VARCHAR2,p_tosrdate IN VARCHAR2 )
IS
cursor cs_agenttime(p_fromdate IN VARCHAR2,p_todate IN VARCHAR2)
is
SELECT
incident.Incident_Number as ServiceRequestNumber,
TO_CHAR (incident.incident_date,'DD-MON-YYYY') as ServiceRequestDate,
incident.Summary as Summary,
agenttime.agentname as AgentName,
to_char(agenttime.agentstarttime,'DD-MM-YYYY HH24:MI') as StartTime,
to_char(to_date('00:00:00','HH24:MI:SS') +
(agenttime.endtime-agenttime.agentstarttime), 'HH24:MI') as TimeSpent
FROM cs_incidents_all_b incident,cs_agenttime_agv agenttime
WHERE agenttime.incident_id=incident.incident_id
AND incident.incident_date between to_date(p_fromsrdate,'DD-MON-YYYY')
AND to_date(p_tosrdate,'DD-MON-YYYY');
BEGIN
/*First line of XML data should be ‘<?xml version="1.0" encoding='utf-8'?>’*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="utf-8"?>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<AGENTTIME>');
FOR cs_agent IN cs_agenttime(p_fromsrdate,p_tosrdate)
LOOP
/*For each record create a group tag <G_AGENT_TIME> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_AGENT_TIME>');
/*Embed data between XML tags for ex:- <EMP_NAME>Abeesh</EMP_NAME>*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_NUMBER>' ||
cs_agent.ServiceRequestNumber
|| '</SERVICEREQUEST_NUMBER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_DATE>' ||
cs_agent.ServiceRequestDate ||
'</SERVICEREQUEST_DATE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<START_TIME>' || cs_agent.StartTime
||'</START_TIME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<TIME_SPENT>' || cs_agent.TimeSpent
||'</TIME_SPENT>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_AGENT_TIME>');
END LOOP;
/*Finally Close the starting Report tag*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</AGENTTIME>');
END GetAgentTimeList;
END AGENTTIMEREPORT_XDO_PKG;any one help me
the log file
Service: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
DEMOXDO module: DemoAgentXDO Report
Current system time is 28-JUL-2009 05:16:46
**Starts**28-JUL-2009 05:16:46
ORACLE error 1861 in FDPSTP
Cause: FDPSTP failed due to ORA-01861: literal does not match format string
ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 9
ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 25
ORA-06512: at line 1
The SQL statement b
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 28-JUL-2009 05:16:46
---------------------------------------------------------------------------Hi,
Please see if these documents help.
Note: 367607.1 - FDPSTP Failed Due to ORA-01861: Literal Does Not Match Format String
Note: 370272.1 - not able to run the report set having unsupported date format of fnd-date4
Note: 376034.1 - How to Handle New Date Formats in SQL*Plus and PL/SQL Procedures?
Regards,
Hussein -
Problem when creating a Report with a schduled date
When I tried to create a report with a Schedule (any option except NOW) I get the error of "First Report Occur Date should be after or equal to Current Date" unless I use a date of 2012-10-01 or later in the First report occurs on field. Today's date is 2012-08-23.
Let me know if you can recreate this and if or when there will be a fix.Hi Tim,
I'm glad to see you've been configuring your On100, but sad to see you've hit another snag. We are looking into this issue now. I'll get back to you with an update.
Thanks,
The OnPlus Team -
Creating a report with multiple Y-axes on one graph
I currently have a script that will create a report with either 1, 2, or 3 graphs and has the ability to have four graphs per plot. I would like to add functionality to this script by making the Y-axis on the graphs have multiple Y-axes. How can I programmatically create a graph with multiple Y-axes?
To create an new axis system use the command GraphObjNew, eg:
Call GraphObjNew("2D-Axis","2DAxis1")
Call GraphObjOpen("2DAxis1")
D2AxisBackColor = "blue"
Call GraphObjClose("2DAxis1")
Call PicUpdate
If you have DIAdem Version 10 you can also create a new y-axis using GraphObjYAxisNew. This command is not available in versions 9.1:
Call GraphObjOpen("2DAxis1")
AxisNo = GraphObjYAxisNew("left")
If AxisNo>0 Then
Call GraphObjOpen(D2AxisYObj(AxisNo))
D2AXISYTXT ="My new axis"
D2AXISYTXTFONT ="Arial"
D2AXISYTXTCOLOR ="red"
Call GraphObjClose(D2AxisYObj(AxisNo))
End If
Call GraphObjClose("2DAxis1")
Winfried
Message Edited by winner on 03-23-2006 03:48 PM -
Creating custom reports with Pie Chart
Hello,
I've got a little problem while I'm creating custom reports with SQL Chart.
For example, I want to have a Pie Chart that represent the distribution of the version for a software, i wrote my query with no problem, the result is in good format.
My Pie Chart is fine except there are no percentage displayed. The legend on the right is fine with correct count of different version, but no percentage on the pie chart.
Any idea?
Thanks in advance,
FabHello,
well, I think this is not possible to ask OEM to print the percentage over the chart.
Anyway, I sugget you to rewrite your query to compute the % in the query itselft thus to have the pct displayed on the rigth.
Let's say you want to display the database files' size with such a query: select file_name name,bytes val from dba_data_files;
This is the way to display the % of each file size over the total (remark the above query has been embeded in the new one).
select name,ratio_to_report(val) over() pct
from ( select file_name name,bytes val from dba_data_files )
order by val desc
It is quite easy to adapt such a tip to your own query.
Regards,
Noel Talard -
How to create Webi Reports with SAP BW Objects
Hi,
I have no knowledge on creating webi reports with SAP BW Objects like (InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject).
As per my understanding Webi reports can be developed with universe which is created on BEx Queries or OLAP BAPI interface, unfortunately i don't have BEx App installed. So, i have to create OLAP universe in this case.
Here my question is can we create universe with all the available BW objects like InfoCube, DSO, MultiProvider, Infoview, MasterData Infoobject.
Please, Can anyone suggest a solution
Thanks,
Siva
Edited by: siva@chinni on Apr 25, 2010 4:45 PMHi,
Yes we can create WebI on the top of SAP Objects - InfoCube, DSO, Characteristics etc...
But we have to keep in mind that for WebI we must create Universe.
When we create universe we make direct connection with SAP Objects but we get less functionality - such Calculated Key Figures, Restricted Key Figures, formulas etc. Now you have to achieve all these missing components at Universe Level and at WebI level.
If you are creating your universe on the top of DSO and InfoObject then make sure they set for reporting.
There are some online documentation which tells that what functionality you can achieve.
Check the following document to have a bird's eye view.
[http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/100369a7-033e-2c10-94a4-f254f8578153?quicklink=index&overridelayout=true]
There is another document in PPT which I could not find online. It is very helpful document. It is:
II. SAP BusinessObjects BI Solutions XI 3.1 and SAP NetWeaver BW 7 Current risks, approach, and mitigating strategies for Client Partners, License Sales, and Consulting Delivery Managers
Partner Enablement Seminar
Regards,
Bashir Awan -
Hi,
I try to display a report with 250 000 rows in bi publisher 11.1.1.6.
Running the SQL Request in TOAD take 20s.
From bi publisher 11.1.1.6 this operation take more than 2 hour without result.
The temp file show an xml file which increase (53 M to 70M to 100 M)
I configure jvm (1.6_029) with the following parameters : Xms512m - Xmx2048 -XX:MaxPermSize=3072m
My configuration is the following :
REHL5 64bits
8G RAM
100G file system and 50 GB tmp file for bi publisher
4 CPU
Jdk Parameters:
Xms512m -Xmx2048m -XX:MaxPermSize=3072m -XX:UseParallelGC.
Total CPU usage : 25%
Live Threads : 85 threads
Used : 665 Mb
Commited : 908 Mb
GC time :
8.047 s on PS MarkSweep (3 collections)
8.625 s on PS Scavenge (242 collections)
Any idea to increase performance or other will be appreciate.
Thank you
MamsIf you are generating a PDF output, select "PDF Compression" option in the properties. Ensure you reduce all the log levels to "Low". Ensure there are no (or minimal) calculations/formulas in the report template.
-
I want to create a report with more than 64 column's.
I want to create a report with more than 64 column's. I have generated Query the XML.When I tried to create a template for the report.I have Inserted the colum's Wizard and finish it throughing error message. "you cannot create atable with more that 63 coloum's "
Hi ,
Can u Check the below thread
More than 63 columns in rtf template -
How to create editable table with one empty row ?
I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.
hammm, i do it this:
drop the VO on the page, select Table->ADF Table....
so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
in Data collection select the VO, in Select an action select CreateInsert
luck
Maybe you are looking for
-
Invoice Verification function in MM
Hi Experts, Can anyone please explain me the invoice verification function in Material Management. Regards, Kumar.
-
Intermittence for execute Polling with DataBase Adapter in OSB11g
Hello Guys, I'm having a problem running the polling DataBase Adapter OSB11g. The creation of the adapter was made in Jdeveloper 11. The problem is: Intermittence to run the polling DataBase. Sometimes it works, other time it does not work. Displays
-
Delta problem in 2LIS_11_VAITM
Hello, I'm having a problem with de delta update in the datasource 2LIS_11_VAITM. I have a enhancement in this datasource and when I do a full update, the extractor take the data correctly, but when I do a delta update, the field from the enhancement
-
Hi I have blocked the material by creating new reason in OVSU giving error message when sales order been created using particular material which is blocked.But now my issue is if i block a material for particular plant (Let say 1001) the same materia
-
Hi Experts, We have 4 node rac database as 10.2.0.4 in red hat. we created a dblink from node 4( sol log into racdatabase4 instance) We run this dblink, we got below error massage as error returned attempting to run "select *from [email protected]" o