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

Bottom align menu on public site using CSS

$
0
0

I am working on the design of a public site and am attempting to get the navbar menu to bottom align so that it sits neatly on top of the content zone below and is bottom aligned with my logo.  I'd like to accomplish this using CSS.  You can see the public site here to get an idea of what I'm trying to accomplish: www.threebearsrealty.com

I've already determined that I can use the css below to align the logo and text on top of the slider zone, but it then cuts off the top of the logo.

.navbar-header {margin-top: -60px !important;} //aligns logo and txt and menu, but cuts off top of the logo


Creating a Custom Team Site Template for Publishing Site Collection

$
0
0

Hi ,

I am creating a custom Team Site template using Web Template (sandbox solution). It's working if i deploy this solution on a Team Site site collection but not working with Publishing type site collection.

Please help.

Thanks in Advance!


Neetu Tanwar Software Developer

Creating a Custom Team Site Template for Publishing Site

$
0
0

Hi ,

I am creating a custom Team Site template using Web Template (sandbox solution). It's working if i deploy this solution on a Team Site site collection but not working with Publishing type site collection.

Please help.

Thanks in Advance!



Neetu Tanwar Software Developer

Fail when deploying custom webtemplate

$
0
0

 have created a webtemplate from an existed sitecollection by useing(save as template). i imported this template to VS and changed some things in Element.xml and onet. Now when i trying to applythis template to a sitecollection i got an error.

here is the error message:

"System.FormatException: Input string was not in a correct format. at
Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionListInstances(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at

Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)     at
Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)     at
Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, Boolean fIgnoreMissing, SPFeatureDefinitionScope featdefScope)     at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedCore(SPSite site, SPWeb web, String sFeatures, Boolean fMarkOnly, Boolean fIgnoreMissing)     at
Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass7.<EnsureFeaturesActivatedAtWeb>b__6()     at
Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at
Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtWeb(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, String sFeatures, Boolean fIgnoreMissing)     at
Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId)     at
Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId)     at

Microsoft.SharePoint.SPWeb.ProvisionWebTemplate(SPWebTemplate webTemplate, String webTemplateToUse, SPFeatureWebTemplate featureWebTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors)     at
Microsoft.SharePoint.SPWeb.ApplyWebTemplate(SPWebTemplate webTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors)     at
Microsoft.SharePoint.ApplicationPages.TemplatePickerUtil.ApplyWebTemplateAndRedirect(SPWeb Web, String strWebTemplate, Nullable`1 bSharedNav, Boolean bOnTopNav, Boolean bOnQuickLaunch, Page page, Boolean bDeleteOnError, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors)     at
Microsoft.SharePoint.ApplicationPages.TemplatePickPage.BtnSubmit_Click(Object sender, EventArgs e)     at
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

pagination not working in display item webpart sharepoint designer 20013

$
0
0

Pagination not working in display item webpart sharepoint designer 20013.

on clicking the next page link, it does not work. Please advise.

permissions on WebParts via Code (Visual Studio- C#)

$
0
0

Hi all,

I have View with 2 webparts on the view

in the properties for the first webpart I set audience: G1-Group

that mean all users in the G1-Group can see the webpart..

in the properties for the second webpart I set audience: G2-Group

that mean all users in the G2-Group can see the webpart..

But some of users are in BOTH-Groups in G1- & G2-Group

how can I achieve this?

I want that users where are in both groups see only Second Webpart

P.S. I want do that only via Code (Visual Studio- C#)

thanks in advance
BR
Ahmad


SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

read and write excel sheet data from uploded file in sharepoint site programmatically 2013

$
0
0

hi sir,

  I am  working on sharepoint 2013. I want 

read and write excel sheet data from uploded file in sharepoint site programmatically 2013


vijay

Drag and Drop Control Not Working - IE 11

$
0
0

A user with MS Office 2013 properly installed/configured and 32-bit Internet Explorer, is getting an "x" in place of drag & drop control while uploading files to SharePoint document library. What could be the problem?

Any pointers?




Is there any way to get Excel Web Access webpart with out using Sharepoint Enterprise licence?

$
0
0
 

Hi ,

Currently in our organization we are using SharePoint 2010 Server with Standard Client Access License. I have a requirement to show excel workbook in a webpage.

I found some articles that we have to use enterprise license to get this feature. Is there any way I can achieve this without using enterprise license?

But fortunately or unfortunately I am able to create enterprise service applications like excel services, BDC etc.. with Standard Client Access License but not web parts like Business Data, Filters etc..?

Please help me to clarify on this.

Thanks.



Client Side Object Model Query

$
0
0

Hi,

I have following Script:

ExecuteOrDelayUntilScriptLoaded(loadRoadMap, "sp.js");


function loadRoadMap()
{

    var currentCtx = SP.ClientContext.get_current();
    var currentWeb = currentCtx.get_web();
    this.roadmapList = currentWeb.get_lists().getByTitle('Roadmap');
    var camlQuery = new SP.CamlQuery();
    this.collListItem = roadmapList.getItems(camlQuery);
    currentCtx.load(collListItem);
    currentCtx.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded),
        Function.createDelegate(this, this.onQueryFailed)
    );

}

function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
      
    

    while (listItemEnumerator.moveNext()) {
        var oListItem = listItemEnumerator.get_current();
        var projectUrl = oListItem.get_item('ProjectURL').get_url();
        listItemInfo += '<tr><td>' + oListItem.get_item('Roadmap_x0020_Project') + '</td><td>' + getStatus(projectUrl) + '</td></tr>';
        $('#statusTable').append($(listItemInfo));
    }

}

function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
        '\n' + args.get_stackTrace());
}


function getStatus(project) {
    var crossSiteContext = new SP.ClientContext("http://mytestsite.com/it");
    var crossSiteWeb = crossSiteContext.get_web();
    this.dashboardList = crossSiteWeb.get_lists().getByTitle('dashboard');
    var projectQuery = new SP.CamlQuery();
    projectQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name=\'Project\'/>" + 
        "<Value Type=\'URL\'>"+ project +"</Value></Eq></Where></Query>" + 
        "<RowLimit>10</RowLimit></View>");
    this.statusItem = dashboardList.getItems(projectQuery);
    crossSiteContext.load(statusItem);
    crossSiteContext.executeQueryAsync(
        Function.createDelegate(this,  this.onStatusQuerySucceeded),
        Function.createDelegate(this,  this.onStatusQueryFailed)
        );
}


function onStatusQuerySucceeded(sender, args) {
    var projectItemInfo = '';
    var projectItemEnumerator = statusItem.getEnumerator();
    while (projectItemEnumerator.moveNext()) {
        alert("Success");
        var statusItem = projectItemEnumerator.get_current();
        projectItemInfo += '\nID: ' + statusItem.get_id() +
            '\nStatus: ' + statusItem.get_item('Project_x0020_Status').Label;
      }
 
}


function onStatusQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
       '\n' + args.get_stackTrace());
}

When I debug this code, I am getting following error:

Uncaught TypeError: Cannot read property 'getEnumerator' of undefined  on below line

 var projectItemEnumerator = statusItem.getEnumerator(); 

I am not sure where the problem lies. Can anyone please help?

Thanks.

difference between windows based authentication and form based authentication and claim based authentication in sharepoint

$
0
0
Hi,

I am new to DotNet and Sharepoint and I want to understand difference between 

 - windows based authentication
 - form based authentication
 - claim based authentication
Or if any of the above are identical.

Sharepoint Out of the Box as Business Process Management (BPM) Tool

$
0
0
How Sharepoint  out of the box can be used as Business Process Management  tool? Like we have K2.

The web server http://mysites/sites/test does not to have Microsoft SharePoint Foundation Installation

$
0
0

<p>Hi All,</p><p>Whenever i am trying to open my SharePoint 2013 site in Microsoft SharePoint 2013 Designer. I am encountering with error "The web server http://mysites/sites/test does not to have Microsoft SharePoint Foundation Installation "

I have gone through some blogs and URLs that show like i need to set Client Integration for Web Application, But i found that all the settings are at place in Site and Web application.

Still, i am facing this issue. Can anyone suggest me the solution for this?

Thanks in advance!

Picture Margins in Browser Organization

$
0
0

Hi, We have a question about pictures in organization browser. When we see pictures in organization brower, pictures have right, left and lower margins. Top level and Low level of pictures apears ok. Attach one picture.

You can viewtheadjustedphotoframe fromSharePoint?

Thanks in advance

Oscar.

change the content type of a page layout issue

$
0
0

I have a page layout which is using content type A, A  contain a field control, let's say a summary link control in it, so when people edie page layout, they can type in summary link, however someday we decided to switch to use content type B for my page layout, and content type B does not have summary link field control but have some other fields we needed, I can switch content type either from the UI or code, and I tested the page layout , created some testing page, it still working fine, the summary link control still can save the data, even though content type does not have it.

It looks like it still working fine and meeting our requirement, but i wondered if there is any potential issues?


client Side object model calling two functions

$
0
0

Hi,

Here is my use case. I have case, where I make a JSOM call to return some fields from a list and then I need to use one of these returned fields as argument and make another JSOM call. Below is the script I tried. I pass a field into getStatus function but my second JSOM call returns an error:

Uncaught Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Script

var roadmapList;
var collListItem;
var dashboardList;
var statusItem;

ExecuteOrDelayUntilScriptLoaded(loadRoadMap, "sp.js");

function loadRoadMap()
{

    var currentCtx = SP.ClientContext.get_current();
    var currentWeb = currentCtx.get_web();
    this.roadmapList = currentWeb.get_lists().getByTitle('Roadmap');
    var camlQuery = new SP.CamlQuery();
    this.collListItem = roadmapList.getItems(camlQuery);
    currentCtx.load(collListItem);
    currentCtx.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded),
        Function.createDelegate(this, this.onQueryFailed)
    );

}

function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();

    while (listItemEnumerator.moveNext()) {
        //alert("Success");
        var oListItem = listItemEnumerator.get_current();
        var projectUrl = oListItem.get_item('ProjectURL').get_url();
        listItemInfo += '<tr><td>' + oListItem.get_item('Roadmap_x0020_Project') + '</td><td>' + getStatus(projectUrl) + '</td></tr>';
        $('#statusTable').append($(listItemInfo));
    }
    
}

function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
        '\n' + args.get_stackTrace());
}


function getStatus(project) {
    var crossSiteContext = new SP.ClientContext("http://myanothersite.com/it/");
    var crossSiteWeb = crossSiteContext.get_web();
    this.dashboardList = crossSiteWeb.get_lists().getByTitle('Dashboard');
    var projectQuery = new SP.CamlQuery();
    
    projectQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name=\'Project\'/>" + 
        "<Value Type=\'URL\'>"+ project +"</Value></Eq></Where></Query>" + 
        "<RowLimit>1000</RowLimit></View>");
    this.statusItem = dashboardList.getItems(projectQuery);
    crossSiteContext.load(statusItem);
    crossSiteContext.executeQueryAsync(
        Function.createDelegate(this,  this.onStatusQuerySucceeded),
        Function.createDelegate(this,  this.onStatusQueryFailed)
        );

}


function onStatusQuerySucceeded(sender, args) {
    var projectItemInfo = '';
    var projectItemEnumerator = statusItem.getEnumerator();

    while (projectItemEnumerator.moveNext())
    {
        var curstatusItem = projectItemEnumerator.get_current();
        projectItemInfo += '\nID: ' + curstatusItem.get_id() +
            '\nStatus: ' + curstatusItem.get_item('Project_x0020_Status').Label;
      }
 
}


function onStatusQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() +
       '\n' + args.get_stackTrace());
}

Create and Update SharePoint Pages using Office word

$
0
0

SharePoint 2013 has nice feature to create and edit blogs using MS Office word :

my project required the same functionality but for SharePoint content pages. from where I can start to build something like this?

Thanks 

update item in list using rest api - failed when browsing in juniper session

$
0
0

this issue is about browsing to an on premises sharepoint 2013 inside a LAN using Juniper session

the user can see everything and can create new list items with rest api butcannot update existing items using the function below.

we've got this function which we use to update list items in rest

it works like a charm when browsing inside the LAN

function updateListItem(itemIdentityField, itemIdentity, listName, siteUrl, item, success, failure) {

    getListItemWithId(itemIdentityField, itemIdentity, listName, siteUrl, function (data) {

        $.ajax({
            url: data.__metadata.uri,
            type: "POST",
            contentType: "application/json;odata=verbose",
            data: JSON.stringify(item),
            headers: {"Accept": "application/json;odata=verbose","X-RequestDigest": $("#__REQUESTDIGEST").val(),"X-HTTP-Method": "MERGE","If-Match": data.__metadata.etag
            },
            success: function (data) { success(data, callBackIndex, null) },
            error: function (data) {

                getError(data);

            }
        });
    }, function (data) {
        failure(data);
    });
}

the error i get in ULS log is:

Original error: Microsoft.SharePoint.Client.InvalidClientQueryException: The parameter __metadata does not exist in method GetItemByStringId.
 at Microsoft.SharePoint.Client.MethodInformation.GetParameter(String parameterName)
 at Microsoft.SharePoint.Client.ClientCallableEdmModelBuilder.CreateFunctionImportForMethodBodyParser(MethodInformation clientMethod, List`1 parameterNames, ProxyContext proxyContext)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBody(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBodyOrQueryString(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.CreateMethodArgumentsUsingNamedParameters(MethodInformation methodInfo, IList`1 parameterList, Boolean isLeafSegment, Boolean allowPostBodyAccess)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()
 at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()
 at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)

Any help?

Somebody?

Thanks

RequiredFieldValidator in Sandboxed

$
0
0

Hi

Is it possible to use asp:RequiredFieldValidator inside sandboxed webpart? I'm using Power Tools to add a sandboxed visual web part then when I use asp:RequiredFieldValidator in the user control the Submit button cause a postback and ignore all the validators.
I tried with and without ValidationGroup and it never work.


I am too late but i will never give up

url tokens in content editor webpart

$
0
0

Hi,

Is there a way to set the content link property of content editor webpart to use URL tokens that SharePoint provides?

for eg: ~site/SiteAssets/Scripts/mycewp.txt

Please help. I don't want to hardcode URL for this. I always want it to point to the Site assets library.


Viewing all 25064 articles
Browse latest View live


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