SharePoint Pals
 | Sign In
Currency Convertor Napa App for SharePoint 2013 Office 365
by Anne Jes Medon 21 Dec 2012
SharePoint Developer, SharePoint Frontier
Today  :   7     Total  :    10773

This post help you to how to convert the existing available services to Office 365 Napa App. In this post I am using geoplugin currency convertor in a Napa App to covert currency from one format to another.

Follow the below steps to create a Currency Convertor App

Step: 1

Create a new site in Office 365. If you don’t have an account , register for a new account here . Then click the Napa tile to add the Napa app from the page created. Then create a new app using the wizard.

Step: 2

Add New Project in Napa by using the Build app tile


Step: 3

Select App for SharePoint and give Project name as Currency. As of now we can build following apps in SharePoint

1. App for SharePoint

2. Task pane app for Office,

3. Content app for Excel,

4. Mail app for Office


Step: 4

Finally it will take you  to the coding part of the Napa online. In the left top corner there are four properties

1. Content menu which holds the CSS part of the Napa Office365

2. Images menu we can store the image for the project

3. Pages, the important part of Napa to write code in ClientWebPart and Default pages

4. Scripts, all those parameters where passed and executed through here

Step: 5

Normally we can use the default page to code, but in this example ClientWebPart is used for coding.

In ClientWebPart page add script of the web service provider geoplugin

<scriptsrc="" type="text/javascript"></script>

Then inside the <asp:Content>tag add the following code

<input type='text' id='gp_amount' size='4' />

<select id="gp_from"></select> to <select id="gp_to"></select>

<p><input type='button' onClick='gp_convertIt()' value = 'Convert It' /></p>

<div id="gp_converted"></div>


Step: 6

Add call.js as a new item in script menu to call the web services or use the below CDN of geoplugin

<script type="text/javascript" src=""></script>

google.load("jquery", "1.2.6");function gp_currencySymbols() { $.getJSON("", function(data){ var currencyCode = geoplugin_currencyCode(); var fromCurr = ''; var toCurr = ''; $.each(data, function(i,item){ if ( currencyCode == i ) { fromCurr = fromCurr + ""; } else { fromCurr = fromCurr + ""; } }); $.each(data, function(i,item){ if ( currencyCode == 'USD' && i == 'EUR' ) { toCurr = toCurr + ""; } else { toCurr = toCurr + ""; //{condition)? iftrue : iffalse } }); $(fromCurr).appendTo("#gp_from"); $(toCurr).appendTo("#gp_to"); }); }; function gp_convertIt() { if (!document.getElementById('gp_amount').value){ return false; } else { var gp_from = document.getElementById('gp_from').value; var gp_to = document.getElementById('gp_to').value; var gp_amount = document.getElementById('gp_amount').value; $.getJSON( "", { from:gp_from, to:gp_to, amount:gp_amount }, function(output){ $("#gp_converted").html("

"+output.from.symbol+output.from.amount+" = ""
Get your own convertor

"); }); } }

The Scripts and JSON make a request to the webservices and render the value

Step: 7


    • Then click the properties window and set the following values
    • In General tab- click the Start page and select ClientWebPart , moreover can give the default page also when we coded in Default.aspx
    • Set the Width and height in ClientWeb Part tab
    • In Remote End points tab give the web service providers domain name  (In this case ,
    • Close the window it automatically save the values and Run

Step: 8

Finally we got the value of the Indian Currency against US Dollar


Step: 9

Then go to the team site and click the content-Add Page

Then click the web part and save the page

blog comments powered by Disqus

SharePoint Pals

SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile


Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community

SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to in a word document.

Related Resources

Recent Tweets

Twitter October 21, 21:34
How to Add a JS Link Reference to the Display Form or Any other ASPX Programmatically using CSOM PNP in SharePoint -

Twitter October 20, 13:01
How to Add a JS Link Reference to the NewForm and EditForm Programmatically using CSOM PNP in SharePoint Office 365-

Twitter October 12, 12:15
How to Deploy Provider Hosted Apps (Add-Ins) by App Stapling in SharePoint Office 365 -

Twitter October 11, 13:39
How to Deploy Provider HostedApp programmatically using CSOM in SharePoint Office 365 Activating Developer Feature -

Twitter October 10, 09:26
How to Use Angular HTTP Services in SharePoint List -

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation