New answers tagged 2013
0
Any list you deploy as part of you App will be added to the AppWeb (yes such a web is created when you add SharePoint items to your App, even though the App is Provider hosted) not to the HostWeb
1
I would go to great lengths in describing this. However technet have already beaten me to it for all 3... Damn them.
http://technet.microsoft.com/en-us/library/cc262350.aspx
The little drop down to change the version of SharePoint for all 3 versions. This is the most comprehensive description that you will find.
0
Okay the only answer to this then is. Don't use powershell.
This is available through the object model here:
http://msdn.microsoft.com/en-GB/library/cc264319%28v=office.14%29.aspx
0
You'd need to create a new date time column and populate that information then surface that field in the view. Going forward, the created date would be the same as what Sharepoint stores, but for historical files, you have to define that metadata yourself.
1
Have you broken permission inheritance anywhere in the site collection?
When permission inheritance is stopped anywhere within site collection, then ASPX pages (and its content) in that site collection will not be indexed by default.
This is a security feature implemented to prevent users from using the search to view information where they don't have the ...
0
Check out this blog by Jennifer Mason, titled SharePoint 2010, Office365: Why does my web part randomly disappear?!?.
Cite:
There is a trick you can use to get your web part back. Select the checkbox next to the web part and click on the option to close the web part. This will place the web part in the closed web parts gallery and you will be able to ...
0
Have you seen this link on SE?
Cite:
I expect you have "BaseViewID" attribute set to "0" on the "View" element of your custom list definition. You should change this attribute to some other value (in range 1..255) and the problem should vanish then.
1
Check under WebApplication permission that your crawl account has Read Access.
In Central Admin:
Application Management --> Manage web applications --> Click the line
of the web app --> In Ribbon "User Policy"
Make sure that the Search Crawling account is added as Full Read
1
Did you try putting the jQuery code inside a Content Query Web Part on that page?
Usually it is better practice to put the Javascript inside a Text file somewhere in your root site's library, and then reference it from the CQWP. Editing the page head itself will not always work.
0
i can modify the Sub Page Wiki Category column by accessing this column from the Library settings instead from the SubSite settings.
1
Use this instead,
string url = "~remoteAppUrl/Pages/PollQuestionView.aspx";
string queryString = "SPHostUrl=http%3a%2f%2fspmain%3a3865&SPLanguage=en??-US&SPClientTag=0&SPProductNumber=15.0.4420.1017";
SPUtility.Redirect(url, SPRedirectFlags.Default, Context, queryString);
How to use SPUtility.Redirect
MSDN reference
0
Why not just use a server relative Url?
Like: Page.Response.Redirect("PollQuestionView.aspx")
The standard tokens are replaced at compilation time in for example the AppManifest. They will NOT be replaced in your code at runtime. So if you want to pass them on you would need to get them from Page.Request and add them to the Redirect Url.
Use ...
0
I will try and make this answer not as vauge as the question posted and the error message given by Sharepoint 2013.
I found that there were two issues related to adding new posts to a newsfeed or microblog.
1. A hidden feature had to be activated on the site
[Enable-SPFeature -Identity 6928B0E5-5707-46a1-AE16-D6E52522D52B -Url ...
0
If checking the page in does not work, check the ULS logs (Found in the 15-hive under LOGS) for errors when loading the page.
A, not so wild, guess would be that some resource that the page is using is not accessible to all users. This could for example be the Master page not being checked in, or some script calling a location where other users do not have ...
1
Sure, under /subsiteUrl/_layouts/15/AreaNavigationSettings.aspx you can define that the subsite will use a different Global or Current Navigation and also specify a termset to use
1
You can't deploy farm solutions on spo period.
However you can work around every issue there is with sandbox with using csom and apps.
Take a look here.
http://hughajwood.wordpress.com/2012/12/10/sandbox-solutions-a-necessary-evil/
If it goes down I will update this link.
0
After further research, it appears that the column was not displaying in the External List because it was of type Int64. Apparently those can't be displayed within Sharepoint.
In my SQL View I converted them down to Int32 and they were then able to be displayed within an External List.
The External List then needed to be updated to display the new column. ...
0
Pretty sure there is a limitation in the app model against doing this. Only basic tool parts / custom properties like string, int, bool or enum can be created in app Webparts
See section Table 2. App part custom properties
here: http://msdn.microsoft.com/en-us/library/fp179921.aspx
1
Isn't current item null since the generation of the list items is already done when PostRenderCallback is called.
That should mean that ctx is now only containing information about the list as so and not about a specific list item.
0
This isn't the most dynamic solution but it should work... replace col_index with the column number... could add more before the "td" selector, such as the container id or class name to make the selection more fine-tuned.
$('tr>td[role="gridcell"]:nth-child(col_index)').attr("aria-readonly","true");
-2
Installation Scenario Deployment type and scale RAM Processor Hard disk space
Single server with a built-in database or single server that uses SQL Server
Development or evaluation installation of SharePoint Server 2013 or SharePoint Foundation 2013 with the minimum recommended services for development environments. For information, see Minimum ...
1
surveys are just another type of lists, you insert items the same way you do it with normal lists
Here is sample code for manipulate list
SPList list = web.Lists["My survey"];
web.AllowUnsafeUpdates =true;
SPListItem item = list.Items.Add();
item["This is my question number 1"] = "this is the answer";
item.Update();
web.AllowUnsafeUpdates =false;
Hope ...
0
Solved it by setting the navigation to term driven navigation, this however created a new problem with the quick launch not showing the parent terms.
0
You can change the masterpages with Powershell. Taken from this link:
All pages, except for publishing pages (witch you do not have in Foundation) uses the system master.
For system master page:
$web = Get-SPWeb http://localhost/
$web.MasterUrl = "/_catalogs/masterpage/mymasterpagename.master"
$web.Update()
For publishing pages master page:
Site ...
0
InfoPath is going to be your best bet for your custom workflow forms. Though this information is for 2010, it still applies: http://msdn.microsoft.com/en-us/library/ms573938(v=office.14).aspx
0
I shouldn't be using UpdatePanel, as it posts back to the same page, and the replies are likely in the page-load event, hence are getting reloaded along with my label.
Instead I should be using something like this:
<SharePoint:ScriptLink ID="scriptlink" Name="SP.js" runat="server" OnDemand="true"
Localizable="false" />
<script ...
1
Nope :-)
In order to get the site structure you are looking for, you would need to use a single site collection. You would have an explicit managed path '/documents', where you would create your root site collection, and then would have to create subsites underneath /documents/HRDept etc.
3
If you have set central admin and web applications to have the same port, you'll need to configure host headers for each so that IIS knows how to handle requests to each (Central Admin and a web application cannot co-exist on the same IIS web site).
You can modify the web application port number after it is created by changing the binding settings on the ...
1
Different ports is preferred. For consistancy, if you have dev/qa/staging environments, you should keep the CA and SP sites on the same ports across those farms so it's easy to remember.
2
You can use page layouts on team site, but you have to activate publishing features on the team site (so basically you could just have used one of the publishing site templates like cms as base for your web template).
I usually base my web templates on sts and then activate the site and web scoped publishing features on it via the onet,xml
3
It is not recommended that this be done for production deployments, primarily because of security concerns. If somebody were to compromise some of the admin accounts for SharePoint they could conceivably also take control of your domain and do a lot of harm.
For non-production environments and domains, this is fine and is frequently done (myself ...
1
It's not recommended, but possible. Check this video, should be useful for you:
http://www.youtube.com/watch?v=n0UVmSSG4dk
2
I'm guessing this is SP2013, as I myself have only encountered this in SP2013.
My personal explanation to this:
SharePoint 2013 Content By Query web part has a minor bug in its early releases. When returning no items it accidentally breaks the HTML structure of the page.
My solution:
Open the ContentQueryMain.xsl in SharePoint Designer. Find the XSL ...
0
I moved the code from the CreateChildrenCOntrols to the page load and then it works without any problem, visual webparts apparently work a little bit different in sp2013 but there is no documentation around.
THere is no need to find the controls using the controltemplates folder, the webparts are not even deployed there
3
I think the problem is src attribute of tag. Try <script src="/StyleLibrary/js/jquery-1.9.1.min.js" /> and take a look at this article
Edit If you decide to store js in _layouts folder, use <SharePoint:ScriptLink runat="server" ID="ScriptLinkJQuery" name="/Js/jquery-1.9.1.min.js" Localizable="false" />
1
I have found that 9GB is the minimum amount of RAM required for our virtual machines to comfortably run SP2013 and SQL2008r2. This allowed me to run plenty of services (inc. user profile, search). It is responsive enough for development but not instantaneous enough for a live configuration as users would notice the delay between pages loading.
4 virtual ...
1
I hope this isn't production, it's not a supported practice to install AD on a SharePoint server. However, the error message you're receiving should be as simple as required services not running. Check Services and IIS and make sure everything is running. You might not be able to run them since they might be using accounts that no longer exist. When you ...
2
It's hard to say as you did not specify number of users, number of wiki entries and overall planned size of these libraries. I would only opt. for separate site collections if you will have more than of 200 GB of content in each wiki.
This is how I would design it it:
Create a single site collection with a home page (root site)
Grant everyone permissions ...
1
On SE here is something regarding the TypeDescriptor, but I do not think that this is the way for changing the BDC List Column Type. However, I don't know the way to edit it in this way, so I've upvoted your question.
There is a similar question on SE here. One of the proposed answers was a link to the SPCascadeDropdowns function in SPServices on codeplex. ...
1
I think you can consider using REST, and you'll need to know some JavaScript/JQuery.
http://msdn.microsoft.com/en-us/library/jj164022.aspx
There's a section on working with list items, which will allow you to retrieve items in a list; you'll need to work with the url, and either the list title or GUID.
1
The user you are running Visual Studio with should at least have read permissions on pages of the SharePoint web where you are trying to deploy your app. (Easiest would be to add the user to the visitors or members group like described here: ...
0
I have exactly the same system's behavior when page didn't exist with such URL (i thought it was, but actually it wasn't - usually, the simplest mistakes is harder to find). I always start checking URL first now - hopefully, it helps someone.
1
Fast Search (2010) will index javascript sites.
SharePoint Search (2013) will not index javascript.
References: http://social.msdn.microsoft.com/Forums/de-DE/sharepointsearch/thread/b2456e71-9308-43f8-8351-b013b5070cc5
http://blogs.technet.com/b/vedant/archive/2010/08/24/fast-search-server-2010-for-sharepoint-specific-indexing-connectors.aspx
0
If you activate the SharePoint Server Publishing Infrastructure for the site collection and then activate the SharePoint Publish feature for the site the option to change the page layout should comes up on the ribbon when your are in edit mode.
If you are working with custom branding let me reccomend this site http://bindtuning.com for some versions the ...
0
I fixed the issue by creating a new web application under a new account from central administration and creating my target site collection under the new web application.
For the site collection the primary administrator was the new account and the secondary administrator was the domain administrator account that I would be using in Visual Studio to deploy ...
0
Get your server relative url using _spPageContextInfo
var customMasterPage = "custom.v15.master";
var siteRelativeUrl = _spPageContextInfo.siteServerRelativeUrl;
web.set_customMasterUrl(siteRelativeUrl + '/_catalogs/masterpage/' + customMasterPage);
web.set_masterUrl(siteRelativeUrl + '/_catalogs/masterpage/' + customMasterPage);
web.update();
0
One thing we had to do was to add the sites to your trusted zone and also make some adjustments in the Windows Credential Manager. I believe its an IE issue, but too have not tracked it down. The solution we have in place works, but i also would like to find out how to fix it without this solution.
1
There is also a 3rd party tool called BDLC which I have used in the past. Very easy to set up and configure and basically allows you to create either a read-only or write-back synchronised list and database table.
1
The easiest solution I can come up with that does not include fondeling with 3rd party software or snooping in the web.config file would be to insert either a usercontrol or some javascript on the page which changes the /?mobile=1 to /?mobile=0.
0
Try setting the Inbound Rule URL to the URL of your specific page. Please see this tutorial on details.
Setting the isMobileDevice property to false for the specific page should also work, assuming that the page has it. Seen here and here.
EDIT:
There is a MobileView property, which, when set to false, disables the mobile view of the page. Source: MSDN. ...
Top 50 recent answers are included



