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

How to get Result Count Content By Search Webpart (ContentBySearchWebPart)?

$
0
0

I'm writing a webpart that extends the out of the box ContentBySearchWebPart.

Does any one know how to get the search result count from this webpart?

I did not find any property?


copy sharepoint 2013 subsite names to top level site list

$
0
0
How could I copy sharepoint 2013 subsite names to a top site list by using workflow?

Sharepoint 2013 Infopath form Date Picker causes screen to move shift to the top in non-IE browsers

$
0
0
I created a list in Sharepoint 2013 that has a date field. I then created an Infopath form that has that date field in there. When I go to insert a new item in the list, clicking on the datefield brings up the calendar control. In IE the page doesn't move, in non-IE browsers it moves the page to the top. Is there a fix for this?

Document Set Modified By and Modified Date are getting updated to Current System Date and System Account automatically

$
0
0

Document Sets Modified By and Modified Date are getting changed to Sytsem Account and System Date respectively once a specific OOTB Timer Job named "Document Set Template Update Job"gets executed. It changes these values for document sets only but it does not change anything to the documents which are part of those document sets.

We want to preserve the actaul values of modified by and modified date at Document Set level as well.

This is only happening to those document libraries which have been created using a custom document library template.

After creating the document library using the custom library template, we are also adding Document Set and one more custom Content Type to it.

Can we prevent this happening ?

Thanks in advance.


Thanks, Bhadr :) Mark as Answer if it solves your problem. Vote As Helpful if the post is helpful for you.

"Thoroughly" Remove App from SharePoint Online Site Collection

$
0
0

I have a SharePoint Online client who has a legacy version of our App (old ClientID & Secret).  

The app was installed to the client's tenant using /_layouts/15/appregnew.aspx with a beta version of the ClientID & Secret.

Since this tenant we have created a Microsoft Seller Dashboard account and registered a "production" ClientID & Secret.

We would like to migrate our Beta client to the updated ClientID & Secret.  Steps we have taken:

1. Uninstall app from site collection https://ourTenant.sharepoint.com using "remove this app" link

2. Re-install app to app catalog with updated ClientID & Secret

3. Attempt to re-install app to site collection https://ourTenant.sharepoint.com

We get "something went wrong" using these steps.  On a fresh site collection the app installs without error.

This technet articledescribes how to remove app instances using Powershell, but since we are on Office 365 obviously we don't have access to these cmdlets.

Is there a path to "upgrade" a SCs app to new ClientID & Secret?

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

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 

MIxed mode authentication using csom

$
0
0

I have a requirement where i use both Windows authentication as well as form based authentication.

I have already developed a web site in asp.net.. with csom to interact with sharepoint 2013 site.

now i want to use it with authentication user can login with windows credentials or form credentials of sharepoint site how do i pass credentials to my csom application to get data.


Ranjith


using c# in sharepoint pages needing calls to dll

$
0
0

Which is the way forwards for me?

To use SharePoint Designer or to use Visual Studio (new Project, SharePoint 2013 - Empty Project) or ... ?

This is where I am at right now...

Until now I have only developed desktop applications and custom dll's for use with desktop applications. I have not needed to step in ASP/ASPX/ASPXC. I may need to, depending on the replies to this post.

The company I work for have recently implemented SharePoint. We have also recently implemented a document management system. I immediately got the SDK for the DMS ready to develop any additional custom solutions.

The DMS does have additional modules for making SharePoint pages. We will get that in the next financial year. I wanted to access a file from the DMS by referencing from a link in a SharePoint page. I got it right. I did so by using a unique file extension to the reference info needed. My unique file is just a text file with project ID and file ID. The unique file extension causes the browser to prompt the user to assign an app to the extension. User assigns extension to my custom EXE that uses the DLL's of the DMS. And ... the file in the DMS is checked out and opened.

But this is ugly (in my opinion). Surely I could place the c# code I used in my custom EXE within SharePoint.

Correct? But what is the correct way to do it? Maybe my ugly method is actually the best method?

Here is an example of the DLL call that will be needed

[DllImport("....dll", CharSet = CharSet.Unicode)]
public static extern int ...(bool ...);

Thanks for reading.

Kevin.

Updating the SharePoint hosted app in Office 365

$
0
0

Hello,

We have created Office 365 SharePoint app recently. After 6 weeks of publishing to production we have identified an issue and want to update the app. Can someone please help us how to do that? We have seen articles which mention the changes in the manifest file under <VersionRange> etc. But, when we have tested that in the local server by following all those steps from MSDN and some blogs, we see the app is completely retracted first and then it creates a new instance in SharePoint environment. Can someone help how to update the SharePoint Hosted App?

thanks

-Praveen.

Authentication in sharepoint

$
0
0

Hi,

I have ADFS trusted provider on sharepoint 2013 on-premises environment. Is there a way to authenticate user using restAPI/webservices like the way we use authentication.asmx in forms based authentication?

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.

SharePoint 2013 - Search has encountered a problem

$
0
0

Hello,


Hoping someone can point me in the right direction. I recently installed SharePoint 2013 on a new Windows Server 2008 VM with sql 2012 and 10GB memory.

I'm having issues getting search to work and have looked at various online articales regarding re-creating the search application and looking to see if the URL in the crawling menu is correct.

The issue I'm facing is after searching I get presented with the generic error "Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator."

I have done a full crawl and rebuilt our enviroment to try get rid of this issue. A full crawl for a small site is taking around 21 hours. however it's showing 357 searchable items. 

Let me know if you need any more details.

Thanks.

SharePoint Provider Hosted App and Web API

$
0
0

Guys It seems to be a very trivial question, but I am struggling to find the answer. So, let's say I have a provider hosted app and this app is going to be just a single page application, as I am going to create a Visual Web Part. I want to use a web api as this will help me to get the interface working really well, let's say creating a method which return list items and call it from ajax. The thing is I am not able to get the context, when I call web service.

The only way I found is to get a refresh token when the app is loaded and store that refresh token in some hidden input field. After when making an ajax call, pass that refresh token as a parameter, and using the refresh token get an accessToken and complete the operation. But, I am sure there is a better way of doing it.

Any clue?

Thanks

Nick

Hide / Remove Content Search Webpart when no results returned

$
0
0

Hi SharePoint friends

I'm looking to find a way to hide the whole Content Search webpart (including the webpart title and border area) if there are no results coming back from the query.

What I tried

1. There is this property: "ShouldHideControlWhenEmpty" but it doesn't do anything when there are no results. The webpart is still visible. Webpart has a the Title and the Border around it so when there are no results the title and the border show up with no results. Like I said I want to hide the whole thing in that case.

2. Wrote a jQuery script that searches for the text "There are no results" message (which comes from the webpart when there are no results) and hides the webpart. However, there is a short flicker once the page loads because the webpart first gets rendered for a split second and then disappears by virtue of my jQuery script - which is not great UI experience.

3. So I thought I could extend the OOTB ContentBySearchWebPart and get a hold of some kind property that would get me the result count. If the results count is 0 simply I would hide the webpart server side. I looked at the documentation online - nothing I could find that I could leverage.

Help? Thanks!


Migrate SharePoint List data from one SharePoint instance to another using SSIS/CodePlex Adapter

$
0
0

Hi All,  I have a business requirement to migrate SharePoint List data from one SharePoint instance to another SharePoint instance. (Lists are not in the same Site Collection/Web App, but completely separate instance).  I've been experimenting with SSIS and the Source and Destination adapters on CodePlex and I think I'm very close.  However, there are a few important columns that are not coming over properly and that is the SharePoint "Choice" column type with "Checkboxes (allow multiple selections)".

As you could imagine the data in those columns cover over, but not properly even when the destination column is also a lookup with the same options.  It looks something like this when multiple selections are in a single column: 2, OptionA, 1, OptionB

I have basic experience with SP Designer and SSIS and am more on the Admin side, not development.  I realize this wouldn't be fully supported by Microsoft, but we do need to migrate this data somehow.

Any help is much appreciated. Thanks!

Correctly set profile picture in SharePoint Online

$
0
0

Hi

It is my understanding that SharePoint Online user with an Outlook mailbox will automatically have their Outlook picture synced to SharePoint Online. It also appears that the picture upload mechanism in SharePoint Online MySites changes depending on whether the user has an Outlook mailbox. For users with an Outlook licence, the MySite displays a link to the Outlook photo upload dialog, presumably due to the sync process. For users with no Outlook licence, the MySite displays an upload button to set the image in SharePoint.

As a developer, I wish to provide a custom interface which allows the user to set their profile picture. If I upload directly to SharePoint then the picture can be overwritten by the Outlook picture. If I launch the Outlook photo upload dialog page then this fails for users who do not have an Outlook licence.

Presumably I need to implement some logic to determine which upload method to use. What is the recommend approach?

SharePoint Online development and customization

$
0
0

hi,

I am working on an office 365 SPO project of workflow mngt and I am using SPD2013 i have three questions:

1- I created two aspx pages on SDP deployed succeffuly but on the SPO plateform i dont have the ribbon which contains page browse share (..) to custumize my SPO site 

2- When I am trying to edit workflow how may I  manage the users involved once I didnt creat them on my SPO site ( because I think that i must manage this using the ribbon whish I dont know why it's not showing in site I created  Am I missing something ?? 

3- how to add several office 365 features on my site ? 

any recommandations I will be grateful 

thx

How to Customise Quick Launch in Blog

$
0
0

Hi All,

I am trying to customise the css for the quick launch on a blog site and cannot get the text on hover color to display correctly?

I have also tried using a theme (built with the palette tool) and the navigationhover text also doesn't display even though it is set and saved in the tool.

Can anybody give me some pointers.

Thanks in advance.

How to remove duplicate template names in central admin - Sharepoint 2013

$
0
0

Hi Guys,

I can see some duplicate site templates in central admin (SharePoint 2013).

How can i remove it? Please help me out on this.

Regards,

Krishna

Viewing all 25064 articles
Browse latest View live


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