I'm using crystal report in my project i use serial number in my rows using Insert->special field -> record number
it shows perfect count of rows
but I'm getting an problem if crystal report is null. It shows 1
this is an problem . please help me how i did not get this 1 in my report.
Any ideas
thanks in advice Please Someone help me
There are several solutions for your problem but easiest and simplest is probably that you go on your detail section and put suppresion formula if there is no records.
So to do that
go to section expert
write formula on detail section suppress trigger (picture)
formula should be like if count({any_field_name} = 0)then true else false
That should do it, hope it helps
Related
I have "source.xlsx" and "destination.xlsx".
Source.xlsx has a list of serialNumbers, one per row (in column "SerialN").
Destination.xlsx has the same serialNumbers, one per row (in column "SerialN").
I wish to go trough each of the serialNumber in "source.xml and find the equivalent in "destination.xlsx"
(in column "SerialN").
If number is a match then, in "destination.xlsx" column labelled "Pass?" enter "passed".
I am new to Spreadsheet Light, and classify myself ha a beginner in C#.
I have seen many examples, on the developer site and this site, but got confused about it.
Can you please help?
Regards
Francesco C
NOTE: I have changed xls to xlsx. made an error.
I am using crystal report asp.net visual studio 2012. I am showing table format data in crystal report and I am using special field record number as serial number but problem is when data not exist special field record number show 1.I want record number not display when data is not available.Which formula i will write to get rid of this problem.
I am getting following result when data is not available
SR NAME
1
I do not want record number
on your section expert under suppress condition you can write something like isnull(Name) or Name = "". Once that condition is true, it will suppress the entire row.
I am using crystal report 13. I designed a report and tested and previewed and saved it.
Now i tried printing the same using application.
The fields gets autosaved with earlier viewed string length, so any valve from DB above this is not displayed.
For example, the field qty is saved with string[7], and so '1.27 UNIT' is displayed as '1.27 UN' alone.
I Browsed more about it, there is no proper solution.Can anyone help me rectify this error. Thanks in advance.
That doesn't look like a crystal report issue but assuming all of your quantity will be in 'Units' and no quantity will exceed 7 digits try this formula.
split({QTY}," ")[1] &" "&"UNIT"
I really need your expert help :). Expanding on what I have learnt from querying data sets using adapters and filling a Grid View. I need some help on the following task.
I have a SQL Server Database which I am querying using C#. I already have solid working solutions of by a date range, a specific value. However, the business user would like to search by a list of values they provide as input into a form.
Similar to the below:
adapter.SelectCommand.Parameters.AddWithValue("#mindate", textBox1.Text);
The input will be taken from a text box or similar form based element. There should be no defined limit to the number of values e.g. I don't want to prevent the user from inputting 100 values for example.
By way of example.
User input: doc1.num1.value;doc2.num1.value;doc3.num1.value etc
Note: The document number field may contain a full stop. However, each value will be terminated by a ';'
In the above example, we would run the following query: select employee_id, docNumbers from tableName where docNumbers in (inputlist)
And the output would be:
Record 1: 1, doc1.num1.value
Record 2: 2, doc2.num1.value
Record 3: 3, doc3.num1.value
Thanks in advance guys and gals.
I guess what you are looking for is using an IN clause when doing your query.
I'm working with the MyMediaLite's item recommendation tool and I'm trying to understand how can I do in order to generate a prediction file which consists only of test set's items.
Actually with the default options (--overlap-items) it generates a prediction file which contains both items that are present in the test set and someone which aren't present in it. This is really annoying simply because I need to obtain correct recommendation in order to generate the metrics for my recommender (I use an external tool in order to generate the metrics).
So I've tried the option "--in-test-items" which should use as candidate items only those present in the test set, but this is not the result that I obtain. Actually I'm working with the movielens 100k dataset which I've binarized following a specific strategy: I've assigned 1 to items which have as rating 4 or 5, otherwise 0.
I want to report here the command that I use in order to produce the recommendation in a implicit feedback situation(supposing that I'm trying to execute the test on the first split of the dataset):
item_recommendation --training-file=u1.base --test-file=u1.test --prediction-file=u1.mml_res --in-test-items --recommender=ItemKNN --predict-items-number=10
There is something incorrect in this command? Do I have to fix something?
Thank you in advance.
Alessandro Suglia
The question was answered in this e-mail thread: https://groups.google.com/forum/#!topic/mymedialite/Sm6RXehqrYE