Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Accessing context variables on other pages

$
0
0

So, I am working on building my first Sharepoint App.  The app has 2 pages. The first page is accessible by everyone, and the 2nd page is accessible to managers only. Users submit to HR prospective recruits. The first page stores the submission in a list in the host_web.  When I load the 2nd page, I need to pull that data.  Likewise, one of the first things I need to do is to get the current and host context.  However, I don't seem to be able to do this on the 2nd page.  It worked perfectly well on the first page.  Page 2 always gets hung up here:

hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
How do I get this data into page 2?


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>