expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current context

Stimulsoft Ultimate discussion
Post Reply
Hussain
Posts: 11
Joined: Mon May 01, 2023 5:17 am

expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current context

Post by Hussain »

Hi Team,

When I'm changing the template databand with the new datasource, Getting error at the Databand Text...

Attached Sample Project for reference.

Kindly reply ASAP.....
Attachments
Dyanmic Report Sample Project.zip
(19.41 MiB) Downloaded 131 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Lech Kulikowski »

Hello,

Please send us test data (sql) for your report.

Thank you.
Hussain
Posts: 11
Joined: Mon May 01, 2023 5:17 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Hussain »

Hi Lech,

The test data is present in same Sample Project with File Name: SampleJSON.JSON

Reattaching the same here....

Please go through it and do the needful.
Attachments
SampleJSON.JSON
Test Data
(24.72 KiB) Downloaded 131 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Lech Kulikowski »

Hello,

Sorry, we do not exactly understand the logic of your sample.
Please check the following sample:
https://www.stimulsoft.com/en/samples/r ... -from-code

Thank you.
Hussain
Posts: 11
Joined: Mon May 01, 2023 5:17 am

e.interaction.isDefault is not a function

Post by Hussain »

Hi Lech,

Thanks for the prompt reply...

In the attached file, I have explained each and every line working of my code for your detailed reference. (File Name: Dynamic Report.html)

Here, I'm using template of one report and creating a new report with that report Properties and JSON data provided.

We are getting the error as "e.interaction.isDefault is not a function" while rendering the report

Thanks in Advance.....
Attachments
Dyanmic Report Sample Project.zip
(19.41 MiB) Downloaded 179 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Lech Kulikowski »

Hello,

In the sent report is used SQL connection with your connection string. We do not have that data and could run your report in the viewer.

Also, please check your code in the designer. And the select block of code causes the error.

Thank you.
Attachments
Screenshot 2023-05-03 153604.png
Screenshot 2023-05-03 153604.png (695.87 KiB) Viewed 9148 times
Hussain
Posts: 11
Joined: Mon May 01, 2023 5:17 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Hussain »

Hi Lech,

Thanks for the prompt reply,

Actually, SQL connection is not causing any error in above, we are trying to add extra columns to the existing template is causing error....

You can see attached sample report for which I have rendered report with the same json data...It works well in that case...

while adding new columns to the existing report is causing error.

Hope you understood the actual cause of issue.

Thank You
Attachments
Dyanmic Report Sample Project.zip
Working report
(19.41 MiB) Downloaded 182 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: expression in Text property of 'DataText2' can't be evaluated! The name 'Table' does not exist in the current contex

Post by Lech Kulikowski »

Hello,

The error cause a selected block of code with a Header.

Thank you.
Post Reply