Sending additional parameters from web designer

6 posts, 0 answers
  1. Mirzodaler
    Mirzodaler avatar
    21 posts
    Member since:
    Jun 2014

    Posted 17 Jun 2020 Link to this post

    Hi all,

    I have a following default code in a html file for a web designer.

    $(document).ready(function () {
                $("#webReportDesigner").telerik_WebReportDesigner({
                    persistSession: false,
                    toolboxArea: {
                        layout: "list"
                    },
                    serviceUrl: "some url",
                    report: "some_report_name",
                }).data("telerik_WebDesigner");
            });

    I have also a custom report storage implemented from IDefinitionStorage, where I have a GetDefinition("some_report_name") method implemented in a custom way. In order to do that, I need to send additional parameters from a web designer (html code provided previously) but don't know how to do that. 

    For example, I need to open SalesInvoice.trdx file and I do a following: report: "SalesInvoice.trdx". If i need to send additional parameter, let's say some kind of token, there is no good place to send it. As a work around, i am doing report: "SalesInvoice.trdx&token=123". The problem with this, it is appearing in a title of a web designer and I don't want that. In an attachments, there is a screenshot where it looks good with a simple name and the one which has a token in it.

    So, the question is, can I send other parameters as well from a client side of web designer to the server like parameters or so?

    In a HTML5 ReportViewer we can send report file name and parameters as a reportSource like this:

                        serviceUrl: serviceUrl,
                        reportSource: {
                            report: reportUrl,
                            parameters: reportParams,

    Can we do the same? Or how can I do that?

     

    Thanks, 

  2. Katia
    Admin
    Katia avatar
    760 posts

    Posted 22 Jun 2020 Link to this post

    Hi Mirzodaler,

    Currently, Web Report Designer does not expose any options for passing the parameter to the custom report storage. Could you let us know how exactly the parameter is used in your scenario? Does the parameter differ for each report or it is the same? This information will help us think about possible options and workarounds.

     

    Regards,
    Katia
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Mirzodaler
    Mirzodaler avatar
    21 posts
    Member since:
    Jun 2014

    Posted 22 Jun 2020 in reply to Katia Link to this post

    Hi Katia,

    As my previous post states, I don't have exact report name. I am sending bunch of guids as a string and my custom report storage determine which report to get, it can be from a memory or database. I need to show a user friendly Title of the report in a web designer. If you see attached images in a previous post (title-with-token.png), you can see that it is not helpful title for a user.

    Si if there will be a "report Title" property separated from reportUrl it can be helpful. Or report url with an array of parameters will be more elegenat.   

    Thanks,

  4. Katia
    Admin
    Katia avatar
    760 posts

    Posted 25 Jun 2020 Link to this post

    Hi Mirzodaler,

    So if I understood correctly the title of the report does not depend on the logic that retrieves the report in custom report storage? Do you know the title in advance?

     

    Regards,
    Katia
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  5. Mirzodaler
    Mirzodaler avatar
    21 posts
    Member since:
    Jun 2014

    Posted 25 Jun 2020 in reply to Katia Link to this post

    Hi Katia,

    Yes, the Title of the report is available in advance, only additional parameters needs to be sent without mixing it with title.

     

    Thanks,

  6. Katia
    Admin
    Katia avatar
    760 posts

    Posted 30 Jun 2020 Link to this post

    Hello Mirzodaler,

    Thank you for the additional clarifications. I logged your request into our Feedback portal - Provide a way to send additional parameters from web designer. This is the official process for processing new requests that allows us to measure the demand for features and plan them accordingly.

     

    Regards,
    Katia
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top