The table only shows up under One Empty Record in jasper studio - jasper-reports

this report works well in the preview mode with One Empty Record as following
But when I change it to my database adapter.xml(100% sure the connection is good), the data is missing.Why
Here is my settings:

Related

JasperReports parameters works in iReport but fails on JasperReports Server (II)

I have a very similar problem to the one described at [JasperReport parameters works in iReport but fails on JasperServer] post.
The report works properly within the iReport environment using Preview option but fails within JasperReports Server
The comments suggest that iReport does not create the InputControl within JR Server. So I verified that the server contained the proper InputControl (that apparently solved their issue).
The input control called sk serial selection :
ID: ic_sk_serial
Name: sk serial selection
Type: Single Select Query
Mandatory: false
Read Only: false
Visible: true
Query resource:
From repository (pointing to *q_sk_serial* see below)
Value and Visible columns:
Value column: id
Visible query columns: serialnr
The input control query called q_sk_serial (populate the inpute control with a list of alphanumeric serial numbers, items are unique):
select id,serialnr from "public"."serials" order by serialnr;
The parameter name:
ic_sk_serial
The report query:
select * from "public"."datas" datas where datas."serialnr" like $P{ic_sk_serial}
In my case, input control seems to work properly in both environments (within iReport preview and JasperServer): I populate a list of items coming from the same database; I see that dropdownlist as expected within iReport but also on with JR Server.
Within iReport, the drop-down list returns the correct selected value in a report parameter which lead to the correct report. In JasperReports Server I only get a "The report is empty" message. So I tend to think the report parameter is not properly passed through within JasperServer.
Hardcoding the "Input control" output value, shows expected report.
Side note: I am using iReport 4.7.1 in compatibility mode with JasperReports Server 4.5.0.
I would be glad to hear if anybody ran into the same problem?
How can I debug further the report execution in JR Server?
Is compatibility mode susceptible to cause that issue?
What about the input parameter type? I use a query that return a string. However my input data type is text (closest match to string). My parameter type is java.lang.string. Does this make sense?
Actually that is a simple bug:
I just found out that:
value column: id
Should be
value column: serialnr
Still, I do not understand why the report was working in preview mode? Such big mistake should fail on preview no?
In anycase thanks to everybody to lead to my mistake ;)
In my point of view, there are two types of parameter within a jasper report including: Report parameter and Dataset Paramter.
Firstly, you must create both parameters and then map the one of Dataset to the one of Report.
I encountered the same problem to you thus that resolved my case.

crystal report field explorer not showing newly added field

I have created a crystal report with datasets(xsd) , it is working fine. Then i added a new field in xsd and when i open the field explorer it do not show that field, i added source again through database expert but still it is not showing that field. Any other person faced such issue then please help.
After waiting a lot for right answer and searching on internet i tried different options by myself and the problem was solved by right clicking on database fields and then click on verify database. If some one have some better option then please suggest.
I had the same problem and resolved it by adding parameter input and running the report from the designer. Crystal report popped up and said that it was fixing the report and refreshed the connection to the database for the most current fields.
I had a similar easy where Log on or Log off server and Verify Database wouldn't update the database fields list in Crystal Reports. The only thing that worked for me was to physically move the typed dataset to a different location. After creating a new connection within Set Datasource Location I updated the datasource and there it was....
Sap Crystal report has a problem while refreshing database changes to crystal report. I found this solution and it works like a charm:
First go to refresh data base option and then it will ask you to enter parameter values to the stored procedure
then without passing any values just press escape button it will suddenly ask you to confirm the changes made to database when you do it on second time it will say database is up to date
Don't forget to rebuild your solutions before validate your database.
Restarting the Machine did the trick for me.
Some data types in dataset can't show in crystal reports try to change data types ( example don't use System.DateTimeOffset use datetime only)
Verity database in database fields
If your DataSet (.xsd) came by "Add Existing File" and not create one, then you will encounter a problem like mine. to fix this:
-Find the DatasetName.xsd file and all of its name-like file . Copy it EXCEPT THE DESIGNER (DatasetName.Designer.cs) and paste it somewher, you will re-paste it later
-In your VS. Delete the DataSet (xsd File) in your project by right click it in your Solution Explorer. This will delete any traces of file.
-Re-paste the files that you copied in the same location. Then in VS. And add the xsd file that you re-paste.
-Then you can now add columns. And it will update the DataSet, and also the Crystal Report will see the updated column
Reason: For i-dont-know-what-the-heck-happened, if you include the designer file then add it in you project, then you add columns to it, the VS will create new designer.cs file instead of overwriting the existing file. So the column registers only in original but the newly created one only recognized as valid (which is no traces of new added column)
You can press F5 to see preview, if crystal report find out new fields it will verify all field in database, and your new fields will appear.
Hope this will help you!
Log off from server, then verify database, that did the trick for me!
By just updating the entire datasource location did not work for me. I had to expand the source location and then update the individual table. Hope this helps someone.
Right click REPORTDATASET then select Set Datasource Location.
click database files and select your existing *.xsd. then you will see REPORTDATASET.
select it.
update
close
Now you will be seeing the new fields in your *.rpt :)
I use the following technique:
Select datadese expert in crystal report
Select previous added datatable.
Press "<<" to remove it from reporting, its related columns are removed from report automatically.
Then select Project Data>>ADO .Net DataSets>> your updated dataset
Press ">>" to add and click the OK button.
New added field also shows in dataBase fields and then added in report.

No data returned in Crystal Reports

I have a Crystal Report I'm working on; last week it was returning results but when I fired it up this morning I was no longer getting anything. Checking the SQL query, I show that the table name is listed twice, for some reason:
SELECT "WMS_TESTINFO"."RECORD_NAME"
FROM "TestEnv"."dbo"."WMS_TESTINFO" "WMS_TESTINFO"
Any thoughts on what could have broken? I've checked that the database is connected and my data is still there.
The table name is listed twice as Crystal Reports creates an alias for every table.
This Crystal generated SQL:
FROM "TestEnv"."dbo"."WMS_TESTINFO" "WMS_TESTINFO"
Is in the format of:
FROM DATABASE.OWNER.TABLENAME ALIAS
This is normal for Crystal.
I would run that SQL in SSMS (remembering to remove all of the " first) to check that the data really is still there.
If it is, check that a filter hasn't been added to the report, via the Select Expert menu opton, to filter out all the data.
Lastly, go to Database > Set Datasource Location and re-apply the connection to ensure that the report is definitely pointing at the right location.

Crystal Reports 10 - Adding new fields to a report causes all the fields in my report to disappear

I added 2 additional databases to my report(Emp and Unemp). I verified all the links and they were correct. The problem is "when I add the new fields (from the new databases) to the report, all of the fields in my report disappear." This disappearing occurs in while in preview. Also, when I remove the newly added fields all of the fields in the report reappear. Can someone please help?
So, you had a working Crystal Report that originally pulled from 1 table. Then you added 2 new tables and all your records disappear. Are you sure that the new tables (Emp and Unemp) are populated? Are they joined correctly to your main table?
Just because Crystal tries to auto-link tables for you when you add them doesn't mean you should trust it to do the job correctly. It might have added some extra joins that don't belong there.
Check your joins and record selection criteria. Something there is causing zero records to be pulled (look at lower right portion of window for Records Read).
You might also do a Database, Verify Database to verify the database is "synced" with the report.

Resize varchar doesn't update crystal report

I've got an existing report with quite a few fields on it.
I have just modified my database changing a varchar(10) to a varchar(20)
When I test it out with data '12345678901234567890' the query against my view works perfectly fine. However, even after I've completed a "Verify Database" it doesn't display the whole value.
I have attempted using a formula to display it, it still truncates it at 10 characters, I have also done a LEN({myfield}) and it displays 10.
I have also used the command "Update datasource location".
Somehow that field length information is stuck.
I have resolved it in a roundabout way.
I removed this field from my datasource,
I then verified the database and the field was removed from the report
I then re-added the field to the datasource
Then re-added the field to the report
Everything displayed properly.