![]() "&associatedentitytypecode=" + entityTypeCode + "&TemplateId=" + wordTemplateId + "&TemplateType=" + templateType Var request = "exportType=MergeWordTemplate&selectedRecords=" + encodeURIComponent(JSON.stringify(id)) + Var path = globalContext.getClientUrl() + "/_grid/print/print_data.aspx" Var Query= Query = "?$select=documenttemplateid&$filter=name eq 'WORD TEMPLATE NAME'" //replace it accordingly Var filename= "Demo.docx"//replace file name here You can refer our earlier post for creating flyout button and passing parameters.įunction DownloadWT(formContext, entityTypeCode) While working code, I found similar code here which helped me for downloading file but the file was corrupted after download so I am sharing code which worked for me. We create a flyout button similar to existing word template flyout and hide out of the box flyout button. ![]() I am going to share sample code which can be used to download word document based on the template name. We got one requirement where we wanted to download Word Document based on the word template after validating some conditions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |