Customize API save report

Posted by: ducn on 26 January 2021, 1:43 am EST

    • Post Options:
    • Link

    Posted 26 January 2021, 1:43 am EST

    Hi Team,

    I see that when click save in report designer and it calls to api :

    http://localhost:58721/api/reports/content?name=Untitleds.rdlx

    Can I customize it ?

    Thanks

    Duc Nguyen

  • Posted 26 January 2021, 2:31 pm EST

    Hello,

    Could you please share the Use case and requirement to customize the service?

    Thanks,

    Mohit

  • Posted 27 January 2021, 7:04 pm EST

    At the report designer : I don’t want to return :

    • Dataset Query Command
    • Datasrouce connection string .

      Just provider :
    • DatasourceID → it will mapping with my backend
    • DatasetID —> It will mapping with my backend

    At the Report Viewer : Can I modify at the runtime for mapping DatasourceID, DatasetID

    Thanks

    Duc Nguyen

  • Posted 1 February 2021, 2:24 am EST

    Hello,

    You can add the dataset in the WebDesigner by adding the Dataset file “WebDesigner_MVC\datasets” folder. You can refer the attachment for the sample JSON file. Also, you can show the custom dataset names via public object GetDataSetsList() and create(or load pre-created) datasets in public object GetDataSet(string id). Please refer to the attached sample Json.

    After that, you can use the SetLocateDataSource method of reporting service to the return the datatable at runtime.

    settings.SetLocateDataSource(args =>
    {
    return new DataTable();
    
    });
    

    Thanks,

    Mohit

    Categories (1).zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels