none
Can I update Project Field value via some javascript? RRS feed

  • Question

  • Hi there,

    I've a webpart that's designed to update some project field value, this webpart is  located on a Project Details Pages.

    On this project details page, there is another MS Build-in webpart call Project Field webpart.

    Now when I clicked the Save ribbon button, the project field webpart will raise some client calls, at the same time my custom webpart will raise a post-back(update value via PSI) call which will kill the client calls..So is it possible for me update the project filed value via some javascript? so I'll no longer raise a postback. Or is it possible for me to capture the client calls event for MS webpart, then I can fired my own PSI code?

    Thank you,

     

    Regards,


    Joe
    • Moved by Wayne Fan Tuesday, September 14, 2010 3:55 AM It's Project Server issue, thanks. (From:SharePoint 2010 - Using Visual Studio with SharePoint and other programming)
    Wednesday, September 8, 2010 10:51 PM

Answers

  • Hi Wayne,

    I've getting other feedback that says ECMA scripts are not meant to be used for update project data. Do you agree?

    Please refer this:

    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/thread/be82b45f-3716-434c-84c6-9f139b29b7ca/

     

    HansH. _

    Updating a project is done either through Microsoft Project (where you can use macro's or an add-in to manipulate data) or using PSI.

    ECMA scripts are not meant to be used for update project data. You can use ECMAscript to interact with a JS Grid control or to perform client side web actions, but not to write project data to Project Server.


    Joe
    Monday, September 13, 2010 9:36 PM

All replies

  • Hi Joe,

     

    Thanks for your post.

     

    There are two ways to achieve this in my opinion.

    First, use Client Object Model. You can call the client object model using JavaScript. Here is a demo about this:

    http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?ID=118

     

    Second, use JQuery to call the Web service.

    http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx

    Friday, September 10, 2010 2:05 AM
  • Hi Wayne,

    I've getting other feedback that says ECMA scripts are not meant to be used for update project data. Do you agree?

    Please refer this:

    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/thread/be82b45f-3716-434c-84c6-9f139b29b7ca/

     

    HansH. _

    Updating a project is done either through Microsoft Project (where you can use macro's or an add-in to manipulate data) or using PSI.

    ECMA scripts are not meant to be used for update project data. You can use ECMAscript to interact with a JS Grid control or to perform client side web actions, but not to write project data to Project Server.


    Joe
    Monday, September 13, 2010 9:36 PM
  • Hi Joe,

     

    Glad to receive your reply.

    I was confused with your requirement. I thought you were trying to update the “Project Task” list in SharePoint 2010.

    Now, it’s a project server problem, so I move it to the Project Server Forum.

     

    thanks.

    Tuesday, September 14, 2010 3:53 AM