Showing posts with label APP. Show all posts
Showing posts with label APP. Show all posts

Monday, 16 June 2014

My first SharePoint Online App

Before i start developing app, i want to explain about app Hosting methods which SharePoint online support.
1.SharePoint-hostedapp
2.Provider-hosted
3.Autohosted
Right now i am going to select, SharePoint hosted app.
What is SharePoint hosted app:
Your app will be deployed to sharepoint site it will be isolayted site in side your site collection.
All app componenets will available in App Web (Where app has deployed)
In yor site collection you can add App.It is called Host Web.
Steps:
I am going to create a custom list in my app.
Steps:
I am going to use VS 2012 with all SharePoint extentions.
Open VS 2012 run as administrator
File-->New-->Project
Templates-->Visual C#-->Office/SharePoint-->Apps
Select App for SharePoint 2013
I names it as: MyFirstSPOApp
You will get one prompt
What SharePoint site do you want to use for debugging your app?
For this i have used SPO development site.
How do you want to host your app for SharePoint?
Select: SharePoint-hosted
Finish
Right click on your project
Click Add-->New Item
Select List
Enter Some name:MySPOList
Add
In the prompt..leave as it is..
Finish
You will landup MySPOList screen..where you can enter List COlumns..
You will see...Type a new or existing column name
Type new column name: Ex: EmpName
You can select Type:
Required or not?
Click on Views Tab
You can add new Views and select columns for that view
Click on AppManifest.xml
You will Permissions Tab
Under Scope Select :Site Collection
Under Permission: Select FullControl.
Save
Deploy the app
After i deploying the app, i got my sharepoint page.
Do you trust MyFirstSPOApp?
Click on Trust It.
It has redirected to another page, where i am not able to see my list.
Just i am able to see my Name.
Where is my list?
Try like this...you will see List
https://microsoft-3e71282b7095b4.sharepoint.com/teams/MySPODevSite/MyFirstSPOApp/Lists/MySPOList

Like this you can add new items Site Columns, Workflows and New pages.

Friday, 14 March 2014

SharePoint App Model

SharePoint App Model
SharePoint is supporting 3 type of App Development..
1.SharePoint-hosted apps
2.Provider-hosted apps
3. Autohosted apps
1.SharePoint-hosted apps
Provisions an isolated sub web on a parent web. The app webs site gets it’s own unique sub-domain (browser cross domain policy). This is important to separate one app from each other app. Use lists, out-of-box web parts. No server-side code allowed, client JavaScript only.
2.Provider-hosted apps
Bring your own server hosting infrastructure. Use the programming language of your choice and callback to SharePoint via the OData API. There is also an option to create remote event receivers.
3.Autohosted apps
Windows Azure Web Site and SQL Azure Database provisioned automatically when app is installed.