Asp Core Custom dialog on save

Stimulsoft Reports.WEB discussion
Post Reply
javad1360
Posts: 1
Joined: Sat Nov 23, 2019 7:18 am

Asp Core Custom dialog on save

Post by javad1360 »

Hi. I like to customize the Save dialog and add some extra inputs. I set the view :

Code: Select all

@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions()
{
    Actions =
        {
        GetReport = "GetReport",
        DesignerEvent = "DesignerEvent",
        SaveReport = "SaveReportTemplate"
        },
    Behavior =
    {
        ShowSaveDialog = false,
    }
}
and in my controller return a view :

Code: Select all

    public IActionResult SaveReportTemplate()
        {
            return View("SaveDialog");
        }
    public IActionResult SaveReportFromDialog(string name)
        {
            var report = StiNetCoreDesigner.GetReportObject(this);
            return Ok();
        }
and in SaveDialog.chtml create my @Html.Beginform() :

Code: Select all

@{
    @Html.BeginForm("DashboardDesigner", "SaveReportFromDialog", FormMethod.Post){
        <input name="test" />
        <button>Ok</button>
    };
}

with all I like to see before saving. and redirects ...
but the problem is designer shows an error even request returns view.
Untitled.png
Untitled.png (82.06 KiB) Viewed 410 times
What is the best solution for customizing dialogs?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Asp Core Custom dialog on save

Post by Lech Kulikowski »

Hello,

Please send us your request with detailed description on support@stimulsoft.com.

Thank you.
Post Reply