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

'Project Managers (Microsoft Project Server)' SharePoint group to have the Manage Permissions site permission

$
0
0

Hi

I am trying to develop an event handler that will provide Manage Permissions site permission to  'Project Managers (Microsoft Project Server)' SharePoint group. My idea is to add the Manage Permission role to the sharePoint group, everytime the project is published or the Project site is modified.

But I cannot figure out which event in Project server can handle this. I tried with Project-OnPublished and Reporting-OnProjectWorkspaceChanged events. On both events though I am successful to provide Manage permission to 'Project Managers (Microsoft Project Server)' SharePoint group, alll the existing users who belong to 'Project Managers (Microsoft Project Server)' SharePoint group, loose access on the Project Site.

Can anyone please suggest the eventhandler that will be called at the end of project publish. 


SSRS report usign project server cube 2013

$
0
0

Hi,

 

I am using the default available OLAP cube named as "Task Non Timephased".

 

I am building a report using SSRS. my data source  connection to SSRS report is SSAS cube.

 

Inside Task Non Timephased there are two dimensions as "Project List" and "Task List".

 

When I am creating a report by dragging these two fields in the value section I am able to see the project name and tasks of the project but I am not getting the hierarchy in the tasks.

 

Please help.

Baseline display problem

$
0
0

Hello gang, long time no speak... ; )

The client I am currently working with has created their plans in version MSP Standard 2002 (SP1) (I know, I know that 2002 is an obsolete version...).  It seems that the baseline rollup feature, that I believe was introduced in this version, may have corrupted our baselines.

Primarily, the "timephased" baseline data does not display, or it does not add up to what we should have or see in the adjacent task level baseline fields.  Oddly enough, I ran a macro that outputs the baseline data, at the task and timephase level, and the baselines data (task and timephase) are perfect if I use the macro against the file(s) to output the baseline data.

I tried bringing in these problematic files into MSP version 2010, but unfortunately they still display the baseline data as described above; incorrectly!  Note, I tried rebaselining which refreshes the numbers and everything looks fine after that, but we do not want to do that because it will change what we had in our initial baselines.

Why does MS Project display different values in its timephase fields versus what I pull the data out using VBA ?

Is there a way to refreshing the timephased data so that it displays what it has stored (that which I retrieve via VBA)?  By the way, F9 (refresh) does not do anything. 

/Spiro Theopoulos

Montreal (Quebec), Canada.


\Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

Exporting from MS Project 2010 to MS Excel - exporting blank date fields gives rogue dates

$
0
0

Hi all,

I have a question regarding the exporting of dates using VBA. I have inserted the snippet of code that relates to the conversion process (I have not included the initialization of some key variables at the top as I dont believe it is needed to answer my question).

The problem I am having is that when I use the code below I get rogue dates in the date cells in excel when the relevant fields are blank in MS project. In other words, whenever I have an empty cell in MS Project for the Start & Finish fields, when I use the code below I get rogue dates in the excel fields. I don't think these dates are rogue however I expect the Start and Finish properties of the Task object to return a blank/null if the field is empty in MS project. I have searched the Microsoft reference on these properties but haven't found anything that would help me understand this bug. Also, what's weird is, I tried using MS Project's "easy" method of transferring to excel using the wizard and creating a mapping, and using this approach I did indeed get blank cells when the fields were empty. 

Any tips on this topic would be greatly appreciated. Thanks in advance.

For Each rTask In ActiveSelection.Tasks

With xlRange .Range("A3") = rTask.Text1 level = CInt(rTask.OutlineLevel) If level <> 1 Then taskId = rTask.Text1 startDate = rTask.Start finishDate = rTask.Finish .Range("B3") = rTask.Text4 tempNotes = Replace(Trim(rTask.Notes), vbCr, vbLf) tempNotes = Replace(tempNotes, vbVerticalTab, vbLf) .Range("C3") = tempNotes .Range("D3") = DateValue(rTask.Start) .Range("E3") = DateValue(rTask.Finish) .Range("F3") = rTask.ResourceNames .Range("G3") = rTask.Text6 .Range("H3") = rTask.Text10 .Range("I3") = rTask.Text5 .Range("J3") = rTask.Text7 End If End With Set xlRange = xlRange.Offset(1, 0)

Next mtTask


Customizing the "Who Does What" Report

$
0
0

Hi all,

I am in the process of putting together a report that is very similar to the Who Does What report. My issue is that the fields (columns) shown in the standard report are not relevant for me. Rather I would like to show specific fields on the task sheet. Additionally I would like to only show tasks that have not been completed. I was wondering if I could get a general to-do list to accomplish this. I am working under short timelines so dont have the time to browse through books and any tips on the general steps I need to follow to accomplish this would be helpful.

I could be completely wrong but the approach I understand of "googling" so far is to create a custom table and then use that in the report. However, when I try to do this..I created a "task" table with my custom fields and this table cannot be used as a source when I go in to edit the "Who Does What" report. Again, any guidance would be appreciated.

Thank you

 

A lot of custom fields

$
0
0

Hello

In one of our environment, we currently have 70 custom fields as follow (onely one is calculated).

Formula

Entity

Type

Count of Last Updated

No

Project

Cost

7

Date

5

Number

3

Text

40

Resource

Text

5

Task

Cost

5

Flag

2

Text

2

Yes

Task

Cost

1

Grand Total

70

we would like to evaluate the impact on adding 20 more project custom fields 

14 of those fields will be supported by one Lookup Table and the 6 others will be free text.

Do you see any drawbacks in adding such number of CF?


VBA to read from Excel and update project fields

$
0
0

I would like to use an Excel file to store a list of project names and project level fields for updating using VBA.  I have been able to use the vba to read a list or projects and open them individually in MS Project, but I'm having trouble figuring out how to read the project name, and also the project fields in the excel file to update and publish the project level information.  As an example I would have in Excel:

Project Name| Enterprise Custom Field1

ProjectABC | value

Project XYZ|value

I'd like the VBA to read and open the project file upto the first delimiter, and then update the enterprise fields in subsequent delimiters.

PS2013 App: How to read and update timephased data with JSOM (JavaScript CSOM)

$
0
0

Hello group,

I need advice on how to read and update timephased data of assignments with Javascript (JSOM) inside an App for Project Server 2013. A sample with CSOM in C# is also very appreciated, I assume it can be converted to JSOM then.

There is the PS namespace from file PS.js (or PS.debug.js). The MSDN library does not have any hints.

Thanks!


How to read Security Project Server groups with JSOM

$
0
0

Hi all,

Is there any possibility to use the client API of Project Server to get Security Groups information? Or at least to know if we are in a Project Server Security Mode/ SharePoint Security Mode in our Project Server instance?

The farest we got is to get the SharePoint Security groups, that are supposed to be syncronized with the Project Server Security groups, but with some words added to the group name (e.g. Project Managers for Project Web App). We did it with the SharePoint client API.

It would be nice to know at least in which of security we are...

Any thoughts??

Thanks!

Customizing the Project 2010 ribbon with a VSTO add-in

$
0
0

RE: the Project Professional 2010 forum thread: Project 2010: adding ribbon, which discusses the SDK articleHow to: Add a Custom Command to the Ribbon, and the use ofSetCustomUI in VBA.

NOTE: The code in this post is explained in the Project 2010 SDK article,How to: Use Managed Code to Add a Custom Command to the Ribbon.

It is instructive to do the same exercise with VSTO. There are many advantages to using a VSTO add-in, including the ability to easily publish the solution with ClickOnce. As the thread discussion notes, there is no good way to distribute the VBA solution in the Global.MPT to other users.

Basically, use Visual Studio 2010 and create a new Project 2010 Add-in project.Use the .NET Framework 3.5. You can use C# or VB. 

  1. There are no changes necessary in the ThisAddIn.cs (or ThisAddIn.vb) file.
  2. Right-click the project in Solution Explorer, and add a new item -- add aRibbon (Visual Designer) item. In the code below, it is named ManualTaskColor.cs (or ManualTaskColor.vb).
  3. In the ManualTaskcolor.cs [Design] view, drag a Tab from the Toolbox\Office Ribbon Controls to the ribbon.
  4. Drag a Group to the new tab.
  5. Drag a Button (or a ToggleButton) to the group. Change the labels, button image, etc. as you wish.
  6. To match the VBA example in the SDK, you can set the OfficeImageID property of the button toDiagramTargetInsertClassic.
  7. Select the new button in the ribbon Design view, click the Events icon in the Properties pane, and then double-click the Click event to create the button_Click event handler.

Here is the C# code in the ManualTaskColor.cs file. The code is ported from the VBA code in the SDK article:

using System;
using Microsoft.Office.Tools.Ribbon;
using MSProject = Microsoft.Office.Interop.MSProject;

namespace RibbonAddIn
{
    public partial class ManualTaskColor
    {
        private const int WHITE = 0xFFFFFF;
        private const int LIGHT_BLUE = 0xF0D9C6;

        MSProject.Application app;
        MSProject.Project project;

        private void ManualTaskColor_Load(object sender, RibbonUIEventArgs e)
        {
            app = Globals.ThisAddIn.Application;
        }

        private void tBtnManualTaskColor_Click(object sender, RibbonControlEventArgs e)
        {
            ToggleManualTasksColor();
        }

        private void ToggleManualTasksColor()
        {
            project = app.ActiveProject;
            string column = "Name";
            bool rowRelative = false;
            int rgbColor;
           
            foreach (MSProject.Task t in project.Tasks)
            {
                if ((t != null) && !(bool)t.Summary)
                {
                    app.SelectTaskField(t.ID, column, rowRelative);
                    rgbColor = app.ActiveCell.CellColorEx;

                    if ((bool)t.Manual)
                    {
                        // Check whether the manual task color is white.
                        if (rgbColor == WHITE)
                        {
                            app.Font32Ex(CellColor:LIGHT_BLUE); // Change the background to light blue.
                        }
                        else
                        {
                            app.Font32Ex(CellColor:WHITE); // Change the background to white.
                        }
                    }
                    else
                    {
                        // The task is automatically scheduled, so change the background to white.
                        app.Font32Ex(CellColor:WHITE);
                    }
                }
            }
        }
    }
}

_________________Just for kicks, here is the VB code in the ManualTaskColor.vb file, in you do the project in VB. The code is ported from the C# example above:

Imports Microsoft.Office.Tools.Ribbon
Imports MSProject = Microsoft.Office.Interop.MSProject

Public Class ManualTaskColor

    Private Const WHITE As Integer = &HFFFFFF
    Private Const LIGHT_BLUE As Integer = &HF0D9C6

    Dim app As MSProject.Application
    Dim project As MSProject.Project

    Private Sub ManualTaskColor_Load(ByVal sender As System.Object, ByVal e As RibbonUIEventArgs) _
                                     Handles MyBase.Load
        app = Globals.ThisAddIn.Application
    End Sub

    Private Sub tBtnManualTaskColor_Click(ByVal sender As System.Object, _
                                          ByVal e As Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) _
                                          Handles tBtnManualTaskColor.Click
        ToggleManualTasksColor()
    End Sub

    Sub ToggleManualTasksColor()
        project = app.ActiveProject
        Dim column As String = "Name"
        Dim rowRelative As Boolean = False
        Dim rgbColor As Integer

        For Each t As MSProject.Task In project.Tasks
            If (Not t Is Nothing) And (Not t.Summary) Then
                app.SelectTaskField(t.ID, column, rowRelative)
                rgbColor = app.ActiveCell.CellColorEx

                If (t.Manual) Then
                    ' Check whether the manual task color is white.
                    If (rgbColor = WHITE) Then
                        app.Font32Ex(CellColor:=LIGHT_BLUE) ' Change the background to light blue.
                    Else
                        app.Font32Ex(CellColor:=WHITE) ' Change the background to white.
                    End If
                Else
                    ' The task is automatically scheduled, so change the background to white.
                    app.Font32Ex(CellColor:=WHITE)
                End If
            End If
        Next
    End Sub
End Class

__________________

Have fun,

--Jim

Add resource capacite to my sql query - Project server 2010

$
0
0

Hello Project Server Helper,

I use this query to check the remaining work off all resources for the next 52 weeks. I try for a couple of hours to add the resource capacity with no success. the output is to create an .odc file and make a graph to see the loading/capacity per week. We have to much resource to use the resource center...

Any help to put the resource capacity in my query?

SET DATEFIRST 1

---- Affectations -----

SELECT MSP_EpmResource_UserView.RBS,
MSP_EpmProject_UserView.[Directeur / VP projet],
MSP_EpmResource_UserView.ResourceName,
CONVERT(varchar,datepart(ww, TimeByDay))-1 as weekNumber,
CONVERT(VARCHAR(20),DATEADD(dd, -(DATEPART(dw, TimeByDay)-1), TimeByDay),102) as firstDayOfWeek,
MSP_EpmProject_UserView.ProjectName,
MSP_EpmProject_UserView.[Code de Projet],  
MSP_EpmProject_UserView.[Statut de projet],
MSP_EpmProject_UserView.[Priorité du projet],
MSP_EpmTask.TaskName,
SUM(MSP_EpmAssignmentByDay.AssignmentWork-MSP_EpmAssignmentByDay.AssignmentActualWork) AS [Remaining Work]

FROM MSP_EpmAssignmentByDay
	INNER JOIN MSP_EpmProject_UserView ON MSP_EpmAssignmentByDay.ProjectUID = MSP_EpmProject_UserView.ProjectUID  AND MSP_EpmProject_UserView.[Statut de projet] = 'En cours'
	INNER JOIN MSP_EpmAssignment_UserView ON MSP_EpmAssignmentByDay.TaskUID = MSP_EpmAssignment_UserView.TaskUID
	INNER JOIN MSP_EpmResource_UserView ON MSP_EpmAssignment_UserView.ResourceUID = MSP_EpmResource_UserView.ResourceUID AND MSP_EpmResource_UserView.ResourceIsGeneric = 0 AND RIGHT(MSP_EpmResource_UserView.RBS,3)='MBR' AND MSP_EpmResource_UserView.ResourceIsActive = 1
	INNER JOIN MSP_EpmTask ON MSP_EpmTask.TaskUID = MSP_EpmAssignmentByDay.TaskUID

WHERE MSP_EpmAssignmentByDay.TimeByDay < (GETDATE()+365)
AND MSP_EpmAssignmentByDay.TimeByDay > (GETDATE()-14)
--AND MSP_EpmProject_UserView.[Statut de projet] = 'En cours'


GROUP BY MSP_EpmResource_UserView.RBS,
MSP_EpmProject_UserView.ProjectName, 
MSP_EpmProject_UserView.[Statut de projet],
MSP_EpmResource_UserView.ResourceName,
MSP_EpmProject_UserView.[Code de Projet],
MSP_EpmProject_UserView.[Priorité du projet],
MSP_EpmProject_UserView.[Directeur / VP projet],

MSP_EpmTask.TaskName,
CONVERT(varchar,datepart(ww, TimeByDay)),
CONVERT(VARCHAR(20),DATEADD(dd, -(DATEPART(dw, TimeByDay)-1), TimeByDay),102)

ORDER BY MSP_EpmResource_UserView.RBS,MSP_EpmResource_UserView.ResourceName,CONVERT(varchar,datepart(ww, TimeByDay)),ProjectName


PWAdmin

How to create my OWN custom fields in Reporting Database

$
0
0

Hi All

Currently we have a lot of custom fields on Project Server 2010, and I think we need to add more, and I really worry about it... also sometimes these fields are not specifically project information, for example, we have one custom field (yes/no) just to decide if the project should be included in a Monthly Report, from my point of view I think these kind of fields should be handled in a Custom Configuration Table, in order to avoid adding overhead to Project Server, so my question is, what would be the best way to implement this table sctructure to support MY OWN custom fields in the Reporting Database? And maybe later I can create a web part to display all MY custom fields on a PDP...

I'm pretty sure someone implemented this before, so I really appreciate all your help... maybe there are other post about it... Thanks for your comments...


Javier Perez | VP | Sr. Technical Architect | MCPD:Enterprise, MCPD:Web, MCITP:Database Dev, MCAD, MCTS:SharePoint | Monterrey, Mexico.

We would like to copy the functionality of the Resource field to a custom field that we add

$
0
0

Hi All,

 

What we are trying to achieve is to be able to create a field in task level to behave exactly like the Resource column in Project Server. We would like to copy the functionality of the Resource field to a custom field that we add, should contain people picker option.

 

Thanks,

Sunitha

Want to Hire Programmer with C, C++, C# coding skills

$
0
0

Hi friends,

If someone is interested to code my method, I am ready to pay around $1000.

I will show you the method of coding my Project.

All you need is to be familiar with C, C++, C#, .Net.

For more info, come on Skype: http://i.imgur.com/5XrNXhV.png

I have a project for an experienced Access developer

$
0
0

I developed a POS system inside of Access which I'd like to upgrade and adapt to meet evolving needs. Primarily, is someone in this community interested to have a look at what we have and assist us to solve specific requirements?


how to logout with confirm button when page opens idle for 2 mins ?

$
0
0
Hai Everyone
I am decide to redirect to login page when website is open and idle for 2 mins,i have 5 to 6 web pages,after login to website it goes to main page,if user not work or it doesn't use for 2 mins when again user click any link or menus one confirm message is appear and redirect to login page and clear all sessions.
Note: May be use time limit in web.config file
 

Below code is work when i click page,i want without click it automatically pop up the alert message when page is idle for 2 mins
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>Untitled Page</title><script>
var logoutUser = false;
var timeoutHnd = null;
var logouTimeInterval = 20000;// 2 mins
function onuser_activite(){
    if(logoutUser){
    alert("You Session Expired");
    window.location.href = "Logout.aspx";
    }
    else{
        ResetLogOutTimer();
    }
}
function OnTimeoutReached(){
logoutUser = true;
}
function ResetLogOutTimer(){
clearTimeout(timeoutHnd);
// set new timer
timeoutHnd = setTimeout('OnTimeoutReached();',logouTimeInterval);
}</script></head><body><form id="form1" runat="server"><div><asp:TextBox ID="tbxarea" runat="server" title="Write your name here"></asp:TextBox></div></form><script>document.body.onclick = onuser_activite;
    timeoutHnd = setTimeout('OnTimeoutReached();',logouTimeInterval);</script></body></html>
Pls reply me asap...
 
Thans
Aravind


Automated update MS Project 2010 with SharePoint Server

$
0
0

Dear community,

i have a question concerning the synchronisation between MS Project 2010 and SharePoint.

I tried it the manuel way and it worked pretty well, but i'd like to do it automatically with an Add-In. I read it up but the only thing i found, were links how to do it the manual way. I searched for a function at the Project Server SDK or the button ID, but without success.

Is there a solution to do the syncronisation without writing the whole sync-process on my own? Can someone help or has the same problem?

Sincerely,

Johannes

SSRS Report in MS Project

$
0
0

Hi,

I am expecting a below view in SSRS :

Please help me how can this be achieved.

ActiveProject.StatusDate is always null

$
0
0

Project Server 2010 Migration. VBA code migrated to C# VSTO.

In the App_BeforeSave event we have the following code:

thisApplication.ActiveProject.StatusDate alwayas remains null although in Project Professional 2010 there is a date filled in.

(thisApplication is initialized with Application object in the ThisAddIn_Startup event)

How come?

How to set the resource usage (or task usage) with PSI and Project Server 2010

$
0
0

Hello everybody,

in the Project Client, I'am able to view and set the resource usage for every day, each task and resource.

How can I see this Information in the PSI and how can I set this?

Thanks in advance.

Best regards

Marc


Viewing all 4809 articles
Browse latest View live