Page 1 of 1

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

Posted: Mon May 01, 2023 9:36 am
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.....

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

Posted: Tue May 02, 2023 8:43 pm
by Lech Kulikowski
Hello,

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

Thank you.

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

Posted: Wed May 03, 2023 4:47 am
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.

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

Posted: Wed May 03, 2023 7:57 am
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.

e.interaction.isDefault is not a function

Posted: Wed May 03, 2023 10:23 am
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.....

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

Posted: Wed May 03, 2023 1:37 pm
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.

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

Posted: Wed May 03, 2023 1:58 pm
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

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

Posted: Wed May 03, 2023 2:45 pm
by Lech Kulikowski
Hello,

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

Thank you.