Hello,
I have a TRDX report where the data comes from SQL stored procedures.
The report works successfully at runtime, and the data is returned correctly by the stored procedures.
However, in the Telerik Report Designer, I get errors like:
Object 'XXX' is not defined in the current context
=Fields.SomeField
=Fields.OtherFieldSo we are in a situation where:
SQL returns the fields correctly
The application renders the report correctly
But the Designer does not recognize the fields
And shows “not defined” errors during design time
What I understand
It looks like the Designer cannot infer the field schema from stored procedures unless they return static metadata.
Question
What is the recommended/best practice way to expose stored procedure output fields to the Designer so we avoid the “Object not defined” errors?
For example:
Should we add dummy
SELECTstatements for metadata?Is there a supported/recommended pattern for TRDX reports using stored procedures?
Is there another way to force the Designer to read schema?
Important Note
I am not asking about runtime behavior (which works).
My issue is purely about design-time schema detection.