GithubHelp home page GithubHelp logo

isabella232 / sap-gwm-sharepoint-provider-hosted-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from officedev/sap-gwm-sharepoint-provider-hosted-app

0.0 0.0 0.0 3.41 MB

HTML 1.16% C# 24.63% CSS 11.76% JavaScript 62.41% ASP 0.02% Gherkin 0.02%

sap-gwm-sharepoint-provider-hosted-app's Introduction

#Sample: Developing a Cloud Business App to access SAP Gateway for Microsoft Summary: This sample creates a LightSwitch SharePoint provider-hosted app to access SAP data by means of SAP Gateway for Microsoft. The languages used are C# and JavaScript. The tools used to set up the sample are Visual Studio and the Azure Portal. This sample app supports CRUD operations on SAP Data, and can be used to view pictures from and upload pictures to a SharePoint picture library.

Table of contents:

Prerequisites
Key components of the sample
Deploy the sample app

#Prerequisites:

This sample requires the following:

#Key components of the sample The SellerDashboard solution includes eight projects, and it is divided into two categories: BoxXDataStudio and SellerDashboardStudio.

  • BoxXDataStudio includes all of the components needed to interact with SAP Gateway for Microsoft. It contains four projects:

    • AADAuthLib. This component is used to carry out the Azure AD authorization code flow, which uses a Singleton pattern.

    • BoxXDataService. This is a WCF RIA service, which is the interface used by the SellerDashboard server-side component hosted in Azure, and which consumes the SAP data source from SAP Gateway for Microsoft.

    • CarInventoryBoxXDataOperation. This is the real CRUD implementation for BoxXDataService. The CRUD namespace is used to implement the CRUD operations, and the Util namespace is the helper code for the CRUD namespace.

    • CarInventoryModel. This is a library project that's used to implement the data model and utilities. The data model definition has to match the metadata of the OData endpoint that's used by SAP Gateway for Microsoft, which is based on the SAP data schema. BoxXDataService and CarInventoryBoxXDataOperation use it to convert the SAP database item into a car inventory instance.

  • SellerDashboardStudio includes standard LightSwitch SharePoint app components. It also contains four projects:

    • SellerDashboard is the StartUp project, and it is used to publish the SellerDashboard app to the Azure website and its SharePoint app to the SharePoint developer site.

    • SellerDashboard.HTMLClient. This component includes the screens, a custom control, and a photo upload control.

    • SellerDashboard.Server. This component includes the WCF RIA data source, the SharePoint data source, and the photo-upload Web API.

    • SellerDashboard.SharePoint. This component is included after the LightSwitch solution to enable the SharePoint project. You can use this component to configure the SharePoint site used for the picture library and to set the required permission for the app. SellerDashboard needs to be granted the Full Control permission level on the SharePoint site that hosts the picture library.

#Deploy the sample app:

For information about installing the Visual Studio solution and deploying the sample app, please see the companion article How to: Create a complex provider-hosted app that uses the SAP Gateway.

Copyright

Copyright (c) Microsoft. All rights reserved.

sap-gwm-sharepoint-provider-hosted-app's People

Contributors

saulcandib avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.