Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 7589 articles
Browse latest View live

SharePoint 2010 to 2013 Migration Question about Search Scopes/Results Sources How To Recreate same functionality?

$
0
0

Trying to migrate a SP2010 farm to SP2013 for a client.  From my research search scopes are now "result sources" in SP2013...

The client has some custom search scopes in the SP2010 dropdown that are used to filter out results based on search scopes. These search scopes are going against a BCS database content source. My question is how to recreate this type of functionality -- same that search scopes in 2010 did? I have search result sources setup that match the 2010 search scopes, but am not sure how to use them to get a search center for this particular content source.  Here is a screen cap of the SP2010 search scope page I am trying to migrate to SP2013.  Thanks!

Here is their sample search scope page in SP2010 I am trying to migrate to SP2013


About designing themes in Sharepoint Online (2013)

$
0
0

Good day. I require to edit the default theme "Oslo" to show a left menu like in the Seattle theme... but keeping the top menu design in a separate block from the body.

How can I achieve this? Can I use a code-free tool? or do I need to edit master pages to get this?

Greetings.

Add JavaScript file to ALL existing Task List pages and to newly created list pages

$
0
0

We have several OOTB task lists that are in use on several subsites.  We want to add JavaScript to the NewForm.aspx and EditForm.aspx for these task lists. These lists have not been customized, they are based on the standard Task Content Type.

Since there are several lists already created and in use, it would be far too much work to manually add a Content Editor web part to each page.

We put the JavaScript file in the top-level site style library.

Is there a way to programmatically attach a script reference to each existing page in all the subsites AND have the script reference placed on any NEW list pages created from the OOTB Task content type? Or, add a CEWP to all existing list pages using a feature? I could not find any examples of this.


Create List Definition Programmatically using Feature Receiver

$
0
0

I am using a Feature Receiver to create a custom content type in the FeatureActivated event.  I know know to create a list instance through code to use my content type.

What I would like to do is create a custom list definition (list template) to use my custom content type in the FeatureActiviated event.  I would like to do this entirely through C# code only (no xml files). I have been unable to find any examples of creating a list definition through code on MSDN.

Thumbnail view for Library copied from Asset Library does not work

$
0
0
Hello ,

I created list definition based on Assed Library (I copied files from \15\TEMPLATE\FEATURES\AssetLibrary\AssetLibrary ) - I reused schema.xml and other files.
Then I added my new custom content type.
The problem is following:  thumbnail view does not work now ( "/AssetLibraryDemo/Forms/Thumbnails.aspx" )
I don't have any javascript errors and any specific error in ULS log.
Can you give me advice, why thumbnail view has stopped working?

Report across list contents in all sub-sites

$
0
0

We have project portal we use for our company and each project is a subsite.  Every sub-site has an Issues list.  I would like to be able to query the Issues lists across all sites for rollups (i.e.: See how many open issues a person is assigned across multiple projects, etc.  What is the best/easiest way to do this?  My hope was to user SSRS, but it only operates on one site/list at a time, where I want be able to point to the site collection and combine the list under each sub-site for querying.  

MySiteCollection

Subsite1/IssuesList

Subsite2/IssuesList

Subsite3/IssuesList

Subsite4/IssuesList

.....

I would like the solution to be dynamic to pick up new sub-sites as they are added to SP without having to go edit the report/solution, etc.  As always, ANY help is GREATLY appreciated.

How to pass and return value in SharePoint 2013 REST

$
0
0

I am able to get all items of SharePoint list using REST API:

lists/getbytitle('listname')/items

I want to send some div id (string) in request so that can be obtained in response.
Is there any way to do that?

.net exe file to retrieve sharepoint list items

$
0
0

i need to build a exe file in .net and it has the source sharepoint list items and the items values >30 days it should retrive the email column and a link to the document.

please help.


Blitz


Workflow - Wait for field change

$
0
0

Hi All,

I am just starting to experiment with sharepoint 2013 (in office365) workflows and am running into an issue.

What I am trying to create is a sort of approval workflow in which multiple people need to approve the item. I created a column for each department that needs to approve the item and the default value for the column is 'awaiting approval'.

So the first department gets an email that they need to approve or deny the item. I want the workflow to wait for the value 'awaiting approval' gets changed and if it changes to deny stop the workflow, else go to the next department.

The problem is that 'wait for field change' does not seem to do the trick. I can tell it to wait for the field to change to approved, but if it is denied it won't go further to the denied state.

I guess there is a trick for this but I can't find it. Any ideas?

Thanks in advance,

Eddy

jQuery Tabbed UI in Sharepoint 2013

$
0
0


Hi All,

I need to implement a tabbed navigation.
Each tab will contain 1-2 grids with sharepoint list data.
I want this to be done with out post back problems.

So, I am planning to use jQuery UI tabs control and place grids. 
Can anyone suggest how to effectively implement grids in these tabs(zones)? Which grid should I use?
Can this be built in a User Control and then called in my sharepoint page? This is a CSOM model and hence I want to know the best way to implement this.

Please Suggest.

Creating a CustomDefinition XSL

$
0
0

HI,

I am trying to create a custom "Edit" link in custom list using the custom definitions.

In the list columns, I have created a column as below:

<Field Type="Computed" DisplayName="Edit Item" ID="GUID" ReadOnly="TRUE"  StaticName="CustomTestFormLink" Name="CustomTestFormLink" />

I have added fldtypes_TestRequestCustomDefinitions.xsl, which has the below XSL data:

<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"><xsl:template match="FieldRef[@Name='CustomTestFormLink']" mode="Computed_body"><xsl:param name="thisNode" select="."/><a href="/sites/Test.aspx?ItemGuid={$thisNode/@CustomItemGuid}">Edit</a></xsl:template></xsl:stylesheet>

The above code works well in SharePoint 2010 and the Edit link is shown, but the Edit link is not getting created in SharePoint 2013 custom list.

How to fix this?

Thanks


REST API Url Query

$
0
0

This is a hypothetical situation to illustrate the problem. I realize that this could likely be solved another way.

There are 3 SharePoint Lists:
PersonList -
--Name
-- AddressLookupColumn
AddressList-
-- Address
-- AddressTypeLookupColumn
AddressTypeList-
-- AddressTypeName

Using the OData spec I can do something like:

http://mysite/_api/web/getByTitle('PersonList')/items?$select=Name,AddressLookupColumn/Address&$expand=AddressLookupColumn

That will give me Name and Address. What I need is the Name, Address, and Address Type.

I think should be able to do:

http://mysite/_api/web/getByTitle('PersonList')/items?$select=Name,AddressLookupColumn/Address,AddressLookupColumn/AddressTypeLookupColumn/AddressTypeName&$expand=AddressLookupColumn,AddressLookupColumn/AddressTypeLookupColumn 

.. in order to get Name, Address, and AddressTypeName

Does SharePoint support that? If so, what am I doing wrong in my query?

Unable to associate declarative workflow with list

$
0
0

Hi,

I have a simple workflow with no arguments and no list association. After successful deployment when I openAdd new workflow window I can see my workflow under available workflow definitions. Here is where the fun part begins. When I fill up the form and hit OK I'm redirected to the same form that now list declarative workflows only and couple of settings missing. And there is no way to continue since the only available actions are Back/Previous and Cancel. After checking the ULS logs I found this entry:

System.ArgumentNullException: Value cannot be null.  Parameter name: definitionId    
 at Microsoft.SharePoint.WorkflowServices.StoreWorkflowDeploymentProvider.GetDefinition(Guid workflowDefinitionId)    
 at Microsoft.SharePoint.WorkflowServices.WorkflowDeploymentServiceServerStub.GetDefinition_MethodProxy(WorkflowDeploymentService target, XmlNodeList xmlargs, ProxyContext proxyContext)    
 at Microsoft.SharePoint.WorkflowServices.WorkflowDeploymentServiceServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPath(XmlElement xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPathId(String objectPathId)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessInstantiateObjectPath(XmlElement xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)    
 at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()
However the workflow instance is created if I specify the association in Visual Studio. My guess is that there is something messed up with Workflow Manager but I can't figure it out. Any help would be appreciated.

I want Check exist file

Display URL value as "Edit" in custom list - AllItems view

$
0
0

HI,

I have a column which contains a Note field and stores a URL.

I would like to display in the custom list "AllItems.aspx" view as "Edit" with a hyperlink for that column, so that the whole link is not visible, and a Hyperlink is shown. I have tried the below with JSLink, but the link is not getting changed.

I have tried the below code:

(function () {
    var statusFieldCtx = {};

    statusFieldCtx.Templates = {};

    statusFieldCtx.BaseViewID = 1;
    statusFieldCtx.ListTemplateType = 10003;

    statusFieldCtx.Templates.Fields = {
        "TestFormUrl": {"View": StatusFieldViewTemplate
        }
    };

    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(statusFieldCtx);
})();


function StatusFieldViewTemplate(ctx) {
    if (ctx != null && ctx.CurrentItem != null)

var priority = ctx.CurrentItem.TestFormUrl;
 
priority  = "<a href='"+ priority +">Edit</a>";
return priority;
}

How to fix this?

Thanks


SharePoint App with App.css not working

$
0
0

Hi All,

I am a SP 2013 App newbie and I am trying to get a simple App with App.css to work without any luck.

What I would like the app to do is change the colour of some list items in a list on the Default.aspx page. I know it works OK on an ASP.Net web page, but I wanted to know what I need to change to get the same code to work within a SharePoint 2013 App.

The code is shown below. I hope you can help

CEStar

**************
App.css:

.listitem_1,.listitem_3

{

color:red;

}

.listitem_0,.listitem_2

{

color:blue;

}

**************
App.js:

$(document).ready(function(){

   $("#xbutton").click(function(){

       $("li").toggleClass(function(n){

           return"listitem_"+ n;

       });

   });

});
***************

Or Edit App.js:

$(document).ready(function(){

   $("#xbutton").click((test);

});

 functiontest(){

       $("li").toggleClass(function(n){

           return"listitem_"+ n;

       });

};

**************
Default.aspx:

<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%>

<%@PageInherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"MasterPageFile="~masterurl/default.master"Language="C#"%>

<%@RegisterTagPrefix="Utilities"Namespace="Microsoft.SharePoint.Utilities"Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>

<%@RegisterTagPrefix="WebPartPages"Namespace="Microsoft.SharePoint.WebPartPages"Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>

<%@RegisterTagPrefix="SharePoint"Namespace="Microsoft.SharePoint.WebControls"Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>

<%-- The markup and script in the following Content element will be placed in the <head> of the page --%>

<asp:ContentContentPlaceHolderID="PlaceHolderAdditionalPageHead"runat="server">

   <scripttype="text/javascript"src="../Scripts/jquery-1.9.1.min.js"></script>

   <scripttype="text/javascript"src="/_layouts/15/sp.runtime.js"></script>

   <scripttype="text/javascript"src="/_layouts/15/sp.js"></script>

   <metaname="WebPartPageExpansion"content="full"/>

   <!-- Add your CSS styles to the following file -->

   <linkrel="Stylesheet"type="text/css"href="../Content/App.css"/>

   <!-- Add your JavaScript to the following file -->

   <scripttype="text/javascript"src="../Scripts/App.js"></script>

</asp:Content>

<%-- The markup in the following Content element will be placed in the TitleArea of the page --%>

<asp:ContentContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"runat="server">

   Page Title

</asp:Content>

<%-- The markup and script in the following Content element will be placed in the <body> of the page --%>

<asp:ContentContentPlaceHolderID="PlaceHolderMain"runat="server">

   <div>

       <h1>This is a heading</h1>

       <ul>

           <li>Peter</li>

           <li>Lois</li>

           <li>Chris</li>

           <li>Stewie</li>

       </ul>

   </div>

   <inputid="xbutton"value="Add/remove classes to list items"type="button"/>

</asp:Content>

************************
Original ASP.Net page:

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>

<script>
$(document).ready(function(){
  $("button").click(function(){
    $("li").toggleClass(function(n){
      return "listitem_" + n;
    });
  });
});
</script>

<style>
.listitem_1, .listitem_3
{
color:red;
}
.listitem_0, .listitem_2
{
color:blue;
}
</style>

</head>
<body>
<h1>This is a heading</h1>
<ul>
<li>Peter</li>
<li>Lois</li>
<li>Chris</li>
<li>Stewie</li>
</ul>
<button>Add/remove classes to list items</button>
*******************






Panel Navigation by metadata on Library is missing

$
0
0

Hello,

Context

- Site : Team Site (native)

- Site feature : Navigation metadata active

- Library : enable content type, enable metadata navigation.

When i open the Library, the left panel with tterm is not visible.

It works on DEV but not in PROD environment.

It seems configuration is the same both.

- Rights, masterpage, service application.

Thanbk you for your help.

restrict access to list through web part

$
0
0

Hello,

I am having a little trouble wrapping my head around a part of a project I am working on and was hoping someone might know a good solution or could look at what I have and say that one sentence that could bring this whole thing together.

Here is the scenario:

  1. I have a list located on a SharePoint site.
  2. I have a custom web part that outputs a filtered format of the list.
  3. The list cannot be accessible except through the web part. (Cannot be found through search, URL, or UI)
  4. Only one group has access to contribute indirectly (via web part) to the list.

People have suggested a proxy account/group, but if I had the web part place the current user in the proxy group, how do I remove them from the group once they leave the page?

napa and c#

$
0
0
can i use napa office 365 with c#?

read csv file and insert the data to a list in sharePoint

$
0
0

Hi everyone,

i wrote a code that reads from a csv file all his data but i need also to insert all the data to a new list in sharePoint.

 how can i do this?

plus, i need to read from the csv file once a day in specific hour. how can i do this? thank you so much!!

Viewing all 7589 articles
Browse latest View live


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