none
Adding a Client column to timecard management template

    Question

  • Hi, I am trying to add a client column to my timecard management template but the problem is when i say "punch in" it takes me to a page where i select a task and a project but i cant get my "client" column to appear on this page. can anyone give me some advice?

    Monday, July 22, 2013 10:17 AM

Answers

  • Hi hein56,

    seems the column that you add is in hidden mode,

    perhaps this link have similar issue that you may try for the workaround:

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/65e2e439-94cd-4193-98c8-31f054830319/timecard-template-customisation

    • First you need to add the require column in the "Time Log" list .
    • After you are done with addeding a new column to list. 
    • Click on punch in  you will be redirected to punchin.aspx
    • now click on edit page, 
    • click on the edit web part, 
    • now on right hand side you will see a "XSL Editor button."
    • Copy this XSL editor paste it to any XML editor or Take to Visual studio in xML file.
    • Now you can specify the parameter you want to pick / display / insert in to the list.


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, July 24, 2013 4:16 AM

All replies

  • Hi,

    Thank you for your post.
    I'm trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thanks ,
    Entan Ming


    Entan Ming
    TechNet Community Support

    Tuesday, July 23, 2013 8:27 AM
  • Hi hein56,

    seems the column that you add is in hidden mode,

    perhaps this link have similar issue that you may try for the workaround:

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/65e2e439-94cd-4193-98c8-31f054830319/timecard-template-customisation

    • First you need to add the require column in the "Time Log" list .
    • After you are done with addeding a new column to list. 
    • Click on punch in  you will be redirected to punchin.aspx
    • now click on edit page, 
    • click on the edit web part, 
    • now on right hand side you will see a "XSL Editor button."
    • Copy this XSL editor paste it to any XML editor or Take to Visual studio in xML file.
    • Now you can specify the parameter you want to pick / display / insert in to the list.


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, July 24, 2013 4:16 AM
  • thanks a lot for your help, I'm going to try it out now and will mark as answered when im done.
    Thursday, July 25, 2013 6:24 AM
  • Hi hein56,

    thank you for your hard work,

    please let us know if there is any update regarding this.


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Monday, July 29, 2013 3:19 AM
  • still waiting on my boss to check something for me. i will mark as answered when we are done. thank you.

    Thursday, August 01, 2013 8:29 AM
  • where in visual studio do i need to go to edit the file in xml?
    Friday, August 02, 2013 1:00 PM
  • ok i managed to get the web part open in visual studio in xml, so how do i add the column to the view now?

    :) thanks

    Friday, August 02, 2013 1:23 PM
  • Hi hein56,

    to add the column to a view, perhaps you may check this method:

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spview.viewfields.aspx

    SPSite oSiteCollection = SPContext.Current.Site;
    using(SPWeb oWebsite = oSiteCollection.AllWebs["Website_Name"])
    {
       SPList oList = oWebsite.Lists["List_Name"];
       SPView oView = oList.Views["All Items"];
       SPViewFieldCollection collViewFields = oView.ViewFields;
       collViewFields.Add("Created");

       oView.Update();
    }


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Monday, August 05, 2013 2:22 AM