none
Business Requirement for SharePoint hosted apps RRS feed

  • Question

  • Hi,

      I'm having a business requirement to create sharepoint hosted apps. Can anyone tell me how to achieve this functionality.

    1) When end user log in to sharepoint portal, he should automatically redirected to App web. He doesnt have any knowledge on how to go to site contents and click apps. So, when he hit the url, he should be automatically redirected to App web.

    2) Right now, we have created a app using VS and provisioned columns, content types and list for app web. Can we create apps to provision all elements in host web without coding?

    3) Heard SP designer not support app based workflow. Can we create a workflow with host web and then import into VS for app web and modify it?


    Balaji -Please click mark as answer if my reply solves your problem.

    Tuesday, May 5, 2015 9:16 AM

Answers

  • Hi Balaji,

    From your description, my understanding is that you want to display a SharePoint OOTB list in hosted app page.

    You could accomplish your requirement with iframe as below steps:

    1. Ccreate a page in SharePoint.
    2. Insert the OOTB list as a WebPart into the page.
    3. Include the page as a iframe in the hosted app page.

    Please refer to these article about allow SharePoint site to load into Iframe:

    Including SharePoint 2013 in an iFrame without x-frame-options error

    http://styledpoint.com/blog/including-sharepoint-2013-in-an-iframe-without-x-frame-options-error/

    Besides, you could get data from host web and display them in hosted app page. Please refer to this article about how to access data within App Web and access data from Host Web:

    Data Access in SharePoint-hosted Apps

    http://blog.ctp.com/2014/06/23/data-access-in-sharepoint-hosted-apps/

    Best Regards,

    Vincent Han


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, May 28, 2015 9:43 AM
    Moderator

All replies

  • Hi

    1) You can use the JavaScript to perform this action, just check how SharePoint use the JavaScript to do that. .

    2) Yes you can , You can add these from visual studio (Ex:- Add-> ContentType). Then App will provision those when the time of the installation.

    3) You can use the VS

    Thanks


    Melick Rajee http://melick-rajee.blogspot.com

    Wednesday, May 6, 2015 10:37 AM
  • Hi Balajii,

    1. For 1, redirecting to app web will not be right approach or will not provide the right user experience. Either you can bring the app functionality into app part and keep the app part at the home page of the portal.

    2. Yes, you can create the columns and content types in the host web.

    3. When you create workflow through visual studio (app based workflow) will be get deployed to app web only. will not get deployed to host web. you need copy the workflow package into host web.


    Sriram S

    Friday, May 8, 2015 1:41 PM
  • Hi Sriram,

      Thanks for your reply. My requirement is when I create a sharepoint hosted app with list and some custom page, after deployment it is redirecting to app page. But I want to show list in a page which is developed as sharepoint hosted app. Is it possible to show the OOTB list in client app parts.


    Balaji -Please click mark as answer if my reply solves your problem.

    Saturday, May 16, 2015 10:18 AM
  • Hi Balaji,

    From your description, my understanding is that you want to display a SharePoint OOTB list in hosted app page.

    You could accomplish your requirement with iframe as below steps:

    1. Ccreate a page in SharePoint.
    2. Insert the OOTB list as a WebPart into the page.
    3. Include the page as a iframe in the hosted app page.

    Please refer to these article about allow SharePoint site to load into Iframe:

    Including SharePoint 2013 in an iFrame without x-frame-options error

    http://styledpoint.com/blog/including-sharepoint-2013-in-an-iframe-without-x-frame-options-error/

    Besides, you could get data from host web and display them in hosted app page. Please refer to this article about how to access data within App Web and access data from Host Web:

    Data Access in SharePoint-hosted Apps

    http://blog.ctp.com/2014/06/23/data-access-in-sharepoint-hosted-apps/

    Best Regards,

    Vincent Han


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, May 28, 2015 9:43 AM
    Moderator