Page 1 of 1

Asp Core Custom dialog on save

Posted: Mon Dec 12, 2022 7:03 am
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 635 times
What is the best solution for customizing dialogs?

Re: Asp Core Custom dialog on save

Posted: Mon Dec 12, 2022 8:19 am
by Lech Kulikowski
Hello,

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

Thank you.