This is a migrated thread and some comments may be shown as answers.

Calculated Fields give me Error "The expression contains object 'xxx' that is not defined in the current context."

2 Answers 570 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
IT AE
Top achievements
Rank 1
IT AE asked on 13 Aug 2015, 03:21 PM

Hallo!

I have two calculated Fields in an Q2 2015 Report.This Fields work well in the ​Preview Mode of your Stand-alone-designer.

However, when databound via code i get this error: "The expression contains object 'xxx' that is not defined in the current context".

Omitting both fields creates the report OK.

I am using the Fields like this:

[= "Name: " + Fields.​salutation + " " + Fields.​name]

where "Fields.salutation" would be a calculated field.

Is that not possible? Or am I doing something wrong?

Thanks for your Support!

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 13 Aug 2015, 03:27 PM
Hello Walter,

The provided expression seems correct. The issue might be in the calculated field definition, or the custom code you are using to bind the report to data. In order to investigate further we will need to review a sample report exhibiting the issue. Please open a new support ticket where you can zip and attach the requested sample report.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
IT AE
Top achievements
Rank 1
answered on 18 Aug 2015, 02:14 PM

Hello,

we were able to fix this via online ticket.
The problem existed because I programmatically replaced the DataSource with a new one and fogot to add the calculated fields there.

Thanks for your support!
Tags
General Discussions
Asked by
IT AE
Top achievements
Rank 1
Answers by
Nasko
Telerik team
IT AE
Top achievements
Rank 1
Share this question
or