Can I update Project Field value via some javascript?
-
2010年9月8日 22:51
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- 移動 Wayne Fan 2010年9月14日 3:55 It's Project Server issue, thanks. (From:SharePoint 2010 - Using Visual Studio with SharePoint and other programming)
すべての返信
-
2010年9月10日 2:05
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
-
2010年9月13日 21:36
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- 回答としてマーク Christophe FiessingerMicrosoft Employee, Owner 2010年9月14日 4:27
-
2010年9月14日 3:53
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.