Report with FO-Designer
Hi!
I am creating a PDF report using FO-Designer.
My Query is this:
select * from tbl_employees where empno=:P2_Search;
My problem is I want to use an APEX Item(Number Field which is the :P2_Search ) to filter my report then download the XML and XSD file to FO Designer. Then I will create a layout and generate an .FO file to be uploaded in APEX.
I have a row here:
empno empname Dept
4 John Sales
My query return a correct row when I execute it in SQL Command. But it the source query, the result is no data found.
When I type 4 in the number field in APEX then click the print in which I already uploaded the .fo file, it returns only the constant field in the report.
I guess my query did not reflect on the layout.
Can anyone please give me an idea how to do this.
thanks in advance.
935156 wrote:
Hello VC!
Thanks for the reply. When I checked it, no value was populated.Problem is here then.
Even in the Source Query. When I edit my source query
( select * from tbl_employees where empno=:P2_Search ) and set bind variables to test, the result is no data found even if it exist in my database. You mean it is not returning any data even the value is hard coded???
select * from tbl_employees where upper(empno)=upper('test')If it solve the problem, I would recommend you reproduce this on apex.oracle.com? so that it can be solved easily
Similar Messages
-
Offline Reporting with Excel? -- complete Report +hierarchy possible?
Hi people!
Im new in SAP BW and I have a question regarding BEX. My goal is to get a complete Excel report that contains all the data and has a working hierarchy structure without connection to BW!
I generated a report with Query Designer whose data are represented in several hierarchy levels (option in row-header).
=>date
===>area
=====>customer
=======>material
After the execution of the query in BEX Analyzer or in the web, only the highest level (date) is indicated. If I open the next levels, the data are reloaded of the BW each time.
But Id like to load the data completely despite hierarchy (Transaction RSRT and then properties load all data is selected).
Ok to get all the data, I could change the option in Query Designer to open all the levels after the first load, but the hierarchy levels should be closed at the first time.
<u>My Question is:</u>
Is there a possibility to get all the data offline in Excel with working hierarchy levels? Its important for me to get a complete report without connection to BW and so the people can navigate also offline, e.g. open a lower hierarchy level with all the data.
After saving my report as *.xls-file, the report contains only the part of the shown results and the hierarchy symbols have no function.
I dont need any symbols in offline report. I think, the excel function group by would enough for my requirements. But I dont know how can I use this function with my data after running the query.
In SAP R/3 the same is possible automatically, when a report will be generate.
I have tried to find responses here in forum. But the search is unfortunately a little complicated and the results were not satisfactory.
- Why I cant get a list of the main-topics?
- How can I get satisfactory results for multiple words?
OK, I have read something about OLE and BSP, but I hope to find an easier solution without programming.
Maybe the tool XL Reporter would be a solution, but we have no Business One licence. Unfortunately, current links for download a free version (I dont know if its free), which I found here in the forum are not working for me. Whats wrong with XL Reporter?
I would be glad about helpful replies.Hi Eugene!
Thanks for your trouble and sorry for the late answer, but unfortunately I had to do a lot.
I think, to describe my idea is not so easy with my English. But maybe you can understand it.
First I should say, the web report and the offline Excel report are two different things now. I don't save the webreport to excel.
The web report gets a hierachy and other formatings and with access to BW the user can use the report just as one likes.
My idea for the offline Excel report is to save the complete data without hierarchy or other formattings. So every characteristic and every key figure is in a separate column and all rows contains data.
date/area/customer/material/sales volume/other kf
01.11.2005/100/34567/66000/34.000 euro/...
01.11.2005/100/34567/67000/23.000 euro/...
01.11.2005/100/34567/68000/14.000 euro/...
01.11.2005/100/34567/69000/43.000 euro/...
01.11.2005/100/40200/33000/11.000 euro/... (new customer)
01.11.2005/100/40200/44000/10.000 euro/...
01.11.2005/100/40200/68000/35.000 euro/...
01.11.2005/100/40200/69000/22.000 euro/...
Then the created Excelsheet should be handled by vba.
As far as I know, you can select the data in Excelsheet with normal SQL commands. If the corresponding data are selected, I try to use the group by function in vba code.
So first I select the materials from the first customer. If I found the next customer I want to group all materials for the previous customer.
The Result should look so: (+ -> to open the materials)
01.11.2005/100/34567/__/+____________/...
Sum_______/___/_____/__/114.000 euro /...
01.11.2005/100/40200/ /+____________/...
Sum_______/___/_____/__/ 78.000 euro /...
The next Step is to group all customer in one area.
01.11.2005/100/+_____/__/____________/...
Sum_______/___/______/__/192.000 euro/...
01.11.2005/200/+_____/__/____________/...
Sum_______/___/______/__/320.000 euro/...
And the last point is to group all areas per date.
01.11.2005/+___/_____/__/____________/...
Sum_______/____/_____/__/512.000 euro/...
02.11.2005/+___/_____/__/____________/...
Sum_______/____/_____/__/433.000 euro/...
Now If I have a hierarchy structure, the offline user of the report can open the single levels to see the details. -
Combine two reports in query designer using key figure with sap exit
Hi experts,
i want to combine two reports in query designer using key figure with sap exit
in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
to calculate due and not due in two columns
in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
now i have requirement like this
not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
or
not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
thank youHi Dirk,
you perhaps know my requirement,
for the management to make used in one report,
we have in reporting finacials Ehp3.
Vendor Due Date Analysis - which show due, not due
Vendor Overdue Analysis - show only due and analysis in time grid frame
i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
krish... -
Design a single template for multiple reports with different column order
Hi,
I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
Thanks in advance.-As I mentioned you can find Template Field object in Insert menu of crystal report Designer 2008.
As soon as you select Template Field object you will be able to see a box beside ur mouse cursor. Drag and drop this box at required place. Now when you place this object in report you will get some thing like this "<TemplateField1>" listed under Formula Fields tree. Double click "<TemplateField1>" formula to add your conditions.
-I have not tested it for large amount of Customers. However as the number of customer increases the number of conditions will get increased.
For the customer that want the same ordering of columns you can put those customers under one condition.
for Example...
if(?Client in ['clientA','clientA']) then
<TableName>.<Field>......
-What do you mean be 40 columns? Do you mean 40 fields or you want to show 40 columns in report? Please elaborate.
Regards,
Amrita
Edited by: Amrita Singh on May 21, 2009 7:54 AM -
Generating Report with vertical lines from Designer
Hi:
I would like to get any suggestions about generating tabular reports with vertical lines from Oracle Designer 6.0 on Windows NT.
Any help will be appreciated.
Thanks in advanceHey c2petrov,
Thanks for using Apple Support Communities.
After reviewing your post, it sounds like you are having trouble with the screen. A frustrating situation to be sure. This article addresses issues with video on internal or external displays.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/HT1573
Have a nice day,
Mario -
Crystal Report with VS 2003 How to define bar colour in design or code?Urgent
Post Author: sterlingrelocation
CA Forum: Crystal Reports
Hi, I am using Crystal report with Visual Studio 2003 and i am creating a graph for user satisfaction (Excellent,Good,Satisfied,Unsatisfied). I want to define color for each bar like Blue for Excellent and Red for Unsatisfied. I tried alot and searched all over as well but did not get any option. If somebody can help me, will be great.
Thanks in advance.
SterlingPost Author: sterlingrelocation
CA Forum: Crystal Reports
Hi, I am using Crystal report with Visual Studio 2003 and i am creating a graph for user satisfaction (Excellent,Good,Satisfied,Unsatisfied). I want to define color for each bar like Blue for Excellent and Red for Unsatisfied. I tried alot and searched all over as well but did not get any option. If somebody can help me, will be great.
Thanks in advance.
Sterling -
Need help to develop report with column chart
Hi
I am new to SAP BO world.Could anyone please help me to design report with column chart.Please guide me how to develop report for the following requirement.I am not aware of variance columns and variance labels.Please provide some guidance or some tutorials(for column Chart) so that I can complete the task. Please reply me as soon as possible.Waiting for reply.Thanks in advance.
Type: Column Chart
u2022 Rows: Banking Asset Margin (%)
u2022 Start / End Columns: PY YTD Act(Prior year year to date); CY YTD Act(Current year Year to date)
u2022 Variance Columns: # Var (CY-PY Act) for GOLM; Volume; Rate; Non Banking NII; Banking Volatility in NII; Banking Volatility in OOI; Fees/One Offs/Other; Volatile Items; Sophie
u2022 Sub-total columns: PY YTD Underlying; CY YTD Underlying.
u2022 Variance Labels: % Var (CY-PY Act) for Total Income and Underlying Income
u2022 Sub-Total Labels: # Var (CY-PY Act) for Net Insurance Income; Banking Volatility; Other Operating Income
Additional information
u2022 Variance columns (bar) colours: Red = Adverse to Prior Year; Green = Favourable to Prior Year
u2022 Columns to show values. Adverse values to be shown in red text in brackets. Favourable results in black text.
u2022 All values in Black, but adverse to be shown below the bar.Hi,
This type of question is almost impossible to answer over a forum .
You need to work with your business to understand what these requirements mean in terms of data modelling and relationships between object entities.
- Some of these metrics should be delegated to source, and calculated in the update routines to your datatargets (aka Cubes/Tables)
- Others could be resolved in the semantic layer (Universe)
- Other will be calculated in the presentation layer as local formulae or variables.
whilst BusinessObjects is a fairly intuitive tool, it may be unreasonble to expect a new learner to deliver an advanced report with conditional formatting.
Regards,
H -
How to create a report with dynamic columns
Hi all,
I am using Apex 4.0 with Oracle 10g
I am creating a report and I need to display columns dynamically based on the item values.
example:
I have a table employee with columns name, designation, sal
In the report page i have a select list with designations and when I select a designation from the select list,
I need to display the names of the employees horizontally,
like each name as a new column in the report with that particular designation. and same has to continue when I select different designations.
Can some one help me how we can do that.
I appreciate your answer
Thanks,
RikEssentially you want to write a pl/sql function which returns a varchar2 string. The contents of the string must be a valid sql statement.
Once you have done this, you need to add a report region as type sql report and you will have the option of writing it as a query or as a function returning query. Choose function returning query and enter in the function call.
Note your function must be valid, and must be executable by your apex parsing schema.
example:
create or replace
function test_report( p1_tablename in varchar2)
return varchar2
is
v_query varchar2(4000);
begin
v_query :=
'SELECT * from '||p_tablename;
return v_query;
end test_report;Edited by: Keith Jamieson on Aug 15, 2011 4:50 PM -
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 -
How to improve the query performance in to report level and designer level
How to improve the query performance in to report level and designer level......?
Plz let me know the detail view......first its all based on the design of the database, universe and the report.
at the universe Level, you have to check your Contexts very well to get the optimal performance of the universe and also your joins, keep your joins with key fields, will give you the best performance.
at the report level, try to make the reports dynamic as much as you can, (Parameters) and so on.
and when you create a paremeter try to get it match with the key fields in the database.
good luck
Amr -
Report with multiple Detail Area
Hi All,
Please see the Report pointed to the link below:
[Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
Some Explanations:
========================
(1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
(2) The lines with "WBLNX'" "123, 123.12",
"WBLNX'"
are variable data associated with the same Heading: "ABCDEFGH..."
(2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
(3) Item Code Descriptions ==> is a Header Info
(4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
(5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
QUESTION:
===================
How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
Thanks and Best regards,
FelixHi Felix
You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
Hope this helps.
Regards
Nikhil -
Transaction Journal Report - Print Layout Design
Hi all
Is it possible to add Journal Entry Project Codes to this Transaction Journal Report (Print Layout Design)?
I tried to add Journal Entry Project Codes to this system PLD but the result still not showing any Project Code.
KedaleneHi Kedalene Chong
ou don't need a list of variables to use them. Simply go to View -> System Information so whenever you hover around a field with the cursor, in the left bottom corner of the screen you will see the details of that screen along with the variable number if it is a variable.
So you will see something like:
[Form=139 Item=29 Pane=0 Variable=91]
-> in this case the variable number is 91 - use it in Print Layout Designer.
So you can just use the variable specified in these details. When creating the print layout, just go back to your form, stand on a field with your mouse and you will see what variable to use.
Also Check with the PLD Variables Note No 867048...
Symptom
Using system variables when designing a print template for the General Ledger report.
Please note that variable numbers might change when upgrading to a higher version.
Cause
FAQ
Solution
Field Name
Variable Number
Posting Date
62
Due Date
63
Document Date
112
Series
140
Document Number
141
Transaction Number
65
Journal Voucher
66
Reference 1
67
Reference 2
68
Reference 3
69
Details
70
Transaction Code
71
Project Code
72
Costing Code
73
Offsetting Account
74
Indicator
137
Total (LC)
75
Debit (LC)
96
Credit (LC)
95
Balance (LC)
76
Total (SC)
77
Debit (SC)
98
Credit (SC)
97
Balance (SC)
78
Total (FC)
79
Debit (FC)
100
Credit (FC)
99
Balance (FC)
80
Creator
138
Internal Reconciliation
131
External Reconciliation
132
System variables from the Business Partner Master Data window available for use in the General Ledger report:
Phone
117
Fax
118
Contact Name
119
Address
120
Sales Employee
133
Remarks
134
Full Address
135
Hope Hepful
Regards
Kennedy -
Error while executing report in query designer
Dear Folks,
I am geting following error while executing report in query designer.
Error:500 E
an exception raised because of 0analysis pattern.
Hence,i am unable to execute any report.
Need help.
ThanksHi Kitu G,
I think this is something to do with the bex web 0ANALYSIS* objects not being installed in your BW system.
I would try and do the following:
- Goto RSA1 > BI Content > BEx Web Template (BTMP)
- Then double-click on Select Object.
- Highlight all objects that start with 0ANALYSIS_PATTERN
- Click on Transfer Selections, and then Install.
If you can't do the above in prd, do it in DEV, then transport the objects to prd.
After all this, try re-running your queries.
Any questions/clarification just let me know
Cheers.
Darwin -
Error '80070002' when running report with Crystal 9
Hi,
A client of mine is using Crystal 9 designer and RAS. We are trying to get them to upgrade but in the mean time when ever we create a new report we get the following error:
Error '80070002'
(there is also a random file path but can't show this for privacy reasons)
From what I can make out the current set up appears to be ok: they have the correct SDK files in the right place on the production application server.
These files point to the RAS which sits on the QA application server.
When we run the report through Crystal designer the reports runs fine, however when we run it through our HR application we get the above error.
Strange thing is though all of the pre-existing reports work fine...which is why I think the set up must be correct otherwise none of the reports would run, this is only happening with new reports we are trying to create.
It's like the page tries to connect to the RAS but gets kicked out.
I've tried seraching this and other forums but have not seen anybody else with this error.
Any one got any ideas?
Many thanks in advanceMoved to .NET BOE SDK forum ( assuming this is a ASP.NET app )
First thing to try is to turn logging on for RAS, stop the RAS server and add "-trace -crpetrace 7" ( I think these worked for RAS 9 ) and then look in the logs to see what the actual error is reported by CE 9. The error you posted is a COM error.
Next we need to know if this is a WEB app or Windows App and what Dev language you wrote it in?
What happens if you create a New report using the same database tables and info?
Thank you
Don
Maybe you are looking for
-
What is the best movie player for mac mini from 2009
i have a mac mini from 2009 and my problem i can't play movie's. My OS X Version is 10.5.8. When i installed the movie player "VLC" version 2.1.5 mac for 32 and 64 bit i get the information " you can't this version from vlc media player with the vers
-
i'm getting a 9041 error when trying to convert files to AAC -- any ideas on how to fix it? the files files in iTunes show up as Apple Lossless but i can't put them on my iPod
-
Hi: I am looking to build a solution for a prospective client. I want to use FCP server's file manager to allow remote users to access and obtain content. This arrangement is actually for healthcare solution. I know FCP is used to manage and transf
-
How can I open raw CRF files with CS4
I have just purchased the olympus M1 and I have always used photoshop CS4. I found that the raw files are CRF files and I cannot open them in photoshop Do I have to download a plug in for CRF or is there another way sandy
-
How to group emails into a daily digest?
I got subscribed today to dozen of topics and receive a lot of emails now. Is any way to receive daily/weekly digests instead? Checked Preferences under Profile - it's not available there. If it's not possible - I will have to unsubscribe.