send additional data to designer with StiMvcMobileDesigner

Stimulsoft Reports.WEB discussion
Post Reply
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

send additional data to designer with StiMvcMobileDesigner

Post by Abbas »

Hi
I have created a MVC project with stimulsoft that has used MvcMobileDesigner. When I want call designer method(ActionGetReportTemplate ) associate two additional data my action don't fill with correct data. my code is:

Code: Select all

@Html.Stimulsoft().StiMvcMobileDesigner("StiMVCMobile1", new StiMvcMobileDesignerOptions()
    {
        Theme = StiTheme.Office2013LightGrayPurple,
        ActionGetReportTemplate = "GetReportTemplate",
        ActionGetReportSnapshot = "GetReportSnapshot",
        ActionSaveReportTemplate = "SaveReportTemplate",
        ActionDesignerEvent = "DesignerEvent",
        Width = Unit.Percentage(100),
        Height = Unit.Pixel(600),
        ShowSaveDialog = true,
        ShowFileMenuExit = false,
        ShowFileMenuNew = false,
        Localization = localize,
       
        
    })
and Action method is :

Code: Select all

public ActionResult GetReportTemplate(string id,string objString)
        {
           //id or objString parameter is null
            return StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, sreport);
            
        }
 public ActionResult CreatePrintable(string id,string objString)
        {
           return View();
        }
First I call "CreatePrintable" action with two param and param fill correctly, then "GetReportTamplate" action call automatically but "id" or "objString" param is null .

appreciate you Abbas Mirzaei
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: send additional data to designer with StiMvcMobileDesign

Post by Alex K. »

Hello,

Please send us a sample project which reproduce the issue for analysis.

Thank you.
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

Re: send additional data to designer with StiMvcMobileDesign

Post by Abbas »

Hi Aleksey
Thank you for your attention,
I have Question:
How Can I pass Paremeters To these Method: "GetReportSnapshot()" or "GetReportTemplate()" When I use "StiMvcMoblieViewer" or "StiMvcMobileDesigner" Because When I Use StiMvcViewer for example I can Pass Parameters to "GetReportSnapshot" Method....???
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

Re: send additional data to designer with StiMvcMobileDesign

Post by Abbas »

My problem Solved....
I use Session.....

thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: send additional data to designer with StiMvcMobileDesign

Post by HighAley »

Hello.

Great.
Let us know if you need additional help.

Thank you.
Post Reply