Telerik Forums
Reporting Forum
1 answer
54 views

I am currently using a Web Service Data Source in development with the following server URL:
http://localhost:5000/api/.

However, I am unsure what the URL will be in production and how to configure or change it appropriately when deploying. Could you please guide me on handling this configuration for the production environment?

2 answers
300 views

I have 3 panels in a report (using Standalone Designer R3 2021).

Corresponding to these panels, I have 3 fields in the data source V1Display, V2Display and V3Display.  The values in these fields are either 0 or 1, with 1 indicating the panel should be displayed.

I've tried different suggestions I've found in older threads and elsewhere to hide the panels based on Conditional Formatting or Binding.

How do I had a panel if its VxDisplay value = 0?

MasiULLAH
Top achievements
Rank 1
Iron
 answered on 19 Nov 2024
2 answers
515 views

We have a case where we have the following json data source as the source of data:

{
    "Transaction":
    {
        "ProductList": {
            "Product":[
                {
                    "@Item": "Product Name 001",
                    "@Price": 1.00,
                    "Taxes": {
                        "Tax" :[
                            {
                                "@Type": "TaxType1",
                                "@Amount": 1.00
                            },
                            {
                            "@Type": "TaxType2",
                            "@Amount": 2.00
                            }
                        ]
                    }
                },
                {
                    "@Item": "Product Name 002",
                    "@Price": 1.00,
                    "Taxes": {
                        "Tax" :[
                            {
                                "@Type": "TaxType2",
                                "@Amount": 1.00
                            },
                            {
                            "@Type": "TaxType2",
                            "@Amount": 2.00
                            }
                        ]
                    }
                }
            ]
        }
    }
}

We have imported it into Telerik Designer in such a way that it appears like this in the Data Source Explorer:

We want to display in a table, for each Product line, the sum of all its Product.Taxes.Tax.Amount in addition to the product's own data. e.g
ProductName 001 | Product Price 001 | Sum(Product.Taxes.Tax.Amount) for Product 1
ProductName 002 | Product Price 002 | Sum(Product.Taxes.Tax.Amount) for Product 2

We can easily access attributes of Product such as "Item" or "Price". The problem arises when we want to access the sum of the Product.Taxes.Tax.Amount for each product.

It seems that the expression editor and Data Source configurator is not able to reach the depth level of Product.Taxes.Tax.Amount. We tried to acces via JSON Path in the Data Source but didn't work

How can we represent the Product.Taxes.Tax.Amount sum for each Product in a table?

Thanks in advance!

1 answer
68 views

Hello All,

I've built 100's of Reports using the Telerik tools but I've never used a SQL query where I've used a DECLARE function for the data source.

Here is my query:

DECLARE @CaseNum as NVARCHAR(12) = '20604003'
DECLARE @Enc as INTEGER = '743212'
DECLARE @START_Date as DateTime ='2024-10-08 00:00:00.000'
DECLARE @Enc_Date as DateTime= '2024-10-17 00:00:00.000'
DECLARE @Location as NVARCHAR(75)= 'SHOULDER/ARM' 

SET @Location = (SELECT Location FROM tblVisitLog WHERE Encounter_code = @Enc AND CaseNumber = @CaseNum AND Discipline = 'PT' AND VisitType <> 'M') 

SET @START_Date = (SELECT TOP 1 TimeIN 
FROM tblVisitLog 
WHERE Encounter_code = (SELECT MIN(Encounter_code) FROM tblVisitLog WHERE CaseNumber = @CaseNum AND Discipline = 'PT' AND VisitType <> 'M' AND TimeIN > '2014-12-31 00:00:000' AND Location = @Location) AND CaseNumber = @CaseNum 
AND Discipline = 'PT' AND VisitType <> 'M')

SET @Enc_Date = (SELECT TimeIn FROM tblVisitLog WHERE Encounter_code = @Enc AND CaseNumber = @CaseNum AND Discipline = 'PT' AND VisitType <> 'M')

SELECT  COUNT(Encounter_code)
FROM tblVisitLog 
WHERE CaseNumber = @CaseNum AND TimeIN BETWEEN @START_Date AND @Enc_Date AND Discipline = 'PT'AND VisitType <> 'M' AND  Location = @Location

 

This works great in SQL Server, but this is throwing the following error when used as the Report Source: for this sub-report.

Invalid value of report parameter 'Location'.

I've ran this report specifying the values (shown here) in my SQL and using the Parameter.Location.Value on the Configuring data source parameters page. I've left them blank and specified the values on the Configure Design Time Parameters, in other words I've tried many many things.

I need help with this. Thank you,

Jack

 

 

Dimitar
Telerik team
 answered on 11 Nov 2024
1 answer
289 views
How to display they data in subreport how to use it explain using any example and demos reporting design and to use parameter
Dess | Tech Support Engineer, Principal
Telerik team
 updated answer on 08 Nov 2024
1 answer
46 views

Hello Colleagues,

We run into the unpredictable to us behaviour during rendering report into the Excel format (the PDF looks like fine).

The vertical page breaks is appeared and splits the page content but all properties related to the layout and element dimensions were configered properly for our opinion.

Shortly,

1)page setting is set up as: A4 (210 x 297 mm), Portrait, Margings Left/Right = 2 / 1 cm,  width of detailSection 18cm

2)The content: one table with total widht 18 cm

Result of rendering to the Excel: 2 pages  with vertical splits the table.

Table width = detailSection width (180mm). detailSection width(180) + Left/Right margins(20/10) = A4 width (210) = 210 mm

The mail question here is Why?

During some experiments we found that the result of page rendering into the Excel doesn't have any vertical breaks if content in the sectionDetails is not closer to the right edge of report layout then 13mm.

 

Could you help with understanding the rendering mechanism to the Excel format?

How properly placing the report elemets on the layout to avoiding vertical page breaking the Excel result?

Screenshots was attached. The archive (rar or zip) of template and excel results I couldn't attached 

 

Thank in advance

 

Best,

Alex

Dimitar
Telerik team
 answered on 08 Nov 2024
2 answers
179 views

Hi, in Telerik Report Designer, I want a text box on my report to display the word chicken, but only if the value of another item, fields.name, begins with the letters apple so there would need to be a wildcard after the e in apple. If fields.name is anything else then I don't want the word chicken to show up on the report.

I'm new to the product and used to "Print When" logic.

Thanks

 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Nov 2024
1 answer
61 views
Hey Everyone, 
I am very new to telerik and have no .Net Knowlege at all . 
In my standalone App

I had these KPI that I aggregated LIKE EBTIDA AND COGS that I am getting my Grouping my quarters at row level and at column level by my Subsection columns.

Now, 
I just simply want to reference this Total aggregated value from my table to directly in my Linear Gauge 
please guide in detail 
 








Dimitar
Telerik team
 answered on 04 Nov 2024
2 answers
204 views

Hi everyone,

I'm working with Telerik Report Designer, and I have a table inside a panel. The panel represents the entire page that gets printed. The table is bound to a JSON data source.

In my JSON data, I have several objects, and some of them have a value of 0.0 If two specific objects have a value of 0.0 I want to hide the panel (and therefore the entire page) to avoid printing out a table with no meaningful values.

The data source is linked to the table, not to the panel, so I am not sure how to make this condition work. I need to hide the panel based on the values within the data.

Does anyone have any idea how I can set up conditional formatting or report parameters to achieve this?

Thanks in advance!


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Oct 2024
1 answer
50 views

We are trying to create a user interface with UI for Blazor that allows users to view and choose parameter values for their reports without having to go into the report viewer. However, the complexity of some of the expressions used for things like display value, available value filtering, and default values pose a challenge to evaluating those parameters ourselves. Is there a way to programmatically evaluate those parameters for the above using the telerik reporting library so that we can display them in our UI?

 

We are using the Telerik.Reporting.Report object to get the parameter data, and have also tried instantiating a InstanceReportSource for the object as well but both have only given the expression for display value/available values/default values rather than the evaluated values.

Todor
Telerik team
 answered on 29 Oct 2024
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?