Using CreatedModifiedInfo in custom webpart SharePoint 2013

We've used those lines of code in SharePoint 2010 for a long time and we never had any issues with them. We've created a custom webpart and added the modifiedinfo toolbar to the bottom. Now we've moved our site from SP2010 to a SP2013 while still using SP2010
UI. So we're still in 2010 mode while this problem occurs.
internal static void AddToolBarInfo(this ToolBar toolBar, SPControlMode mode)
info = new CreatedModifiedInfo();
info.ControlMode = mode;
toolBar.Buttons.Controls.Add(info);
The control is added properly but no information are shown inside the toolbar. Somehow not many persons have used this toolbar, so I'm not able to find many informations about it. Since we've never done more than adding the control, I don't know where to
start looking when the control is not properly filled.
Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

Has anyone used the CreatedModifiedInfo before in his code?
Regards Andreas MCPD SharePoint 2010. Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.

Similar Messages

  • To show ECB in dataview webpart Sharepoint 2013

    HI
    I have to add ECB to my dataview webpart. Normally it was not feasible in 2010 but is it possible now in 2013.
    Can we add the ECB or it remains same 
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to show ECB in dataview webpart Sharepoint 2013.
    If you want to enable ECB menu on a column in dataview webpart, you need to open the SharePoint Designer 2013, select the web part, under
    <View> locate  <ViewFields> and then the
    <FieldRef Name=”Title”> or the field where you want to enable the ECB menu and then add the attribute
    ListItemMenu=”TRUE”.
    Here is a similar blog for you to take a look at:
    http://www.dhirendrayadav.com/2013/12/enabling-ecb-menu-on-custom-column-in.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I've used Project Web App on Sharepoint 2013. After clear job queue about force check-in then I've got this error. This made me can't access some pages in PWA anymore e.g. Project center, Resoure center, PWA setting, etc.

    I've used Project Web App on Sharepoint 2013. After clear job queue about force check-in then I've got this error. This made me can't access some pages in PWA anymore e.g. Project center, Resoure center, PWA setting, etc.  Who have ever found this problem,
    pls. help.
    The pop up error msg. is "Sorry, you don't have access to this page"

    Hi,
    According to your description, after you cleared job queue about force check-in then you can't access some pages in PWA.
    Maybe you need to check in the pages which has been checked out.
    If you have administrative rights, it is possible to override the check-out via the View All Site Content page:
    Site Actions->View All Site Content->Pages->Hover the item you want to check in, and from the context-menu (arrow-down next to the filename), choose "Discard Check Out"
    Besides, to troubleshooting the error “Sorry, you don't have access to this page”, refer to the following articles:
    http://sharepoint.rackspace.com/sharepoint-2013-troubleshooting-an-access-issue-with-a-custom-master-page
    http://technet.microsoft.com/en-us/library/ff758656(v=office.15).aspx
    In addition, as this issue is related to project server, I suggest you create a new thread on project server, more experts will assist you:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/home?category=project
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • When to use Managed Metadata service in Sharepoint 2013 and 2010

    Hi Folks,
    I have been working on sharepoint from quiet some time now. I have been using managed metadata service also.
    What I have not been able to find out so far is when should I be using MMS.
    What are the real advantages that I can draw out of it.
    I have one application that has Managed Metadata installed and has various terms stores and terms. 
    The Managed metadata service  created is utilized in search,
    What I do not know is what is why are we using it at all. 
    What is benefit of it.
    Managed metadata service could also be used in navigation is what i know.
    But what confused me is when is the best scenario to use it for navigation.
    Why can we not use the navigation provider in the managed metadata service. 
    There might be other uses also, but that is not clear to me.
    Can any one tell me why and in which scenario to really use it.
    I know how to configure the mms and how it works though the jargons around the managed metadata.
    Regards

    Managed Metadata has some specific advantages that make it useful for certain situations.
    A managed metadata column has the following advantages over a lookup or choice column:
    A managed metadata term set can be shared across the entire SharePoint farm, so you can use it in different site collections.
    You can set up "synonyms" so that multiple similar terms resolve to the same underlying piece of information
    Terms can be hierarchical (terms can be nested under other terms), and the SharePoint interface allows hierarchical filtering. For example, if I have a term set for Location, and one of my terms is North America, with terms below that for United States,
    Mexico, and Canada, I could choose to filter my list to show me all records with any North America location (inclusive of US, Mexico, and Canada), or to filter on a specific term (such as Mexico).
    You can allow people to enter new terms, which will then appear in the term set.
    You can specify information owners/stakeholders who maintain the term sets without them needing elevated access to sites; normally only site owners can mess with site columns and content types. Managed metadata lets you separate information management
    (what terms/synonyms should be used) from site management (granting access, creating groups and lists, etc).
    There are some disadvantages too. For example, with a lookup column, the lookup list can store additional columns of information. A managed metadata term set (on the other hand) only really stores terms (and descriptions/synonyms), but not related
    info. You might be tempted to do something like create a term set for part numbers, representing every part that your company produces; the term set would handle the part numbers just fine, but wouldn't let you add extra columns of information for
    description, weight, price, etc. In such a case, a lookup list is the better option.
    Microsoft has some suggested guidelines for when to use managed metadata/term store:
    SharePoint 2013:
    http://technet.microsoft.com/en-us/library/ee519604(v=office.15).aspx
    SharePoint 2010:
    http://technet.microsoft.com/en-us/library/ee519604(v=office.14).aspx
    A brief summary...
    Managed metadata is a good option when the potential metadata meets the following criteria:
    ​Is something for which a user will select a valid value​
    Represents information that is likely to be used multiple times
    ​Has valid values that can be organized hierarchically
    ​Includes synonyms or abbreviations that should be aggregated
    ​Can be applied in one language, but might be viewed in other languages
    Managed metadata is not a good option if the potential metadata meets any of the following criteria:
    Is represented by a built-in column (such as “last modified date”)
    ​Has an infinite number of valid values
    ​Has different valid values in each location that it is used (such as different values for the “version” attribute depending on which product team’s site the item appears in)*
    ​Has only “yes” and “no” as valid values
    *This type of metadata could still be captured in site collection-specific term stores

  • Customizing the Sharepoint 2013 inbuilt "SearchResult" webpart

     
    Acutally am working on the requirement,where i need to display the search results using Sharepoint 2013 inbuilt "SearchResult" webpart and where the results can be filtered by placing refining control in other Refiniment webpart in the same page.
    here come the question is "how i can access the displayed results in my "searchresults" webpart in my custom code.,where i have to access the path from the results on page and downloading the files based on path content.... please guys.your
    suggestions will be very helpful for my task...

    Hi,
    You can use the display templates to customize the results.  Please refer to the following article how to create the display template
    Introduction to SharePoint 2013 Display Templates
    Understanding how item display templates and hit highlighting work in SharePoint
    Server 2013
    Please mark it answered, if your problem resolved.

  • Install Web Part Using Set up file for Sharepoint 2013

    HI,
        How to install web part to sharepoint 2013 using a setup wizard.
    Suppose i have webpart for some data manipulation process so i need to make a set up for install this web part in any sharepoint system is it possible , programmatically install web part is possible any one have code regarding this or can you suggest me how
    to do this ?
    Thanks & Regards
    SUJIL KUMAR t
    Software developer

    Hi Sujilkumar,
    According to your description, my understanding is that you want to install web part wsp using install wizard.
    In SharePoint, there is no set up wizard to install the web part. If you want to install your custom web part, you can use PowerShell Commands. Before you can deploy a solution package, you need to add it to the solution database of a SharePoint
    Server farm like below:
    add-spsolution c:\yourwsp.wsp
    Then you can install the solution like below:
    Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>
    Here are some detailed articles for your reference:
    how to add a wsp webpart
    Deploy solution packages
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • AppGlobalResource File In Visual Webpart SharePoint 2013

    Hi,
    I am trying to get resource file entry in the visual web part but wen i try to deploy the solution it's showing an error as below.
    Error    14    The name 'MyResourceFile' does not exist in the current context    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MySolution\MySolution\WebParts\Test\Test.ascx.g.cs    56  
     60    MySolution
    What i did:
    I right click on my project name and choose "Add" >> "New Item"
    In the next dialog select the "Empty Element" and name it e.g. "GlobalResources"
    Now click right on the new "GlobalResources" folder (Module) and add a new resource file.
    I named it MyResourceFile.resx
    Enter some keys and values in the resource file
    In the next step click on the MyResourceFile.resx file to display the properties. Change the "Deployment Type" attribute to "AppGlobalResource".
    Now i created a asp literal control and in the text property i did the following
    <asp:Literal ID="litControl" runat="server" Text="<%$ Resources:MyResourceFile, Name %>"></asp:Literal>
    and then i tried to deplo the solution i get the following error
    Error    14    The name 'MyResourceFile' does not exist in the current context    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MySolution\MySolution\WebParts\Test\Test.ascx.g.cs    56  
     60    MySolution
    Please let me know what am i missing,actually i want to deploy my resource files under the AppGlobalResource folder.

    I am trying to get value from the resource file but not able to deploy my solution.
    I  added an empty element in my solution and then added resource file in it,after that i used to get resource file value in the mark up file like this
    <asp:Literal ID="litControl" runat="server" Text="<%$ Resources:MyResourceFile, Name %>"></asp:Literal>
    but when i build/deploy the solution i am getting the following error.
    The name 'MyResourceFile' does not exist in the current context.
    Note: I am using SharePoint 2013 and using Visual Studio 2012 Premium edition,and this issue is occuring in both sandboxed and farm solution.
    please help.

  • How to Use Team Foundation Server With SharePoint 2013 For Development

    Hi All,
    As i am new to team foundation server and i want to use team foundation server for our development. Please give me good startup point.

    Hi,
    If you wanted to integrate Team Foundation Server with SharePoint 2013,
    there are two articles for your reference:
    http://dumians.wordpress.com/2013/04/01/integrate-team-foundation-server-with-sharepoint-2013/
    http://nakedalm.com/integrate-sharepoint-2013-with-team-foundation-server-2013/
    By the way, you can also post the question in in Visual Studio Team Foundation Server forums and more experts will assist you.
    Team Foundation Server – General  http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsgeneral
    More information:
    SharePoint Products requirements for Team Foundation Server:
    http://msdn.microsoft.com/en-us/library/hh667648.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Using office web apps with SharePoint 2013

    Hi,
    I would like to use office web apps in our SharePoint 2013 environment. I would like to know if OWA has to have a dedicated server or can I install it on the SharePoint 2013 app server.
    Sherazad

    With SharePoint 2013, Office Web Apps cannot be installed on the SharePoint Server, it must be installed on its own server, not shared with any other IIS-based service (it essentially "takes over" IIS).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Pulling user/group field data from SharePoint list using REST, jQuery, Knockout.js Sharepoint 2013

    I'm trying to make an interactive task board based on the task list app in SharePoint 2013. The task lisk includes fields like "Title","Description","Status","% Complete","Due Date","Assigned To",
    etc. I used knockout.js to bind "Title","Description", and "Status" to my HTML controls. Here is some of the code:
    var ViewModal = function(items, listname){
    var self = this;
    self.sortBy = ko.observableArray(sortBy);
    self.tasks = ko.observableArray(items);
    self.listname = ko.observable(listname);
    self.auto = ko.observable(false);
    self.getTasks = function() {
    clearTimeout(self.getTasks);
    // server relative url to REST service endpoint
    var ajaxurl = _spPageContextInfo.webServerRelativeUrl + "/_vti_bin/listdata.svc/" + self.listname() + "?$orderby=PriorityValue";
    $.ajax({
    type: "GET",
    url: ajaxurl,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    cache: false,
    processData: true,
    success: function (data, status, xhr) {
    if (status == "success" && data) {
    ko.mapping.fromJS(data.d.results, mapping, self.tasks)
    $(".task-item").draggable();
    error: alert
    if (self.auto()) {
    setTimeout(self.getTasks, 10000);
    <div class="tasks-column">
    <div class="column-header">Not Started</div>
    <!-- ko foreach: tasksNotStarted -->
    <div class="task-item">
    <div class="view" data-bind="visible: !IsEditing()">
    <button class="edit" data-bind="click: $root.editTask">edit</button>
    <h2><span data-bind="text: Title"></span></h2>
    <div data-bind="html: Description"></div>
    <span data-bind="text: PriorityValue"></span>
    </div>
    <div class="edit" data-bind="visible: IsEditing">
    <button class="save" data-bind="click: $root.saveTask">save</button>
    <input type="text" data-bind="value: Title"></input>
    </div>
    </div>
    I'm having trouble displaying the data from the "Assigned To" user/group field. I tried:
    <span data-bind="text: AssignedTo"></span>
    But it displays the field as [object Object]
    I tried using $select/$expand
    ?$select=Title,AssignedTo/Id,Assignedto/Title&$expand=AssignedTo/Id,AssignedTo/T‌​itle";
    But it still returns the [object Object]

    Hi,
    Please use the REST URI below:
    /_api/lists/getbytitle('ListName')/items?$select=Title,AssignedTo/ID,AssignedTo/Title&$expand=AssignedTo/ID,AssignedTo/Title
    More information for your reference:
    How to get User Details and User Group Details in SharePoint 2013 REST API with Knockout for SharePoint Js (KoSpJs)
    http://www.ashokraja.me/post/How-to-get-User-Details-and-User-Group-Details-in-SharePoint-2013-REST-API-with-Knockout-for-SharePoint-Js-(KoSpJs).aspx
    How to Get Login Name and Display Name using SharePoint 2013 REST API
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/how-to-get-login-name-and-display-name-using-sharepoint-2013-rest-api.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Not able to use sky drive pro for sharepoint 2013

    Hi Friends,
    recently i have updated my sharepoint farm to sharepoint 2013 from sharepoint 2010.. due to some reasons I have not visually upgraded a site to sp2013 visual effects but all other sites have been visually upgraded. now, when I try to sync the doc lib
    of the site(which is not visually upgraded) I get an error saying this site is running in sp2010 mode hence we cannot sync this doc lib using sky drive pro....I tried to sync it using sharepoint workspace also but still no luck.can any one help me?
    this same doc lib is getting synced to my friend system but not my system.i dunno why.please help

    Hi,
    Yes, it is expected that we cannot sync SharePoint 2010 sites (non-upgraded) with Sky Drive Pro because of the October 2013 update to SkyDrive Pro (KB2825633). However, it should be OK with Sharepoint Workspace.
    I will have a test to check how to sync in this scenarios. In the meanwhile, you can also create a service request with Microsoft on this product issue and they will provide fast help.
    SkyDrive Pro update enforces SharePoint version requirement
    http://blogs.technet.com/b/sharepointclient/archive/2013/11/06/latest-skydrive-pro-update-enforces-sharepoint-version-requirement.aspx
    You can't sync a SharePoint 2010 library to OneDrive for Business 2013http://support.microsoft.com/kb/2904784
    Miles LI TechNet Community Support

  • Error In Visual WebPart SharePoint 2013

    So I was creating a SharePoint 2013 visual web part on Visual Studio 2012 and came to this problem. Visual Studio automatically creates WebPartUserControl.ascx.cs and WebPartUserControl.ascx.g.cs. the WebPartUserControl.ascx.g.cs is generated automatically
    when you edit the WebPartUserControl.ascx file. So I've added a couple of ContentTemplate tags into .ascx file and Visual Studio generated this code in WebPartUserControl.ascx.g.cs :
    public partial class WebPartUserControl {
       public static implicit operator global::System.Web.UI.TemplateControl(AjaxVisualWebPart target)
           return target == null ? null : target.TemplateControl;
    When I try to deploy the solution, Visual Studio underlines the implicit operator
     global::System.Web.UI.TemplateControl and
    I get this error:
    Namespace.WebPart.WebPartUserControl.implicit operator
    System.Web.UI.TemplateControl(Namespace.WebPart.WebPartUserControl)':
    user-defined conversions to or from a base class are not allowed
    I don't even imagine how to solve this even though im struggling on this issue for a couple of hours now... Can somebody help me, please? I assume I have to add something to the .ascx file or to WebPartUserControl.ascx.cs maybe? Thanks in advance!

    Hi somu1,
    I suggest you check if the parameter is valid in the function.
    By default, the parameter is the same as you class name like below:
    public partial class HelloWorldWebPart {
    public static implicit operator global::System.Web.UI.TemplateControl(HelloWorldWebPart target)
    return target == null ? null : target.TemplateControl;
    Here is a detailed code demo for your reference:
    A look at Visual Web Parts in Visual Studio 11
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • How to Create Power View Report using power pivot file in SharePoint 2013

    H,
    I have power pivot and Power View excel files. Now i want to create the Power View report in SharePoint 2013.
    What steps should i use?
    Can anyone help me on it.
    I need detailed step by step procedure.
    Thanks & Regards
    Poomani Sankaran

    Hi Aditya,
    Thanks for your reply.
    I am using Enterprise edition of SharePoint 2013 only. SQL Server 2012 SP1.
    I have configured Reporing Services also successfully. I got "Reporting" folder in "15" hive location "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\WebServices"
    SSRS Service application also i have created success in CA Manage Service Application.
    I have done "Reporting Services Add-in for SharePoint" also which is "rsSharePoint.msi".
    What should i do apart from this? Can you tell me. Its frustrating like anything. 
    I have added the "PowerPivot" excel in "PowerPivot Gallery" and clicked the icon "Create Power View Report"
    Thanks in Advance.
    Poomani Sankaran

  • How to retrieve the users that are following a document using JSOM / REST APIs in SharePoint 2013

    Hi everyone,
    Does anyone know how to use JSOM / REST APIs to retrieve the users that are following a specific document in SharePoint 2013? 
    Thanks in advance,
    Nam

    Hi Nam,
    Please use the sample code to get the followers for the document. Courtesy: Mokhtar
    Bepari 
    using Microsoft.SharePoint.Client;
    using Microsoft.SharePoint.Client.Social;
    ClientContext clientContext = new ClientContext("http://URL");
    SocialFollowingManager followingManager = new SocialFollowingManager(clientContext);
    SocialActorInfo actorInfo = new SocialActorInfo();
    actorInfo.ContentUri = "<documenturl>"; //set the document url.
    actorInfo.ActorType = SocialActorType.Document;
    //By using the GetFollowed method you can get the people who the current user is following.
    ClientResult < SocialActor[] > followedResult = followingManager.GetFollowed(SocialActorTypes.Users);
    //By using the GetFollowers() method you can get the people who are following the current user.
    ClientResult < SocialActor[] > followersResult = followingManager.GetFollowers();
    clientContext.ExecuteQuery();
    Once you get the resultset you can iterate like below:
    foreach(SocialActor actor in followedResult)
    string name = actor.Name;
    string imageURL = actor.ImageUri;
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Captcha in Visual Webpart SharePoint 2013

    I want to insert a captcha control like below in my visual web part in sharepoint 2013.
    Please suggest how can i achieve this.

    Hello,
    Hope the below link helps you
    http://recaptchaforsp.codeplex.com/
    http://www.etechplanet.com/blog/create-captcha-image-using-c-and-aspnet.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • Apps Wish List

    Can we have something like what's on the Archos Forum (NOT Oxford educated you know) where users can submit a wish list and specs for apps ? This way apps writers could address specific wants, rather than write an app then find a market for it Admitt

  • How to see if invisible program is running in background?

    Hello, I'm trying to help my friend who has an iMac running Snow Leopard (10.6.8). Her email and Facebook keep getting "hacked", and even though she changes the passwords to long and complex things that nobody could ever guess, someone is still able

  • How to display " ****" in a TextField?

    Hello, How do I make a TextField to behave like a password field. i.e when the user enters some text into it the textfield, the text should be displayed in the form of " ****** ". Can any one help me by giving some source code? Thanks [email protecte

  • Disposition of Jquery Mobile 1.3.1 in Dreamweaver CC.

    Disposition of Jquery Mobile 1.3.1 in Dreamweaver CC. Dreamweaver CC is not updated with the last version of Jquery Mobile 1.3.1. Please, present in your Adobe DW Support Center an Extension similar to the extension for "jQuery Mobile 1.0 Extension f

  • [multi-booting] editing grub post-install

    Hey everyone, i'm installing Arch as a tertiary OS on one drive (w/ XP and Ubuntu). In the installation i skipped writing the bootloader to the MBR as I don't want to lose boot data on the existing grub menu. I know I could manually edit them in late