Deployed lists in a SharePoint hosted app use the wrong content type.
I am using Visual Studio Ultimate 2013 to deploy a SharePoint hosted app to my SharePoint 2013 development environment.
I have created 2 lists, one of which is using a custom content type with custom columns and the other is just a simple custom list definition and instance, all of which are deployed inside the same feature.
However when I go to the simple list, it is using the content type from the other list, even though in the schema.xml shows that it is not supposed to use this content type. I have checked the content type ID and it is not referencing my custom content type,
but for some reason the list is using that content type.
I remember seeing this same issue a few months ago while creating a SP2010 sandbox solution. It could well be something I'm doing wrong when creating the lists/content type.
Steps to recreate this issue:
Create a SharePoint hosted app in VS
Create some custom fields
Create a custom content type
Create a list based on that content type
Create another list not based on the content type
Delete feature that VS creates for the second list and add the list def and instance to the main feature (containing the other list and content type)
Deploy and go to second list, note that it has the custom fields from the first list.
Any advice on what to do about this would be great. I have tried deleting the list and recreating it in VS several times but that didn't work.
Thanks
David
Hi
I have now tested against a trail Office 365 Developer site and I had to make a few adjustments
- change the url
- change the target to SharePoint Onlne
- change the url
I still wasn't happy so I created a new SharePoint Hosted app and pointed at the above developer site. I copied my CrossDomainExec.js and stripped all my code except my CopyItemInSameLIbrary method which hasn't changed since I created this post.
- changed the App Manifest permissions to Web -full Control ( was previously tenant)
I still got errors which is really painful as you don't even see the POST request in Fiddler
The URL used for my POST is as follows ( note host URL is fictitious)
"https://myapphell-547d8061d39e38.sharepoint.com/sites/appsdev/RESTTestSHA/_api/SP.AppContextSite(@target)/web/Getfilebyserverrelativeurl('/sites/appsdev/Shared Documents/SrcDoc.docx')/copyTo(strNewUrl='/sites/appsdev/Shared Documents/DestDoc.docx', bOverWrite=true)?@target='https://myapphell.sharepoint.com/sites/appsdev'" String
Ran the app a second time and now I see......Wow it WORKS!!!!!! ..Can't be true can it?
.... next I will switch the target url to my on prem farm to see if this still works so watch this space!
Daniel
Freelance consultant
Similar Messages
-
Using the External Content Type as a column lookup
Hi.
I am working on a solution that will get data from a web service (third party) and create a list in SharePoint Online (Office365 E3 subscription). The use a column from that list as a lookup column for another list. The reason for this is to allow updates
on the third party data source to update the list in Office 365.
Using SPD 2013, I created that external content type then created the list. However, due to the limitations on BCS (which I just learned after googling it) that the only thing I can use from this column is the ID column.
Has anyone found a work around on the matter? I was thinking of just creating a list app then load the bcs data to it. My problem will be how to update the list every so often.
Thanks!
Robert
Outsource TrainerHi,
According to your post, my understanding is that you want to use the External Content Type as a column lookup.
Per my knowleage, you can select all the columns in the external list.
You can create a lookup column in the list as below:
If you select Name, then you can get the Name column as below:
There is an article for your reference, although it is about the SharePoint 2010, it still works for SharePoint Online 2013.
Creating SharePoint lookups which get their data from a lookup
table in SQL (using SharePoint Designer, BCS and External Content Types)
More information:
Make an External List from a SQL Azure table
with Business Connectivity Services and Secure Store - SharePoint Online for enterprises
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Permissions required to deploy an "SharePoint hosted App" using VS 2013
Hello,
I'm trying to deploy a SharePoint Hosted App to an OnPrem SP2013 server.
When i hit F5 (from VS 2013) i get the below error:
"Error occurred in deployment step 'Uninstall app for SharePoint': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm."
I'm added to the Farm Administrators group, site collection admin and to the admin group of the box. But i do not have any db_Owner permissions the the config / content database.
Do I need DB Access to deploy the apps? Please advice.
Thanks,
Keerth
Keerth R>>Do I need DB Access to deploy the apps? Please
advice.
Yes, you need to have db_owner permissions for the account which you are using to deploy the apps.
http://www.sharepoint-journey.com/app-development-in-sharepoint.html
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Change the Page title of Default.aspx in SharePoint Hosted App using ECMA Script
Basically i want to change page title dynamically. the thing is default.aspx page is present in the below location
Folders/Pages/Default.aspx ( Verified using
SharePoint Manager 2013 Online )
Could any one let me know how to iterate through the folders and then go to pages and change title of Default.aspx page?
NavaneethAll the links which is mentioned above is either they are doing it in code behind or javascript like document.title.
I want to change dynamically using ECMA script. the point i found here is if you use the below code you will get an error saying list "Pages" does not exists in the SharePoint site.
clientContext.Web.Lists.GetByTitle("Pages");
So i am wondering how can we change the page title of SharePoint hosted app ( Default.aspx) dynamically
Say example i have one text box and submit button. when give the title in the text box and click on submit the title should reflect in the page.
Navaneeth -
Error when trying to retrieve Document Library in Sharepoint Hosted App using REST
I have created the following REST request in order to retrieve the root folder of a Document Library added to a Sharepoint Hosted App
getProductDocumentFolder: function () {
$.ajax({
url: _spPageContextInfo.webServerRelativeUrl +
"/_api/web/GetFolderByServerRelativeUrl('/Lists/ProductDocuments')",
type: "GET",
headers: {
"accept": "application/json;odata=verbose",
success: function () {
alert("Success!");
//REST.Operator.readAll();
error: function (err) {
alert("Oops, error!");
alert(JSON.stringify(err));
The Document Library was added to the App from the Add > New Item menu in Visual Studio. I selected List and Selected Document Library from the Create a customizable list... dialog. The list is defined as shown in the picture below.
I get the generic error "Value does not fall within the excepted range".
I have tried both
"/_api/web/GetFolderByServerRelativeUrl('/Lists/ProductDocuments')"
and
"/_api/web/GetFolderByServerRelativeUrl('/ProductDocuments')"
for the Document Library URL both I get the same error in both cases.
What am I missing here?Problem solved.
It turns out there should be NO leading '/' in the relative URL despite the example shown in http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#Folders with "/Shared Folder".
The correct GetFolderByServerRelativeUrl-parameter in my case is 'Lists/Productdocuments'.
Unsure whether example is wrong or if it applies to other cases than mine. -
I have an enterprise site collection with the following content type settings inside the list content type (columns such as security, document type, etc as required):-
Then I have created a new sub-site of type enterprise wiki, the default list content type for the subsite will look as follow which have the columns such as security, document type as optional :-
But now if I went to the sub-site and I chose to create a new page, and i leave all the columns empty, then the system will raise an error that the columns such as; security, document type, etc are required. although inside the sub-site content type the
columns are defined as optional. So seems that the wiki page inside the sub-site is referencing the parent content type and not its own sub-site content type.
Can anyone advice on this please ?Hi John,
I tested the same scenario per your post, however the columns retained the same settings in sub-site in the same content type.
I recommend to verify the things below:
Was the content type you used for creating the page the one created in the parent site?
Did you create another content type in sub-site based on the one created in parent site? I recommend to click the column name to go inside the column settings and then check if the Optional is selected. If yes,
change it and click OK, then change it back to Optional again to see if the issue still occurs.
Best regards.
Thanks
Victoria Xia
TechNet Community Support
1. no
2. no. i did not create any content type. i have just create a new subsite of type enterprise wiki , and the content type settings will be same as the parent content type, which have all these columns set as optional. but seems these settings will be ignored
as these columns will raise an error if i leave them empty. so seems that the subsite's library will use the same settings as its parent site collection library, which have these columns set as required...
so i have the following , to make things clearer:-
1. inside the site collection , the content type at the site collection level have these columns as optional.
2. inside the site collection's library the list content type copy, have these columns as required.
3. on the subsite list content type copy, i have these columns as optional. but these columns on the subsite library will be treated as required columns ... -
Change default view across multiple page libraries using the same content type/types?
I am the editor for a large SharePoint publishing site with approximately 130+ subsites. Based on our content, I've create two diffferent default views that will come in handy as we move to a distributed authorship model. (I'm thinking specifically about
the Quick Edit/Excel-like feature to make quick changes to page/document metadata.)
The authors/content owner/editors have NO experience with SharePoint, so while the benefit of using views is that they can be tailored to individual needs, I'd like to start them off with something that is VERY easy to change on the fly. It's either that
or, as just a power user in the CMS, go to each individual page and document library and change it manually, which could take days, if not longer. Thanks!
Ryan D WattersEssentially, yes.
That said, I am using SharePoint 2013, and I just now realized that I posted this in the legacy SP forum. You'll have to excuse me -- this is my first time posting:)
Basically, I have two different "ideal" views based on two different site templates. These two site templates account for over 100 publishing subsites. The view has 18 different metadata that will make editing/making changes to article pages much
easier for content owners because they will be able to go into the page libary>ribbon>library>quick edit and edit the metadata as if it were an Excel spreadsheet. This comes in especially handy for things like rollup order between primary, secondary,
tertiary pages within a subsite. Ideally, it would be nice to be able to add that view as an option within the CMS (similar to the way you can add a view style).
I hope that makes sense. Also, I'll repost the question to SharePoint 2013. Much appreciated!
Ryan D Watters -
Hi Everyone,
We are developing SharePoint hosted apps for Office 365, for that we are going
to implement document rating functionality inside Sharepoint app. The host web contain document library (“Documents”) and from apps we need to rate each document. The rating functionality working fine with CQWP in team site using
JavaScript Object Model API.
But the same code is not working inside apps and giving error:-
If we are using app context than error will be:-
"List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user."
And for Host context than error will be:-
"Unexpected response data from server."
Please help on this
Please see below code..
'use strict';
var web, list, listItems, hostUrl, videoId, output = "";
var videoLibrary = "Documents";
var context, currentContext;
var lists, listID;
var list, parentContext;
var scriptbase;
(function () {
// This code runs when the DOM is ready and creates a context object which is
// needed to use the SharePoint object model
$(document).ready(function () {
hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
context = SP.ClientContext.get_current();
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
function sharePointReady() {
scriptbase = hostUrl + "/_layouts/15/";
// Load the js files and continue to the successHandler
$.getScript(scriptbase + "SP.Runtime.js", function () {
$.getScript(scriptbase + "SP.js", function () {
$.getScript(scriptbase + "SP.Core.js", function () {
$.getScript(scriptbase + "reputation.js", function () {
$.getScript(scriptbase + "sp.requestexecutor.js", execCrossDomainRequest);
//Query list from hostweb
function execCrossDomainRequest() {
//Load the list from hostweb
parentContext = new SP.AppContextSite(context, hostUrl);
web = parentContext.get_web();
list = web.get_lists().getByTitle(videoLibrary);
context.load(list, 'Title', 'Id');
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE"/></OrderBy></Query><RowLimit>1</RowLimit></View>');
listItems = list.getItems(camlQuery);
context.load(listItems);
context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
//Process the image library
function onQuerySucceeded() {
var lstID = list.get_id();
var ctx = new SP.ClientContext(hostUrl);
var ratingValue = 4;
EnsureScriptFunc('reputation.js', 'Microsoft.Office.Server.ReputationModel.Reputation', function() {
Microsoft.Office.Server.ReputationModel.Reputation.setRating(ctx, lstID, 1, ratingValue);
ctx.executeQueryAsync(RatingSuccess, RatingFailure);
function onQueryFailed(sender, args) {
alert('Failed' + args.get_message());
function failed(sender, args) {
alert("failed because:" + args.get_message());
function RatingSuccess() {
alert('rating set');
//displaystar();
function RatingFailure(sender, args) {
alert('Rating failed : : ' + args.get_message());
//Gets the query string paramter
function getQueryStringParameter(paramToRetrieve) {
var params;
params = document.URL.split("?")[1].split("&");
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == paramToRetrieve) return singleParam[1];
Thanks & Regards
Sanjay
Thank you in advance! :-)
Hi,
According to your post, my understanding is that you want to update list column in SharePoint hosted apps using JavaScript Client Object Model.
Based on the error message, it seems not retrieve the list object in context. I suggest you debug the code step by step using Internet Explorer Developer Tools to
find the problem.
Here are some demos about using JavaScript Client Object Model in SharePoint hosted app:
http://blogs.msdn.com/b/officeapps/archive/2012/09/04/using-the-javascript-object-model-jsom-in-apps-for-sharepoint.aspx
http://sharepoint.stackexchange.com/questions/55334/how-to-access-list-in-sharepoint-hosted-app
http://www.dotnetcurry.com/showarticle.aspx?ID=1028
Best regards
Zhengyu Guo
TechNet Community Support -
Retrieve data from a list in SharePoint 2013 provider hosted App using CSOM
I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to get
data from a list hosted in SharePoint using CSOM. But I get ran insecure content error.
here is my code in Default.aspx
<script type="text/javascript" src="../Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript" src="../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../Scripts/SP.Core.js"></script>
<script type="text/javascript" src="../Scripts/INIT.JS"></script>
<script type="text/javascript" src="../Scripts/SP.Runtime.js"></script>
<script type="text/javascript" src="../Scripts/SP.js"></script>
<script type="text/javascript" src="../Scripts/SP.RequestExecutor.js"></script>
<script type="text/javascript" src="../Scripts/App.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="Get title via CSOM" onclick="execCSOMTitleRequest()" /> <br />
<input id="Button2" type="button" value="Get Lists via CSOM" onclick="execCSOMListRequest()" />
</div>
<p ID="lblResultTitle"></p><br />
<p ID="lblResultLists"></p>
</form>
</body>
</html>
and App.js is:
var hostwebUrl;
var appwebUrl;
// Load the required SharePoint libraries
$(document).ready(function () {
//Get the URI decoded URLs.
hostwebUrl =
decodeURIComponent(
getQueryStringParameter("SPHostUrl")
appwebUrl =
decodeURIComponent(
getQueryStringParameter("SPAppWebUrl")
// resources are in URLs in the form:
// web_url/_layouts/15/resource
var scriptbase = hostwebUrl + "/_layouts/15/";
// Load the js files and continue to the successHandler
//$.getScript(scriptbase + "/MicrosoftAjax.js",
// function () {
// $.getScript(scriptbase + "SP.Core.js",
// function () {
// $.getScript(scriptbase + "INIT.JS",
// function () {
// $.getScript(scriptbase + "SP.Runtime.js",
// function () {
// $.getScript(scriptbase + "SP.js",
// function () { $.getScript(scriptbase + "SP.RequestExecutor.js", execCrossDomainRequest); }
function execCrossDomainRequest() {
alert("scripts loaded");
function getQueryStringParameter(paramToRetrieve) {
var params = document.URL.split("?")[1].split("&");
var strParams = "";
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
if (singleParam[0] == paramToRetrieve)
return singleParam[1];
function execCSOMTitleRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
//Load Web.
context.load(this.web);
context.executeQueryAsync(
Function.createDelegate(this, successTitleHandlerCSOM),
Function.createDelegate(this, errorTitleHandlerCSOM)
//success Title
function successTitleHandlerCSOM(data) {
$('#lblResultTitle').html("<b>Via CSOM the title is:</b> " + this.web.get_title());
//Error Title
function errorTitleHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM call: " + errorMessage);
function execCSOMListRequest() {
var context;
var factory;
var appContextSite;
var collList;
//Get the client context of the AppWebUrl
context = new SP.ClientContext(appwebUrl);
//Get the ProxyWebRequestExecutorFactory
factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
//Assign the factory to the client context.
context.set_webRequestExecutorFactory(factory);
//Get the app context of the Host Web using the client context of the Application.
appContextSite = new SP.AppContextSite(context, hostwebUrl);
//Get the Web
this.web = context.get_web();
// Get the Web lists.
collList = this.web.get_lists();
//Load Lists.
context.load(collList);
context.executeQueryAsync(
Function.createDelegate(this, successListHandlerCSOM),
Function.createDelegate(this, errorListHandlerCSOM)
//Success Lists
function successListHandlerCSOM() {
var listEnumerator = collList.getEnumerator();
$('#lblResultLists').html("<b>Via CSOM the lists are:</b><br/>");
while (listEnumerator.moveNext()) {
var oList = listEnumerator.get_current();
$('#lblResultLists').append(oList.get_title() + " (" + oList.get_itemCount() + ")<br/>");
//Error Lists
function errorListHandlerCSOM(data, errorCode, errorMessage) {
$('#lblResultLists').html("Could not complete CSOM Call: " + errorMessage);
Any solution is appreciated.Hi,
To retrieve data from list in your provider-hosted app using SharePoint Client Object Model(CSOM), you can follow the links below for a quick start:
http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx
http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
Best regards
Patrick Liang
TechNet Community Support -
Caml query for filtering list item not working as expected in Sharepoint hosted app
I am trying to filter list item based on particular value.
var header = "xyz";
camlQueryHeader.set_viewXml = "<view><Query><Where><Eq><FieldRef Name='Position'/>" + "<Value Type='Text'>" + header + "</Value></Eq></Where></Query></view>";
Instead of getting filtered list items, I get all the list items. What am I missing?
Note: I am creating Sharepoint hosted app using CSOM.
regards, Ritesh AnandHi,
According to the code provided, I suggest you modify the code like this:
camlQueryHeader.set_viewXml('<view><Query><Where><Eq><FieldRef Name=\'Position\'/>' + '<Value Type=\'Text\'>' + header + '</Value></Eq></Where></Query></view>');
Here is a documentation of how to use the viewXml property of SP.CamlQuery object:
SP.CamlQuery.viewXml Property
Thanks
Patrick Liang
TechNet Community Support -
How to get sharepoint online (office 365) data in cloud/windows azure (provider) hosted app using Javascript?
I wish to retrieve sharepoint online data in html page (hosted in windows azure) using javascript and then need to play with AngularJSHi,
According to your description, you might want to get data from Office 365 SharePoint Online(also known as host web) and pass to the Provider Hosted App which is hosted
in Windows Azure site.
I would suggest you take a look at the links below about accessing data from the host web
for a quick start:
https://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx#SP15Accessdatafromremoteapp_Codeexample
http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
Aother sample solution for your reference:
https://code.msdn.microsoft.com/SharePoint-2013-Get-the-0ec36bb6
Best regards
Patrick Liang
TechNet Community Support -
How to Upload the files into the SiteAssets Library by SharePoint Hosted App Model
I want to upload the Jquery and supported files in to the Site Assest library by SharePoint Hosted Apps,
I have created a SharePoint Hosted App, added the files in the Modules
<Module Name="ZoneTabsFiles" Url="SiteAssets">
<File Path="ZoneTabsFiles\jquery-1.11.2.min.js" Url="jquery-1.11.2.min.js" ReplaceContent="TRUE" />
<File Path="ZoneTabsFiles\jquery-ui.css" Url="jquery-ui.css" ReplaceContent="TRUE" />
<File Path="ZoneTabsFiles\jquery-ui.min.js" Url="jquery-ui.min.js" ReplaceContent="TRUE" />
<File Path="ZoneTabsFiles\ZoneTabs.js" Url="ZoneTabs.js" ReplaceContent="TRUE" />
</Module>
The Apps is successfully getting activated but the files are not visible,
Similarly I want to upload the .webpart file to webpart catalogs.
<Module Name="ZoneTabsWebpart" List="113" Url="_catalogs/wp" Path="lists\wplib" RootWebOnly="TRUE">
<File Url="ZoneTabs.webpart" ReplaceContent="TRUE" />
</Module>
The Functionality I can achieve Provider Hosted app, but Can it be done by SharePoint Hosted apps,
Currently the app has the permission of Full Control on Site and Web
Thanks in advanceHello Ashok,
you can use JSOM to provision the webpart files in SharePoint hosted app.
Please see the below article for more details.
http://www.sharepointnutsandbolts.com/2013/05/sp2013-host-web-apps-provisioning-files.html
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Hi,
Is there a way to read group members of site owner group via SharePoint hosted app . The "Who can view the membership of the group? " is set to Group members only. As per my research SCA can only view the group members of site owner group
if this settings is applied.
Thanks,
Sudhir
Sudhir rawatSee this.
Avoid changing the MaxPageSize LDAP query policy
http://jeftek.com/219/avoid-changing-the-maxpagesize-ldap-query-policy/
Regards~Biswajit
Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
MY BLOG
Domain Controllers inventory-Quest Powershell
Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
Generate a Report for installed Hotfix for Bulk Servers -
How to open List when Page loads in SharePoint Hosted App?
I want to create an app same like InstantPracticeManager by InstantQuick.
Now I want to know that in a SharePoint Hosted App How can I show the Whole List in a page.
Here I have added one image:
Here there is one list and there are 4 views of that list.
Now the App will be like when I load the page It will show like the image above. Now how can we show the list like this in sharepoint hosted app?
I want the same scenario which is shown in the following blogs:
http://sp2013.blogspot.in/2012/08/use-list-view-in-sharepoint-2013-apps.html
and
http://www.sharepointnutsandbolts.com/2013/08/working-with-web-parts-within.html
where they add a list to an app
Can any one suggest me the idea? I am bit confused.
thanks in advance.Hi,
According to your post, my understanding is that you want to show the different list view in a page in SharePoint Hosted App.
We can use jQuery and cross-domain library to achieve it.
The following articles for your reference:
Adding a Tabbed View to A Web Part Page Using jQueryUI
http://sympmarc.com/2011/11/09/adding-a-tabbed-view-to-a-web-part-page-using-jqueryui/
How to: Access SharePoint 2013 data from apps using the cross-domain library
http://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx
SharePoint 2013: Get list items by using the cross-domain library (JSOM)
http://code.msdn.microsoft.com/office/SharePoint-2013-Get-items-d48150ae/view/SourceCode#content
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
SharePoint Hosted App - Creating cascaded drop down on hosted web lists
Hi,
I have created an SharePoint Hosted App(Javascript Object Model) that creates lists on the host web.
I need to put some javascript into new and edit forms in order to create the cascaded drop down effect on 2 lookup fields.
Can you please give me some advise?
Regards,
MarianHope below article should help you
http://blog.pentalogic.net/2010/11/editing-the-sharepoint-list-item-menu-part-2-using-javascript/
http://www.getinthesky.com/2014/03/hide-text-field-sharepoint-form-using-jquery/
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/030471b2-d19a-470f-9a9e-0fd8a229138b/how-do-i-create-a-new-item-form-that-allows-to-save-and-continue-editing?forum=sharepointcustomizationlegacy
Maybe you are looking for
-
HT5622 I never set up icloud and my ipad has been stolen is there any way i can find it still?
I never set up icloud on my ipad and it has been stolen is there any way i can still track it without it being turned on the device?
-
The latest update for my Mac is taking over an hour
I am updating with the latest update and it looks like it is stuck on the last 90%.
-
Sending E-Mail through an Applet
Hi All, I have been trying to send an E-mail through an Applet but haven't been quite successful. I have tried out a lot of code and even downloaded a few samples but none of them seem to work. I am getting an "Unable to connect to Host exception". R
-
I have tried configuring a VPN connection on my IPAD2 Wifi,,,, the settings are apparently wrong since it won't connect and I get an error stating that.... the trouble is I can't get back intop that area to change the settings everytime i ttry to t
-
DAX - Need help with TotalYTD calculation with Rolling 12 Months (Fiscal Months)
These are the tables I currently have in my solution: DimDate - date dimension - our fiscal periods don't match with calendar periods Fact Claims - ID, Date, Doc#, Amount, ProductKey DimDateR12 - fiscal periods with max and min calendar dates - usin