Telerik Forums
Reporting Forum
0 answers
139 views

Hi All,

I want to pass few additional parameters from the report designer to the report service each and every request.

Following is my current code.

<script type="text/javascript">
        $(document).ready(function () {

            // For a complete overview over all the options used to initialize Web Report Designer, check:
            // https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/web-report-designer-initialization
        $("#webReportDesigner").telerik_WebReportDesigner({
                toolboxArea: {
                    layout: "list" //Change to "grid" to display the contents of the Components area in a flow grid layout.
            },

            blpermision: {
                isJson: 'Nom'
            },

                serviceUrl: "@(basePath)reportdesigner/",
                report: "",
                skipOnboarding: true,

                // Example of passing parameters to the embedded Report Viewer used when previewing documents.
                // The example below demonstrates the currently available options.
                // reportViewerOptions: {
                //    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                //    scale: 1.0,
                //    templateUrl: "https://bluelotus360.co/ReportsAPI/api/reportdesginer/resources/templates/telerikReportViewerTemplate.html/",
                //    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                //    pageMode: telerikReportViewer.PageModes.CONTINUOUS_SCROLL
                //    // Further explanation about how these options effect the Report Viewer can be found at:
                //    // https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization
                // }
        }).data("telerik_WebDesigner");
        
        });
</script>

Is there a way to tap each and every request to designer services .

 

Additionally i cannot over ride certain actions in report designer services. cannot override  SaveResource endpoint. any idea ?

 


  [Route("api/reportdesigner")]
  public class ReportDesignerController : ReportDesignerControllerBase
  {
      public ReportDesignerController(IReportDesignerServiceConfiguration reportDesignerServiceConfiguration, IReportServiceConfiguration reportServiceConfiguration)
          : base(reportDesignerServiceConfiguration, reportServiceConfiguration)
      {
          var m = reportDesignerServiceConfiguration;
       //  m.DefinitionStorage = new FileDefinitionStorage("~/CSR/");


      }


      public override IActionResult CreateDocument(string clientID, string instanceID, [FromBody] CreateDocumentArgs args)
      {
          return base.CreateDocument(clientID, instanceID, args);
      }

      [HttpPost("definitionresources/save")]
  
      public override Task<IActionResult> SaveResource([FromQuery] SaveResourceModel model)
      {
          return base.SaveResource(model);
      }


  }

BL360
Top achievements
Rank 1
 asked on 07 Dec 2023
1 answer
135 views
Is there any possibility to add a custom Angular component as a parameters editor?

Dimitar
Telerik team
 answered on 06 Dec 2023
2 answers
589 views

Hi,

I was trying to integrate a report in my MVC application.

In the console I m getting an error

"GET
http://localhost:55497/api/reports/resources/js/telerikReportViewer
[HTTP/1.1 404 Not Found 4ms]"

 

How can i fix this issue.

index.cshtml

-------------------------

 

@using Telerik.Reporting
@using Telerik.ReportViewer.Mvc
@{
    ViewBag.Title = "Home Page";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://kendo.cdn.telerik.com/2020.1.114/styles/kendo.common.min.css" rel="stylesheet" />
<link href="https://kendo.cdn.telerik.com/2020.1.114/styles/kendo.blueopal.min.css" rel="stylesheet" />

@section styles
{
    <style>
        body {
            margin: 5px;
            font-family: Verdana, Arial, sans-serif;
        }

        #reportViewer1 {
            position: absolute;
            left: 5px;
            right: 5px;
            top: 40px;
            bottom: 5px;
            overflow: hidden;
            clear: both;
        }
    </style>
}



<div>
    @(Html.TelerikReporting().ReportViewer()
                    .Id("reportViewer1")
                    .ServiceUrl(Url.Content("~/api/reports/"))
                    .ReportSource("Report1.trdp")
                    .ViewMode(ViewMode.Interactive)
                    .ScaleMode(ScaleMode.Specific)
                    .Scale(1.0)
                    .PersistSession(false)
                    .PrintMode(PrintMode.AutoSelect)
                    .EnableAccessibility(false)
                    .SearchMetadataOnDemand(false)
                    .Deferred()
)
</div>
@section scripts
{
    <script src="@Url.Content("~/api/reports/resources/js/telerikReportViewer")"></script>
    @(Html.TelerikReporting().DeferredScripts())
}

 

I was referring to the code  from here

 



Ihits
Top achievements
Rank 1
Iron
 answered on 06 Dec 2023
0 answers
118 views

Good Afternoon Telerik,

I am trying to narrow my report results on a DateTime value for an entire month of results. due to it being a schedule some of the times will go into the next day (in example: 11:00 PM 11/02 Thursday to 7:00 AM 11/03 Friday) However, when I run the report. It is only showing times for 7:00 AM to 11:00 PM that night. it reversed the entry instead of it going from 11:00 PM first day to 7:00 AM next day. Is there anyway for me to fix this?

Austin
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 05 Dec 2023
1 answer
198 views

Good Morning Telerik Forums,

I have a field called "Report Ran" followed by another table with a field of [= Now()] They display correctly. However, they are two separate fields.

 

If I add them together into one field (example) Report Ran: [=NOW()] it displays exactly like that. Never executing the data display.

 

How can I get it so that I can use a one field with text and a data all within one? so that it can display as Report Ran: 12/03/2023

 

Thank you!

 

 

__________________________

EDIT: I solved this after posting. See solve below.

 

I solved my own question.. I just started playing with close brackets.

 

Use braces { } to encapsulate. In example: Report Ran: {=NOW()} and it will display correctly as Report Ran: 12/03/2023

 

Thank you!

Austin
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 05 Dec 2023
1 answer
451 views

Hello,

I am trying to install Telerik.Reporting.Services.AspNetCore.Trail in .net 6 application.

Below are the following things that i have done,

  1. Go to Tools > NuGet Package Manager > Package Manager Settings, select Package Manager Sources, and then click the + button.

  2. Enter a Name for the Telerik NuGet feed, for example, telerik.com.

  3. In the Source field, enter https://nuget.telerik.com/v3/index.json and click OK.

 Added the Telerik NuGet feed as a Package source.

 Entered Telerik credentials in the Windows Authentication dialog.

Still i am unable to view Telerik.Reporting.Services.AspNetCore.Trail in package manager.

 

Todor
Telerik team
 answered on 05 Dec 2023
1 answer
105 views
Hi Support,

I am creating a Telerik report and in this report, I am using a few sub reports for some parts of this report. In one portion of the reports I need to display multiple items (detail with description) and it should be rendered in two columns. To render the content into 2 columns I used the Column Count property and with this, it works fine if I am running the subreport independently. But if I am using this subreport in the main report then this ColumnCount feature is not working so please let me know how I can render a subreport content into 2 columns.  
Please see the screenshot.  
Sample image is the one we are trying to achieve in output . 
Report design is the one we have designed for our work. When we run it independently it works but when we add it as a sub report to a main report it fails. 
Sample Sub report - the one working when we try it independently. 
Dimitar
Telerik team
 answered on 05 Dec 2023
1 answer
217 views

I want to choose which tool in the toolbar should display certain tools. How can I set this up? I'm using backend ASP.NET Core MVC and frontend Angular.

0 answers
120 views

Hello,

i'm using Telerik Reporting 2020, when add TOC section in report show error: Object reference not set to an instance of an object

Fadi
Top achievements
Rank 1
 asked on 03 Dec 2023
1 answer
147 views

So, what we need to know is if we can add our new Telerik  service into a solution that 4 developers access, but we only allow the reporting dev to work on the reports and not have to pay for 4 licenses. Or does it need to be a stand alone project?

Essentially, would the Telerik reports still work if it's in a Project that is also accessed by multiple developers?

Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?