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

Editing global metadata navigation flyout text

$
0
0

I want to have every page across my SP sites make use of the ItemWrap on the metadata navigation flyouts as some sites have fairly long names and they wrap across 3 lines on the flyout.

How can I do this?  Do I need to edit the Seattle.html file in SPD 2013?  I can see 2 ASPMenu sections based on this article http://sampathnarsingam.blogspot.co.uk/2012/05/sharepoint-global-navigation.html#!/2012/05/sharepoint-global-navigation.html But I don't really know if I should edit both sections and uncomment one or not?

If anyone has any simple step by step guides please send over



Read and filter sharepoint listitems using client object model

$
0
0

Hi All,

    i having a list with items and having column name Date ,name .i need to filter othose values it date is hitting current date then it should populate in  content editor webpart using client object model

Recycle bin customization

$
0
0

Dear All,

i want to know if it is possible adding some custom field to the recycle bin view.

I've a custom list with a field called "Reference Number" that contains the title of the record and i use this column as "primary key" on my custom list to identify the record (see pictures below).

When i delete a record on the recycle bin i can see the ID of the record and i do not have an easy way to identify the record (if i want to restore it).

Is there a way to add custom field to the recycle bin?

Here you can find my Custom List

Custom List

Here you can find the Recycle Bin. Here i want to add (if possible) Reference Number column

Thanks

Massimo

How to Applying the master after migration from Sharepoint 2013 still some pages showing 2010 look

$
0
0
 How to Applying the master after migration from Sharepoint 2013 still some pages showing 2010 look

Batch Insert In SharePoint List Lookup Column

$
0
0

Hi ,

I am using below code to insert datatable into sharepoint list batch insert . It is working fine if list is not having any lookup field but Code is not working if the list is having Lookup columns..

How can I resolve the issue . Please help ...

  string strReturn = string.Empty;

            try
            {
                string BatchXMLBanner = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ows:Batch OnError=\"Continue\">{0}</ows:Batch>";
                string BatchXMLMethod = "<Method ID=\"{0}\"><SetList>{1}</SetList><SetVar Name=\"ID\">New</SetVar><SetVar Name=\"Cmd\">Save</SetVar>{2}</Method>";
                string BatchXMLSetVar = "<SetVar Name=\"urn:schemas-microsoft-com:office:office#{0}\">{1}</SetVar>";
                StringBuilder XMLSetVarLines = new StringBuilder();
                StringBuilder XMLSetMethods = new StringBuilder();
                int methodID = 0;
                string strgroupcurrency = string.Empty;

                //if (SharedUtility.CheckValidDataTable(dt))
                //{
                    foreach (DataRow row in dt.Rows)
                    {

                        XMLSetVarLines.Append(String.Format(BatchXMLSetVar, "Title", row["dID"]));
XMLSetMethods.Append(String.Format(BatchXMLMethod, methodID, guid, XMLSetVarLines));
                        methodID++;
                        XMLSetVarLines.Length = 0;
                    }
                //}
                strReturn = String.Format(BatchXMLBanner, XMLSetMethods);
            }
            catch (Exception ex)
            {
            }
            return strReturn;
        }

ADFS (SAML) + Sharepoint 2013

$
0
0

Hi,

 I am going to use claims based provider in Sharepoint 2013. But as IP-STS I would like to use database stored on Linux enviroment communicate to sharepoint through ADFS. I know that ADFS support AD and LDAP by default but is it possible to use another data source like database which works on Linux and configured with SAML ? Thanx for any help.

Query against user profile to get certain no of colleagues only not all of them

$
0
0

HI All,

I am trying to show the colleagues of current logged in user on an application page in sharepoint.

But my application page is too heavy due to a large no of colelgues of a particular user.

I want to be able to limit the no of  colleagues retured or some way to query the user profile.

Please find the code i am using below.

 cUname = SPContext.Current.Site.RootWeb.CurrentUser.LoginName;
                CurrentUname = cUname;
                currentUser = _profileManager.GetUserProfile(cUname);
                string _otherUserName = Page.Request.QueryString["accountname"];
                OtherUname = _otherUserName;
                cUname = cUname.ToLower();

                if (cUname.Contains("|"))
                {
                    cUname = cUname.Split('|')[1];
                }


                if (_otherUserName == null || _otherUserName == string.Empty || _otherUserName == "")
                {
                    _otherUserName = cUname;
                }

                if (_otherUserName.Contains("|"))
                    _otherUserName = _otherUserName.Split('|')[1];
                _otherUserName = _otherUserName.ToLower();

                UserProfile _profile = _profileManager.GetUserProfile(_otherUserName);
                Colleague[] colleague_who_iam_following = _profile.Colleagues.GetItems();
                // ViewState["UsersColl"] = colleague_who_iam_following;
                return colleague_who_iam_following = colleague_who_iam_following.OrderBy(c => c.Profile.DisplayName).ToArray();

In the above code  _profile.Colleagues.GetItems(); will get me all the colleagues. I want  only 10 colleagues to be fetched.

Ultimately i want to have lower load time of my application page. 

Please help !!!

Column header filtering not functioning for external lists

$
0
0

I have a problem with column header filtering on external lists, specific for columns of Number and Date types.

When the site's regional settings are in English (United States) filtering works fine, but if I choose any other regional setting with different number formatting (ie Dutch) then filtering on these columns gives no results.

When clicking on the column header filter dropdown, the numbers to filter on are displayed with thousands seperators where the numbers in the views are not formatted as seen in attached screenshot.

Filtering on custom sharepoint list with these regional settings is working fine, it is just on external lists, on number and date fields and regional setting is not English.

I have tried all different kind of regional settings on the client and the server, but no results.

Anybody has a clue?

Clicking on the column header shows all available filter values (with thousand seperator). Selecting one value gives no results:

No results after selecting a filter value


SharePoint 2013 Document Conversion from PDF to Word (docx) format

$
0
0

Hello all,

I know that SharePoint has the facility to convert documents from Word to PDF using the Word Conversion Service, and I've worked with it in C# using the object model.

We have a client request for the opposite process. They have an email-enabled document library that receives PDF documents...they would like these converted to Word (.docx).

I'm believe that SharePoint 2013 Word Automation Service has no way to do this (although I could be wrong); and I'm not sure of the object model either. However, in Office Web Apps you can open a PDF file in the browser, and the form has a button labeled"Edit in Word". When selected, it shows a message: "Word Web App will make a copy of your PDF and convert it to a Word document for you to edit."

Is there a way to access the SharePoint Office Web Apps object model/API in code, to do the same thing that the "Edit in Word" button does? It would be great to be able to hook into those methods, if possible.

Thanks for your help.

Kind Regards,

Kevin Worthington, Senior Consultant
Sogeti USA

Lookup Columns in subsites

$
0
0

Hey,

do you have a soloution for the following Problem:

We have a sitecollection (root) with a two lists and Sub sites which look exactly like sitecollection.

The subsites should import the data in the lists to the sitecollection by a timerjob where it gets monitored. But each subsites have ist own permissions! So noone can write to the sitecollection. Easy to solve... normally... 

We have contenttypes on the sitecollection created. then we have several subsites in the sitecollection which inherits the contenttypes. With a web-Feature i add two lookup coloumns to the contenttype and all subsites inherits the lookup columns.

The Problem here is, that all of These subsites refer to the sitecollection lists...

Programmaticially i can not Change the lookup columns on each subsite to their lists in their subsite.

How can i solve that Problem?



Not able to edit and save the visio file

$
0
0

Hello Friends,

If I open a vsio file in read-only mode, and I want to change something and save, I get the error message that the file cannot be saved because it is opened in read-only mode.

The yellow bar which usually comes with other type of files when open in read only mode doesn't come here.

The yellow bar i'm talking about goes below like this:

i Server Read Only: 

I have SCA access on the site.

I'm using IE8

I have Office 2010 on my PC

Note: this is normal,
but if you try the same with an Excel, Powerpoint or Word document, you get the
yellow bar at the top with a button to edit the document. This is very handy,
so I'm wondering why this appears for Word and Excel and Powerpoint, and not
for Visio

Can anyone please let me know what might be the cause.

Many thanks.

Prajwal

applying subquery in CAML

$
0
0

hi,

 I want to use sub query in CAML, is this possible. I want to use CAML  query in such a way that, i wanna  retrieve the  latest  item in my list.

There is a  column called Revision . which is a date column. so I want to retrieve those items from listitemcollection where

a  record with revision column value  is latest.

Display the Properties of the Document set in the set details area at the top of the page in SharePoint 2013

$
0
0

Hi,

We need to share the properties of a Document Set in the set details area of the top of the page in SharePoint 2013 site .

I have attached the screenshot below, where exactly the items needs to get displayed.

It is possible to do this manually using some steps in the document set.

In the Document Set Settings-> select shared columns->And select the same in the welcome page columns.

We need to know if it could be done programmatically.

MySite NewsFeed is not showing the feeds from a SharePoint 2013 site which followed programmatically

$
0
0

Hi Experts,

I am facing an issue with following SharePoint 2013 site programmatically. When i was followed a site programmatically, unable to see the posts from followed site in MySite NewsFeed. But i can able to see the followed site in the list of sites i am following. If i did the same manually by clicking on Follow link on right top of the site, i can able to see the posts from the followed site in MySite NewsFeed.

Here is my code. I am doing this activity in an event receiver, while adding an user to the site. 

                            SPSocialFollowingManager manager = new SPSocialFollowingManager(profile);
                            SPSocialActorInfo actorInfo = new SPSocialActorInfo();
                            actorInfo.ContentUri = new Uri(properties.Web.Url);
                            actorInfo.AccountName = targetUser.LoginName;
                            actorInfo.ActorType = SPSocialActorType.Site;
                            manager.Follow(actorInfo);

Any help would be appreciated. Thanks in advance!


dinesh

Invalid issuer or signature

$
0
0

I had deploy a MVC Provided-Hosted app on my SharePoint tenant. Now when I ask for the Index page I got the following error:

Invalid issuer or signature.
TokenHelper.ReadAndValidateContextToken

If I ask for other pages I don't get this error.

The app is manually deployed and it was registered. Any idea?

Cheers 


If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful"salvatoredifaziosharepoint.blogspot.com

Twitter: @Salvodif
MVP SharePoint Server



Advice a good book or on line source

$
0
0

Hello everyone!

In our small company we have no IT staff so I try to do my best with MS Access VBA, MS-SQL and SharePoint Online Plan 1.

Can you please advice me good book or on-line source to understand better lists, web part page and connections between parts on it?

let say, how to set Title field instead Select field to select item in order to send row to other part. Or may be possible to set a link of web part page to Title link and when it opens other web parts takes passed Title to filter web parts on page...

I found Microsoft's help very unorganized (sorry Microsoft) and mixed between versions of SharePoint. It is really hard to grasp basics.

Thank you very much!

Google Map showing blank page in Internet Explorer

$
0
0

I am using below snippet to show google map for a country in a sharepoint site page.

<div id="map_canvas" style="height: 354px; width:713px;"></div><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script><script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=initialize"></script><script>
    var directionsDisplay,
        directionsService,
        map;

    function initialize() {
        var directionsService = new google.maps.DirectionsService();
        directionsDisplay = new google.maps.DirectionsRenderer();
       


        var myLatlng = new google.maps.LatLng(-34.397, 150.644);
        var mapOptions = {
            zoom: 16,
            center: myLatlng,
            styles: [{
                "stylers": [{ "hue": "#007fff" }, { "saturation": 89 }]
            }, { "featureType": "water", "stylers": [{ "color": "#ffffff" }] },
            {"featureType": "administrative.country", "elementType": "labels", "stylers": [{ "visibility": "off" }]
            }]
        }

        map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        var marker = new google.maps.Marker({
            ,
            map: map,
            title: 'Hello World!'
        });

        directionsDisplay.setMap(map);
    }

</script>

I actually created a page and inserted a content editor webpart on a page then inserted above map snippet in a content editor webpart,now it's working perfectly in firebox and google chrome browser but it's showing a blank page in internet explorer browser,can anybody help me in displaying the map in internet explorer as well.

 

spadminV4 which could not be contacted in deployment

$
0
0

I have Sharepoint 2013 and Powershell deployment.

I execute muy ps1 script in SPS01 machine.
Farm servers are SPS01, SPS02, SPS03, SPS04.
User for deploy is UserInstallerMoss , it's Farm Administrator and only local Administrator in SPS01, not in others servers.

I call this function:

    function RestartTimerFarm
    {
        Write-Host -f Green Restarting OWSTIMER instances on Farm
        $farm = Get-SPFarm
        $farm.TimerService.Instances | foreach {$_.Stop();$_.Start();}
    } 

I get this error when its call to Stop method:

**This operation uses the SharePoint Administration service (spadminV4), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.)**

Now, I set UserInstallerMoss as local Administrator in SPS01, SPS02, SPS03, SPS04.

I get this error:

**This operation uses the SharePoint Administration service (spadminV4), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.)**


But if I execute WMI and Get-SPServer cmdlet all is OK

    $servers=Get-SPServer | where {$_.role -ne "Invalid" }
    foreach ($server in $servers)
    {
    $serverName = $server.Name
    WriteTrace("Server in Farm... " + $serverName)
   
    CheckRemoteServiceStatus -Machine $serverName -Name "SPAdminV4" -Status "Running"
    
    WriteTrace("Restarting SPTimerV4 service in server... " + $serverName)
    
    $result = (Get-WmiObject -computer $serverName Win32_Service -Filter "Name='SPTimerV4'").InvokeMethod("StopService",$null)
    Start-Sleep -seconds 2
    $result = (Get-WmiObject -computer $serverName Win32_Service -Filter "Name='SPTimerV4'").InvokeMethod("StartService",$null)
    
    WriteTrace("SPTimerV4 service restarted in server " + $serverName)
    }

This operation uses the SharePoint Administration service (spadminV4), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again. 

What's about this issue ? http://sharepoint.stackexchange.com/questions/110928/spadminv4-which-could-not-be-contacted-in-deployment

thanks


www.kiquenet.com/profesional

__REQUESTDIGEST is undefined in sharepoint hosted app ( Client WebPart ) but its working in full page app

Sahrepoint 2013 app provider-hosted SharePointHighTrustContext Object reference not set to an instance of an object

$
0
0

Salve

ho seguito la seguente guida:

http://www.sharepointpals.com/post/Step-by-Step-approach-to-create-a-Provider-Hosted-Application-in-SharePoint-2013

per far girare un app provider-hosted (con pattern MVC) su un iis local ovviamente con le dovute correzione per la Start page nell'app manifest e con i link indicati non in https ma in http.

Cmq l'app parte, sharepopint me ne chiede il trust solo che quando arriva sul metodo:

protected override SharePointContext LoadSharePointContext(HttpContextBase httpContext)
        {
            return httpContext.Session[SPContextKey] as SharePointHighTrustContext;
        }

va in " Object reference not set to an instance of an object." su SharePointHighTrustContext

Faccio presente che per la medesima app ho avviato in debug su iis express e tutto funaziona.

La app l'ho hostata nel site sulla porta 80 , come da guida e su questo iis in locale gira anche sharepoint 2013.

mi sapete dare qualche delucidazione in merito?

Saluti

Viewing all 25064 articles
Browse latest View live


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