Questions tagged [sandbox-solution]
A sandbox is a restricted execution environment that enables programs to access only certain resources in a controlled way
25
questions
2
votes
3
answers
7k
views
Copy document from one site to another..?
,I need to build something (using a sandboxed solution?) to demonstrate that SharePoint has the ability for users to copy a document (with its attributes) from a doc library in one site to a doc ...
17
votes
3
answers
26k
views
Can't Activate Solution from Site Settings in SharePoint foundation 2010
I'm currently tasked with developing a branding solution for SharePoint Foundation sites. I've created a WSP file which can be deployed through my local machine through Visual Studios, but when I ...
17
votes
2
answers
3k
views
Cannot add custom web part to page using the JS OM
I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox.
I have it working ...
11
votes
1
answer
13k
views
Programmatically find lists by template ID
I am looking for an efficient way to programmatically find all SharePoint lists with a given template / type in the current site collection from within a sandbox solution.
NB: I'm obviously aware ...
7
votes
5
answers
4k
views
How to customize Feature image for a sandbox solution?
I'd like to add my own icon graphic to a feature. I found out that the ImageUrl attribute in the feature.xml definition points to the /_layouts/IMAGES folder which is out of scope for sandboxed ...
2
votes
3
answers
4k
views
Sandbox Content Type and Resource (RESX) File
I have a simple Sandbox Solution with a Content Type in it. The Content Type simply inherits from the Item content type. It adds no additional fields to it.
I've added a Feature Resource file to my ...
0
votes
0
answers
379
views
Custom EditorPart in SharePoint sandboxed solution
I want to implement the custom EditorPart in SharePoint sandboxed solution. I have the code like below. When I deploy the solution I cannot see the textbox and I noticed that the code is not executing....
11
votes
3
answers
4k
views
How to localize webpart title, description, group, quickadd group in Sandbox solution
I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
6
votes
1
answer
3k
views
Send email via code in Office365
I am developing a custom web part in an Office 365 environment. I am trying to send email to a user during the execution of the code in the web part.
I have tried two alternatives:
SPUtility....
5
votes
3
answers
6k
views
code behind aspx pages in sharepoint sandbox solution
I have a custom aspx page in sharepoint sandboxed solution with the content as shown below?
<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint....
4
votes
1
answer
704
views
Use Visual Studio 2010 To Create SandBoxed Site with Content
I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files.
My ...
4
votes
1
answer
8k
views
Webpart added to webpart page using modules is not visible in edit page
I am provisioning a webpart to a webpart page in sandboxed solution.
here is the module's element.xml
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/...
3
votes
3
answers
1k
views
Is it possible to create a Multi-lingual List Definition in a SandBox
I have a sandbox solution that for the some of it I have german translations for, like the feature name and description.
However to make this a proper multi-lingual solution I need to do the same for ...
3
votes
1
answer
1k
views
Can site columns be deployed in sandboxed solutions?
I have created a package in Visual Studio 2010 for SharePoint 2010 which contains a single feature, called "SiteColumns", which link to a single elements file defining a single site column.
I have ...
2
votes
2
answers
1k
views
Write file to response problem
I am having trouble writing a file to the response stream (sandbox solution).
The final line of this code block throws a null reference exception.
HttpContext.Current.Response.Clear();
HttpContext....
2
votes
2
answers
2k
views
file upload in sharepoint sandboxed solution
I need help regarding file uploading in sandboxed solution. In a thread in this portal somebody gave the following link as a solution to this problem:
http://blogs.msdn.com/b/sridhara/archive/2010/...
2
votes
1
answer
1k
views
Add choice to SPFieldChoice from an Eventreceiver in sandboxed
I am trying to make a sandboxed solution that adds a couple of itemeventreceivers to a list, that add the items to the choices of a choicefield. The result would be something like a lookup field, ...
2
votes
1
answer
775
views
How to find the localized name of the Web Part Gallery
I have learned (still a SP-Noob...) that I have to take care of removing webParts that I deployed as part fo a solution myself.
Now I have coded something like
string file = "MyWebPart.webpart"; ...
1
vote
0
answers
1k
views
Content Types not visible under New Button
I have a Sandboxed Custom Action for SharePoint Designer that can add Content Types to Document Libraries. The problem is that it does not automatically add it under the "New Document". It's not ...
1
vote
1
answer
706
views
Referencing JS and CSS in sandbox web parts error
I am trying to reference JS and CSS files in sandbox web part, but once I try to deploy it gives me this error:
The expression prefix 'SPUrl' was not recognized. Please correct the
prefix or ...
1
vote
2
answers
2k
views
Using Code in SP2013 sandbox solutions
I inherited a sandbox solution deployed to an SP2013 and I am currently struggeling to add a new feature version.
Somewhere I read that sandbox solutions are no longer soupported in 2013 - but I ...
0
votes
2
answers
460
views
Add Link to the Quick Launch Navigation while deploying a webpart page in the module
I like to add a navigation link under the quick launch left nav bar when a module deploys a webpart page as a file element in the feature. Is there a declarative way or do I go with feature event ...
0
votes
1
answer
1k
views
How to call C# (in a .WSP web part) from Javascript (in a Content Editor web part)
I have Javascript (Client Object Model) running in a Content Editor web part that controls other web parts on the page. The JS COM is limited in what it can do, so I want to be able to call managed ...
0
votes
3
answers
3k
views
An unknown exception occured while executing a sandbox code
Just created a visual webpart as sandbox solution, didn't changed a word other then adding some text to visual webpart, tried to deploy it but getting this exception,
it is a single server with dc, ...
0
votes
2
answers
2k
views
How to add property bag javascript
how can I add a property let say "StartDate" to the subweb i just created in this code,
var clientContext;
var website;
var subweb;
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);
...