Posts

Create a sample ASP core application with vue.js in visual studio

By default visual studio 2017 does not have a Vue template to create a project, But this is not a big deal we can add the template and create the project from command line interface by following the below steps. Create a folder/directory, where you want to create your project. Open command line interface and navigate to the newly create folder. Install template. dotnet new --install Microsoft.AspNetCore.SpaTemplates::* Create a project from template. dotnet  new  vue (For typescript) dotnet  new  vuejs(For javascript) Install the dependencies. npm install Open the folder and double click the .csproj file in visual studio. Press F5 to run the project.

How to generate PDF file for transaction record against its specific form template in SuiteScript 2.0

Image
In this post, I will share how to generate a PDF document for a transaction record in a suitelet using suitescript 2.0. Definitely to understand this post, you must have some understanding of SuiteScript 2.0 and Suitelets. To make it simple I am using hard coded values for transaction id and transaction form template id. var tranId = 7626; var customTranTemplateId = 126; To get the transaction's form template id, you will need to navigate to the main menu than Customization → Forms → Transaction Forms and copy the internal id of template (in my case it is sales order's customize form id). Create a TemplateRenderer object. var renderer = render.create(); Now, the important step is to load the transaction record and merge it with template content. var transactionFile = render.transaction({                     entityId:  tranId ,                     printMode: render...