Amazon References

Monday, December 12, 2016

Convert incoming XML to Excel Sheet


Currently most of our clients got here with a requirement to create an excel file as an output of an xml. state of affairs was Proxy-SAP PI 7.31 (Java Stack)-Third celebration – output as Excel Sheet. First PoC of this requirement was to create a goal file by simply giving output.xls and see what fields populated. As anticipated output get populated as xml.
To populate goal file as Excel file we need to do transformation somewhere between the XML got and target file generation. we have 2 options –



  • Transformation at the time of Mapping
  • Write Adapter Module in Java

  • on the time of mapping we are able to achieve excel output via XSLT mapping. For this answer we deserve to convert incoming XML file to MS Excel XML structure.
    For the conversion of XML to MS Excel XML format we need to use under code in xslt.
    <?mso-application progid="Excel.Sheet"?><xsl:stylesheet version="1.0"xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:xsl="http://www.w3.org/1999/XSL/radically change" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:workplace" xmlns:x="urn:schemas-microsoft-com:workplace:excel" xmlns:ss="urn:schemas-microsoft-com:workplace:spreadsheet">
    explanation of this scenario can be found below.
    Convert incoming XML to Excel or Excel XML – part 1 – XSLT means
    second option is to write down an adapter module to transform incoming XML to CSV and then to Excel Sheet.
    Pre-Requisite and Assumptions of the building:



  • 1. Apache POI open average for excel Conversion
  • 2. SAP PI specific development libraries

  •   com.sap.aii.af.cpa.svc.api.jar
      com.sap.aii.af.lib.mod.jar
      com.sap.aii.af.ms.ifc_api.jar
      com.sap.aii.af.svc_api.jar
    complete clarification of this state of affairs can be discovered below.
    LEARN MORE



    Links and related books

    Excel 2007 VBA Macro Programming

    Microsoft Excel VBA Programming for the Absolute Beginner

    Learn Advance Statistics Training in Excel

    Friday, December 9, 2016

    Primary Excel Parser


    A simple excel parser that parses every row to an associative array.
    When to use this?



  • Your excel file has the header on the first row, and records on the leisure rows.
  • You want to map the header titles to database keys.
  • You wish to map the information values to database enums.
  • example
    You need to parse an excel file with this format.
    identify Age Gender mobilephone 1 cell 2 invoice 18 Male 222-222-2222 777-777-7777 Peter 25 Male 222-333-4444 555-666-7777 Monica 31 female 666-666-6666 555-555-5555
    and you wish to map the header titles to database desk fields, and map genders to 'm' or 'f'.
    $parser = new Jhesyong\Excel\Parser; // Map 'identify' to 'name', 'Age' to 'age', and 'Gender' to 'gender'. $parser->addHeader('identify', 'name'); $parser->addHeader('Age', 'age'); // Map the values: 'm' is for 'Male', and 'f' is for 'female' $parser->addHeader('Gender', 'gender')->withOptions(['m' => 'Male', 'f' => 'Female']); // you can use a daily expression and move a callback to map numerous header titles. // in this case, 'cell 1' may be mapped to 'phone_1' $parser->addHeader('/^cell \d+$/', characteristic($title) return str_replace(' ', '_', strtolower($title)); ); // Load the file and start to parse. flow a callback feature // and it will be called for each row. $parser->loadFile('filename.xlsx')->parse(characteristic($information) // information could be an associative array. var_dump($statistics); ); FAQ I actually have distinctive titles of the equal textual content, but I are looking to map them to distinct database table fields.
    you can add headers with the same title however distinctive box names within the desired order.
    // the first 'phone' should be mapped to 'phone_1', // and the 2d 'cell' can be mapped to 'phone_2' $parser->addHeader('phone', 'phone_1'); $parser->addHeader('phone', 'phone_2'); I just want to use the title as the container name
    that you would be able to omit the 2nd argument.
    // 'cellphone' can be mapped to 'mobile' $parser->addHeader('phone'); I need to pre-define the header mapping and the alternate options.
    that you would be able to prolong the Parser and write your rules in the constructor.


    Links and related books

    Thursday, December 8, 2016

    Excel to Html

    Description

    Finally a good program that will help you to import data in the web. Stop to write the data in the tables html, you just have to change the data inside the file Excel and this application read your excel and create the table html responsive with sorting..

    Table Responsive


    \\

    Contact Form


    \\

    Google Maps


    \\

    Features

    • 100% Responsive
    • Table Sorting
    • Pagination Table
    • Search for column
    • Ajax Contact Form
    • Single Table with 2 design
    • Multi Table
    • Google Maps
    • Browser Compatibility
    • Google fonts included

    Monday, December 5, 2016

    Generating Personalized Letters Using CSV Data From Google Spreadsheets

    Google Spreadsheets are great for collaborative number crunching. Much like Microsoft Excel, Google Spreadsheets allow you to produce financial models, analyze numerical data, keep track of accounts, etc. But what if you want to produce and deliver documents of a different nature, like letters to various recipients, based on the data contained in a Google Spreadsheet? Instead of going through each row of the spreadsheet one at a time and plugging data into a document template manually, you can use WebMerge to pull data from the spreadsheet and automatically fill in a template document, perhaps, to be delivered in PDF form to certain recipients!

    "How can I do this?" you might ask. Don't worry! We’ll walk through the process in the tutorial below.

    First, we’ll need to have a document ready for merging on WebMerge. In this example, let’s say we want to send students a report card based on data we have in a Google Spreadsheet. In the spreadsheet we have the students’ names, their email addresses, and their GPAs.

    We first go to WebMerge and upload or create a new document in the Document Builder. The document we are about to upload or create is the document that will be automatically populated with the data from our Google Spreadsheet. Our merge document might look something like the following. The following is an example of a cover letter with merge-fields for the students’ names and the students’ GPAs. The merge fields will get populated with the data in our spreadsheet.

    Image of Document Builder for Report Card Cover Letter

    After we have our document template on WebMerge, we want to: make sure our configuration settings are how we want them, test our document, and set up delivery.  Notice that in the delivery setup, we specify an <<other>> merge field. We didn’t create a merge field for the students’ email addresses, but we want to use the email address column in our spreadsheet to specify our email recipients.

    Specify the Merge Field for Emailing

    The above shows that we want to send the document to recipients according to a merge field that wasn’t in our document and has as yet to be specified. We want to send emails to the addresses in the email address column of our spreadsheet, so we specify that we want to create a new merge field called Email_Address and use it as a placeholder for the email addresses in our spreadsheet. In the next step we will match this placeholder as well as the placeholders in our document with the data we get from a CSV version of our spreadsheet.

    Now that we have made our document template and have saved our delivery method, we need to pull the information from our Google Spreadsheet. The easiest way to do this is to simply download the spreadsheet as a CSV file.

    Image of Google Spreadsheets Download as CSV

    Once we have downloaded our data as a CSV file, we can upload that to WebMerge.

    Image of WebMerge Upload Data as CSV

    Upload the data, then in our final two steps we map the merge fields to the columns of our spreadsheet and send our newly created documents off to our recipients.

    Image of WebMerge Map CSV Data to Document Merge Fields

    Click Merge the Data!

    Image of WebMerge Merge the Data Button

    Congrats! You just merged your Google Spreadsheet data with a document template and sent it to all the relevant recipients.

    Image of End Result of WebMerge and Google Spreadsheets Combination

    Want to do more with WebMerge? Check out all the ways you can streamline your documentation process today!

    Suggested Posts: 

    Take Your Mail Merge Online

    New: Merge Excel Spreadsheets on the Fly

    10 signals Your advertising team Have Outgrown Excel Planning



    Friday, December 2, 2016

    Take Your Mail Merge Online

    Mail Merge in MS Word has long been one of the most popular and widely used features of the office tool, but how often do you send letters anymore?  Today, it’s much more common to generate Word or PDF documents using Mail Merge and send them via email.  What if you needed to do more?  For example, what if you wanted to send those documents out for e-signature?  Or save them in the cloud?
     
    WebMerge has got you covered!  In addition to using MS Word document as templates, you can upload a fillable PDF or even build your own document using our online editor.  From that point you can setup your delivery method, which could be via email, an e-signature platform, the cloud, or to another 3rd party via a webhook.
     
    Once you have the document and delivery options setup, the last piece of the puzzle is uploading the mail merge information.  You can do this using a CSV file (which stands for comma separated values) that you can save directly from Excel.  After you upload the information, we’ll merge your documents and send them out!
     
    Imagine you were at a tradeshow and you collected information from 100 potential customers. You collected their name, email address, and which products they were interested in purchasing.  You saved all of this information in a spreadsheet.  Now that the trade show has ended, you’d like to follow up with each of these prospects and send them a proposal that includes information about each of the products they were interested in as well as the pricing.  All you need to do is create a new WebMerge document for the proposal that includes the prospect’s information and uses Conditional Sections to include the products they were interested in.
     
    Once you build the document, simply upload your spreadsheet and we’ll send your customized proposal to each of the prospects.  You could do all of this in as little as 30 minutes.  Think of how long it would take you to manually create all of these proposals!  If you need to mail the proposals, check out our integration with Lob
     
    Can you think of any other areas of your business that you could automate by using an online mail merge?


    Thursday, December 1, 2016

    New: Merge Excel Spreadsheets on the Fly

    Do you spend countless hours day after day, month after month, putting together the same spreadsheets for reporting, projections, proposals, and more - with only a little bit of the information changing?  We can help!  We’re excited to announce that we have just launched support for Microsoft Excel spreadsheets!  You can easily generate spreadsheets that use calculations, charts, and pictures.  You can even export them to a PDF.

    Below we’re going to show you how to setup a quick spreadsheet that is a proposal for customer acquisition that would be sent to a prospective client.  To start, we’re going to put in a little information about the customer, then we will enter some basic calculation parameters (current customers, growth rate, etc) and then our spreadsheet will calculate growth over the next year and even provide us with a nice chart at the bottom.


    Once we’ve got our spreadsheet all setup, we going to do a quick test and make sure everything is working correctly.  We’ll just enter some basic information that is easy to double check the calculations.


    As you can see, we’ve exported the spreadsheet to a PDF so that it is clean and professional looking when we send it off to our prospective client.  As you can see, the values in our calculations automatically calculated and the graph was updated accordingly.

    Doesn’t get much easier than that, does it?  We’re looking forward to seeing how you can use WebMerge to automate your excel spreadsheets.  What are a few ways that you can take advantage of this new feature?