on 11-16-2010 9:47 AM
Hello,
I would define a formula in a field of my database and later use it in a crystal report. The idea is to make configurable the output.
The field contains for example "{table.field}+{table.field2}".
My problem is that Crystal doesn't interpret the formula and consider the field as text. The output shows the formula.
Is there a way for the content of the field is regarded as a formula?
I use CR 10.0.5.1506 and sql server 2008.
Thank you in advance for your help.
Regards,
Stephane
Create the same formula in Crystal and don't use the field with the formula
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steph,
I've been using SQL Server for more than a few years now and I've never heard of "indicators"... That's not to say that there isn't, I've just never heard of it.
I'm thinking that you're either working with a data warehouse (lots of unfamiliar terminology there) or you're referring to a "user defined function" (udf).
If in fact you are working with a udf, you'll need to use either a SQL Expression field or use a Command as your data source.
A SQL Expression field allows you access functions that are specific to your database. Just use the same syntax that you would use if you were writing out the query in SSMS.
A Command... Allows to to write and test your query in SSMS and then simply paste it into the Command window and use that as your data source.
HTH,
Jason
I keep the formula in a database. I use a field whose type is varchar.
In the report (in preview mode or after generation), the formula appears without any interpretation. The following text appears "{table.field}+{table.field2}".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you create a field in a table to use? how is it defined in the database?
Is there a way for the content of the field is regarded as a formula????????? please be more explicit on this
when you query the table what displays the result of the formula or the formula it self?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.