Quantcast
Channel: Project Customization and Programming forum
Viewing all 5347 articles
Browse latest View live

Adding a builtin command to a custom ribbon

$
0
0

Hi,

I am trying to customise the ribbon using VBA and the SetCustomUI command.

I can add custom buttons to fire my own macro eg the following code snip works fine to add a custom button to fire my ImportSapData macro works fine 

 & "<mso:button id=""button1"" label=""Import SAP Data"" size=""large"" " _
 & "imageMso=""ImportExcel"" onAction=""ImportSapData""/>" _

What I would also like to do is to add some built-in commands to this tab so that users have the most common commands they will need all on the one tab eg TaskIndent and TaskOutdent plus many others..

So my question is..  what is the xml I need to add a builtin command to the ribbon.

Also if this involves putting in the builtin Command Name somewhere then where do I find a list of these commands and any other liks on the syntax of the xml...

Thanks in Advance

Steve Bayliss

Brisbane Aust


Migration from CA clarity to Project Server 2010

$
0
0

Hi All,

Which all data can be migrated from clarity to project Server 2010
and how it can be migrated?

Please help


Thanks, Lovely

how to update or add value to JSGrid columns particular cell using "OnSingleCellClick" event

$
0
0

hi,

how to update or add value to JSGrid columns particular cell using "OnSingleCellClick" event either using javascript or codebehind.



Thanks & Regards, Krishna

VBA Automation Error when Cancelling Macro in eGlobal

$
0
0

Minor annoying issue.  Curious if someone could shed some light on it....

I have a number of macros deployed to eGlobal in Project Server 2010.  They all work fine.  When I give the user an option to cancel the macro in a MsgBox, the macro cancels but displays an "Automation Error" message before cancelling.

I don't recall seeing this behavior prior to pushing the macros to eGlobal.

Is this just an error handling issue?  How can I get the macro to cancel gracefully?

Thanks in advance...


Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

how to publish .mpp uploaded into sharepoint 2010 site to Project server 2010 programatically

$
0
0

hi,

Is there any ways/approaches to publish (project plan) .mpp uploaded into sharepoint 2010 site to Project server 2010 programatically.


Thanks & Regards, Krishna

Table name for storing delegated and delegatee data

$
0
0

Hi ,

I need to develop a component and for that I need to fetch the data of delegated control for providing some security mechanism,

Can any one tell me what are the tables that are stores the data of delegated users, I am much in need of which users is delegated for a project to perform certain task.


Vinay Gupta

how to publish the .mpp file uploaded into sharepoint portal to project server 2010 programatically

$
0
0

hi,

can any one suggest.
how to publish/create the project in project server 2010 programmatically from the .mpp file which got uploaded into share point portal.

for information: Project server also got installed in the same farm.


Thanks & Regards, Krishna

How to launch the MS project proffesional 2010 programatically to publish/save .mpp to project server 2010.

$
0
0
 
hi ,
can any one suggest
How to launch the MS project proffesional 2010 programatically to publish/save .mpp to project server 2010.

Thanks & Regards, Krishna




Unable to open the project. The workflow associated with the project has been terminated unexpectedly

$
0
0

Sometimes when I open my demand I get this error - ‘Unable to open the project. The workflow associated with the project has been terminated unexpectedly. Please contact your administrator.’

Actually I’ve been working on EPM for one year and I’ve been through this error many times. Before I used to think that this is the problem of my custom-workflow. But this time I’ve been getting this error on the new site where I’ve been using Sample Proposal Workflow for all my demands.


Dinesh Bhardwaj

conditional movement of workflow to the next stage

$
0
0

I've created a custom field 'CR Status' which is having many lookup values like newCR, CR-cancelled, CR at UAT, CR-cancelled, CR-closed etc.

I want to create a workflow such that if the CR status value is 'CR Closed' then the workflow should move to the next stage (Execution stage in my case) else it will remain at the same stage.

If else thing will not work in this case, I think.

Which workflow property should I use or what code should I write for this?


Dinesh Bhardwaj

Create WBS structure/Task Hierarchy pragrammatically into Project Schedule - Project Server 2010

$
0
0

Hi

We are implementing Project Server 2010 and the requirement is to create WBS structure/Task Hierarchy pragrammatically into Project Schedule. It is like integrating with SAP.

On Project Information page the PM will enter the SAP project unique identifier and program should be run which will fetch all the other project information like location, branch, total cost etc from SAP database into project level custom fields. Also it should fetch from SAP database the WBS structure/tasks and create the same into Project schedule with the same task hierachy. If there is any addition/deletion of tasks/WBS into SAP it should be reflected in Project Server schedule afterwards. What apporach should we take for the requirement. Can we use the OpenProject event for updation of project schedule? Also what are the risks involved with this approach? Thanks Dipti                                                                                                                                                                                                                                                                   

Project Server 2010 Web Services Returns “Unhandled Communication Fault occurred”

$
0
0

I'm trying to use SOAP web services with Project Server 2010 to get project information using Python. However, I'm always getting the fault “Unhandled Communication Fault occurred” with detail “Sequence contains no elements”. Does anyone have any suggestions on how to debug this, and what I should be looking at?

Example SOAP message to Project.asmx:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <ns1:Body>
      <ns0:ReadProject>
         <ns0:projectUid>f63f7ed4-d5b1-4c80-a5fa-ccb587d466c2</ns0:projectUid>
         <ns0:dataStore/>
      </ns0:ReadProject>
   </ns1:Body>
</SOAP-ENV:Envelope>

Response back from Project Server:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:ns0="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <s:Fault>
      <faultcode xmlns:a="http://Microsoft.Office.Project.Server">a:ProjectServerFaultCode</faultcode>
      <faultstring>Unhandled Communication Fault occurred</faultstring>
      <detail>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Sequence contains no elements</string>
      </detail>
    </s:Fault>
  </s:Body>
</s:Envelope>

The same thing occurs when I call ReadProjectStatus().

Setting a Baseline in PWA

$
0
0

When I create a new project directly through the PWA interface, is it possible to also set a baseline without Project Pro?

How to use VBA extract the manpower histogram

$
0
0

Hi all! 1st ly I want to thank the contributors to this forum i have been saved by this forum a few times.

This is concerning MS project 2010, the kind of planning I do is effort driven with resource for each task. After linking my task I go to Resource sheet, check Detail and then select Resource Graph and then MS project 2010 will display the manpower histogram.

However I want to be able to extract the actual data that created this histogram. I couldn't find any functon to do that so I presume that I will have to use VBA to do it. I have search for the right object and method to use to do this but I couldn't find what I want. Can someone please let me know the object and methods to use to get what I need??? Or whatever method to get the data out. Thanks.

The ideal data is something like this

A(x:1)-->Date

A(x:2)-->manpower.

I think you get the picture.

Project 2010 wraptext() Method confusion

$
0
0

Hi All,

I am writing a VS 2010 app that creates a new Project Gantt. However, I do not want the Task Name column to wrap text. I am trying to use the wraptext() method, but I am not seeing where I am going wrong.

my code looks like this:

        Public Function CreateGantt()

        Dim TaskList() As String
        Dim NewWrapSetting As Boolean

        oProject = CreateObject("msProject.application") '(oProject is a global variable)
        Ganttdoc = oProject.Projects.Add()                        '(Ganttdoc is a global variable)
        oProject.Visible = True

        oProject.Application.WrapText(2) = False
If I use the method like above, I get an error saying "Expression is a value and therefore cannot the target of an assignment"

        NewWrapSetting = oProject.Application.WrapText(2) = False
If I use the method like above, I do not get an error, but the wraptext setting does not change

The msdn explanation indicates that the method "toggles" the setting, so I do not believe that it is readonly. If it is, can someone help me to change the setting programmatically?

Other note: If I try the same command directly in Project through VBA, I get an error saying "Assignment to constant not permitted"

Thanks for your help


ProjectTemplateNotFound when create project from template(belong to other user)

$
0
0

When I create project from enterprise project template using PSI(project server 2007) which created and checked in to project server by another user,error occurs as belows:

System.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=ProjectTemplateNotFound Instructions: Pass this into PSClientError constructor to access all error information
   在 Microsoft.Office.Project.Server.WebService.Project.CreateProjectFromTemplate(Guid templateUid, String projectName)

the logs are as belows:

PSI: Project.CreateProjectFromTemplate
Undefined Attributes: PSError: GeneralSecurityAccessDenied 
Undefined attributes list: 3dee3fa0-1956-4b98-84bd-2259d5b8829c

The "CreateProjectFromTemplate" method is successful when the current user is the same as the user created the project template or the administrator.

I've already given the user the permission to openprojecttemplate and create project.

Can anyone help me solve this problem?

Thanks.

MSProject.Application FileSaveAs giving null reference exception

$
0
0

hi,

I am using" Microsoft.Office.Interop.MSProject.Application" in MS office 2010 project proffesional.  but it is giving null reference exception.Actually i am trying to  publish my project .mpp to project server 2010 using FileSaveAs metnod.Below are my paramaters any thing elses i need to pass:

 projApp.Application.FileSaveAs(
                   "C:\Path.mpp",      // file name
                   Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP,  // format
                   Type.Missing,               // backup
                   Type.Missing,               // ReadOnly
                   true,              // TaskInformation
                   Type.Missing,               // Filtered
                   Type.Missing,                  // Table
                   Type.Missing,                  // UserID
                   Type.Missing,                  // DB Password
                   "",     // FormatID
                  Type.Missing,                  // Map
                   Type.Missing,                  // Password
                   Type.Missing,                  // Write Reserve Password
                   Type.Missing,               // Clear Baseline
                   Type.Missing,               // Clear Actuals
                  Type.Missing,               // Clear ResourceRates
                   Type.Missing);              // Clear FixedCosts


Thanks & Regards, Krishna


how to run microsoft professional 2010 "macro/any program" logic to publish .mpp project file to project server 2010 programmatically

$
0
0

hi,

can any one suggest.

how to run microsoft professional 2010 "macro/any program" logic to publish .mpp project file to project server 2010 programmatically with out getting launched microsoft professional 2010 window .


Thanks & Regards, Krishna


How to hide Resource Standard Rate

$
0
0

Hola,

Is there a way to hide or control the Resource Standard Rate field within the Resource Pool in Project Server 2010.

This information is very sensitive and company's policies are very strict about this.

Thank you in advance for any recommentation.

Regards,


Oscarin


how to publish the .mpp file to project server 2010 programatically using c# code.

$
0
0

hi,

how to publish the .mpp (microsoft project proffesional 2010) file to project server 2010 programatically using c# code.


Thanks & Regards, Krishna

Viewing all 5347 articles
Browse latest View live


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