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

Require approval each time project is published

$
0
0

Dear All,

Is there any way i could setup so that each time user published a project, that project will be listed for approval (whether in approval center or workflow approval)?

If i must create a customization, could you show me how i could do this?

Best regards, Ariwibawa


[Project Server 2010] Error get Lookup Table

$
0
0

Hi everyone,

I am a new developer in Project Server 2010. I use PSI (Web service ) to get LookupTable.

It works well on local but It have error when I change server.

My code: 

SvcLookupTable.LookupTableDataSet dts_lookup = lookup.ReadLookupTables("", false, 0);

And Error (Catch Ex):

System.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at SvcLookupTable.LookupTable.ReadLookupTables(String xmlFilter, Boolean autoCheckOut, Int32 language)

Please help me and show me the reason.

I wish I would see your response soon.

Thanks and Regards,

An Pham

how to iinsert text files into sql server 2008 table

$
0
0

i have problem to storing image in database as well as in any folder in window application.

how it will be implemented in window application

TreeView itemdrag in form application

$
0
0
I am using a treeview. if the actual text of the treenode is "abc". i have drawn the node with text "abc" + "xyz". my problem is, only the itemdrag is performed when i click and drag over the "abc" part in total text "abcxyz". i need to perform itemdrag when i click and drag on the "xyz" part also. can anyone hel me please.

How to pass dynamic height value to the JSGrid in sharepoint basing on the number of rows count going to be binded for the JSGrid

$
0
0

hi,

can any one suggest.

How to pass dynamic height value to the JSGrid in sharepoint basing on the number of rows count going to be binded for the JSGrid.So that i wont be showing much empty space inside the JSGrid.


Thanks & Regards, Krishna

How to pass dynamic height value to the JSGrid in sharepoint basing on the number of rows count going to be binded for the JSGrid

$
0
0

hi,

can any one suggest.

How to pass dynamic height value to the JSGrid in sharepoint basing on the number of rows count going to be binded for the JSGrid.So that i wont be showing much empty space inside the JSGrid.


Thanks & Regards, Krishna

Using Chr$ in Add-in

$
0
0

I created an add-in in VB and am trying to automate the filtering of an Outline Code field.  When I do it manually and record a macro, the line looks like this...

SetAutoFilter FieldName:="Outline Code1", FilterType:=pjAutoFilterIn, Criteria1:="CLIN" & Chr$(9) & "MKT"

I tried putting this in my add-in but it doesn't like the command Chr$(9).  So I changed it to Chr(9) but it still doesn't work like it is supposed to.   Can someone help me with the proper syntax?


Wellyn

Custom Event Handler onCreated. Get EPT of New Project

$
0
0

ProjectWS.ProjectDataSet pjDS = new ProjectWS.ProjectDataSet(); pjDS = _projectWebService.ReadProject( projectUID, ProjectWS.DataStoreEnum.WorkingStore );

pjDS.Project[ 0 ].ENTERPRISE_PROJECT_TYPE_UID.ToString()

Hey Everyone,

pjDS.Project[ 0 ].ENTERPRISE_PROJECT_TYPE_UID.ToString()

I am performing the above code in an event handler on project created, but when i try to access the EPT, I get "The value for column 'ENTERPRISE_PROJECT_TYPE_UID' in table Project is DBNull"

I need to be able to read which EPT belongs to this new project

Any ideas?

Thanks,


120811049008




ClickOnce "Application Files" Dialog Not Available in Visual Studio

$
0
0

I am developing an MS Project Addin in Visual Studio 2010.  The addin is working great and now I am trying to get ClickOnce deployment to work.

The problem is that the "Application Files" button on the Publish screen is not available.

I did some searching and some people say you can't use ClickOnce with a VSTO addin.  But others say it is possible.  Does anyone have the official word on this?  Or any other ideas why it is not working?  I really need some help.  Thank you in advance.

My Publish screen looks like this...


Wellyn

ProjectServer 2007 Workspace - Project Documents

$
0
0

We have a situation where Project Server 2007 must be customized to handle Programme and Project Management. In Project Server we handled it as Projects and Sub Projects which are inserted to the schedule.

 

Now as we publish Programme and Project schedule we have the Project Workspace getting automatically provisioned. The requirement is to have different Project Documents folder structure for Programmes and Projects. We are already using cutomized Project Workspace to create folder structure dynamically so that all project managers can follow a standardized document repository.

 

How can I accomplish this feature of having different folder structures for Programmes and Projects? Is there any way where I can prompt the user to choose the option which can then use a particular template to provision a workspace which has got the desired folder structure?

 

Thanks in advance.

project 2010: GeneralSecurityAccessDenied error when using updatestatus to update the timephased data of another resource

$
0
0

Hi,

I am getting the GeneralSecurityAccessDenied error when updating the timephased data of a resource other than the application's user. If I update the data of the application's user, it works fine. The application user has the StatusBrokerPermission and is the owner of the assignment that is to be changed. This is my code for your reference:

changeXml.Append("<Changes>");
changeXml.Append("<Proj ID='" + projectGUID.ToString() + "'>");
changeXml.Append("<Assn ID='" + assnID[0] + "' ResID= '" + resourceID + "'>");
changeXml.Append("<PeriodChange PID=\"" + pidActualWrk + "\" Start=\"2011-01-29T08:00:00\" End=\"2011-01-29T17:00:00\">210000</PeriodChange>");
changeXml.Append("</Assn>");
changeXml.Append("</Proj>");
changeXml.Append("</Changes>");

statusing.UpdateStatus(changeXml.ToString());
statusing.SubmitStatusForResource(resourceID, assnID, ""); 

Any suggestions as to what may be causing this error?

Regards, George

zegar

$
0
0
#include <windows.h>
#include <cstdio>
#define STALA_PRZESUNIECIA 10
struct Rozdzielczosc
{
	unsigned int x, y;
}ekran = {800, 500};

struct Prostokat
{
	unsigned int left, top, right, bottom;
}prostokat, org_prostokat;

struct Myszka
{
	unsigned int x, y;
}mysz;

const COLORREF kolory[] = {RGB(255, 0, 0), RGB(0, 255, 0), RGB(0, 0, 255)};
const int desen[] = {HS_BDIAGONAL, HS_CROSS, HS_DIAGCROSS, HS_FDIAGONAL, HS_FDIAGONAL, HS_HORIZONTAL, HS_VERTICAL};
short int index = -1;
short int index_d = 0;
unsigned int licznik = 0;
bool stan_d = false;

TCHAR nazwaKlasy[] = TEXT("Nazwa klasy okna");
TCHAR nazwaAplikacji[] = TEXT("Aplikacja");

LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	wchar_t buffor[64];

	switch(msg)
	{ 
	case WM_CREATE:
		if(MessageBox(hWnd, L"Ograniczyć obszar działań?", L"Pytanie", MB_YESNO | MB_ICONQUESTION) == IDYES)
		{
			RECT okno;
			GetWindowRect(hWnd, &okno);
			ClipCursor (&okno);
		}
		break;
	case WM_PAINT:
		HDC hdc;
		PAINTSTRUCT info;
		hdc = BeginPaint(hWnd, &info);
		// skalowanie
		RECT r;
		GetClientRect(hWnd, &r);
		SetMapMode(hdc, MM_ANISOTROPIC);
		SetWindowOrgEx(hdc, 0, 0, NULL);
		SetWindowExtEx(hdc, ekran.x, ekran.y, NULL);
		SetViewportOrgEx(hdc, 0, 0, NULL);
		SetViewportExtEx(hdc, r.right, r.bottom, NULL);
		// koniec skalowania
		if(index >= 0 && licznik == 2)
		{
			SaveDC(hdc);

			HBRUSH pedzel;
			if(!stan_d)
				pedzel = CreateSolidBrush(kolory[index]);
			else
				pedzel = CreateHatchBrush(index_d, kolory[index]);
			SelectObject(hdc, pedzel);
			Rectangle(hdc, prostokat.left, prostokat.top, prostokat.right, prostokat.bottom);
			RestoreDC(hdc, -1);
			DeleteObject(pedzel);
		}
		else
			Rectangle(hdc, prostokat.left, prostokat.top, prostokat.right, prostokat.bottom);
		swprintf(buffor, L"Prostokąt [(%u,%u):(%u,%u)]", prostokat.left, prostokat.top, prostokat.right, prostokat.bottom);
		SetWindowText(hWnd, buffor);
		EndPaint(hWnd, &info);
		break;
	case WM_LBUTTONDOWN: 
		mysz.x = (unsigned int)LOWORD(lParam);
		mysz.y = (unsigned int)HIWORD(lParam);
		if(licznik == 0)
		{
			prostokat.left = mysz.x;
			prostokat.top = mysz.y;
			++licznik;
			break;
		}
		else if(licznik == 1)
		{
			prostokat.right = mysz.x;
			prostokat.bottom = mysz.y;
			++licznik;
			break;
		}
		else
		{
			if(wParam & MK_SHIFT)
			{
				prostokat.right = (prostokat.right - prostokat.left) + mysz.x;
				prostokat.bottom = (prostokat.bottom - prostokat.top) + mysz.y;
				prostokat.left = mysz.x;
				prostokat.top = mysz.y;
			}
			else if(wParam & MK_CONTROL)
			{
				if(mysz.x >= prostokat.left && mysz.x <= prostokat.right && mysz.y >= prostokat.top && mysz.y <= prostokat.bottom)
				{
					if(index == 2)
						index = -1;
					else
						++index;
				}
			}
		}
		InvalidateRect(hWnd, NULL, TRUE);
		break;
	case WM_RBUTTONDOWN:
		mysz.x = (unsigned int)LOWORD(lParam);
		mysz.y = (unsigned int)HIWORD(lParam);
		if(wParam & MK_CONTROL)
		{
			if(mysz.x >= prostokat.left && mysz.x <= prostokat.right && mysz.y >= prostokat.top && mysz.y <= prostokat.bottom)
			{
				if(index_d == 5)
				{
					index_d = -1;
					stan_d = false;
				}
				else
				{
					++index_d;
					stan_d = true;
				}
			}
		}
		InvalidateRect(hWnd, NULL, TRUE);
		break;
	case WM_MOUSEMOVE:
		if(licznik == 1)
		{
			prostokat.right = (unsigned int)LOWORD(lParam);
			prostokat.bottom = (unsigned int)HIWORD(lParam);
			InvalidateRect(hWnd, NULL, TRUE);
		}
		break;
	case WM_KEYDOWN:
		switch((int)wParam) 
		{
		case VK_RIGHT:
			prostokat.left += STALA_PRZESUNIECIA;
			prostokat.right += STALA_PRZESUNIECIA;
			break;
		case VK_LEFT:
			prostokat.left -= STALA_PRZESUNIECIA;
			prostokat.right -= STALA_PRZESUNIECIA;
			break;
		case VK_UP:
			prostokat.top -= STALA_PRZESUNIECIA;
			prostokat.bottom -= STALA_PRZESUNIECIA;
			break;
		case VK_DOWN:
			prostokat.top += STALA_PRZESUNIECIA;
			prostokat.bottom += STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD8:
			prostokat.bottom -= STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD2:
			prostokat.bottom += STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD4:
			prostokat.right -= STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD6:
			prostokat.right += STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD5:
			prostokat.top -= STALA_PRZESUNIECIA;
			prostokat.bottom += STALA_PRZESUNIECIA;
			prostokat.right += STALA_PRZESUNIECIA;
			prostokat.left -= STALA_PRZESUNIECIA;
			break;
		case VK_NUMPAD0:
			prostokat.top += STALA_PRZESUNIECIA;
			prostokat.bottom -= STALA_PRZESUNIECIA;
			prostokat.right -= STALA_PRZESUNIECIA;
			prostokat.left += STALA_PRZESUNIECIA;
			break;
		}
		InvalidateRect(hWnd, NULL, TRUE);
		break;
	case WM_DESTROY:
		PostQuitMessage(0);
	default:
		return DefWindowProc(hWnd, msg, wParam, lParam);
	}
	return 0;
}

bool TworzenieKlasyOkna(WNDCLASSEX &wc, HINSTANCE hInstance)
{
	wc.cbClsExtra = 0;
	wc.cbSize = sizeof(WNDCLASSEX);
	wc.cbWndExtra = 0;
	wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
	wc.hCursor = LoadCursor(NULL, IDC_ARROW);
	wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
	wc.hIconSm = 0;
	wc.hInstance = hInstance;
	wc.lpfnWndProc = &WndProc;
	wc.lpszClassName = nazwaKlasy;
	wc.lpszMenuName = 0;
	wc.style = CS_HREDRAW | CS_VREDRAW;
	if(!RegisterClassEx(&wc))
	{
		MessageBox(0, TEXT("Błąd rejestracji"), TEXT("Błąd"), MB_OK | MB_ICONERROR | MB_TASKMODAL);
		return true;
	}
	return false;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	WNDCLASSEX wc;
	HWND hwnd;
	MSG msg;
	if(TworzenieKlasyOkna(wc, hInstance))
		return 1;
	hwnd = CreateWindowEx(0, nazwaKlasy, nazwaAplikacji, WS_OVERLAPPEDWINDOW | WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, ekran.x, ekran.y, 0, 0, hInstance, 0);
	if(!hwnd)
	{
		MessageBox(0, TEXT("Błąd okna"), TEXT("Błąd"), MB_OK | MB_ICONERROR | MB_TASKMODAL);
		UnregisterClass(nazwaKlasy, hInstance);
		return 1;
	}
	ShowWindow(hwnd, nShowCmd);
	UpdateWindow(hwnd);
	while(GetMessage(&msg, 0, 0, 0) > 0)
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	UnregisterClass(nazwaKlasy, hInstance);
	return static_cast<int>(msg.wParam);
}

How to import project plan available in particular location on desktop with ".mpp" extension to project server 2010 programatically.

$
0
0

hi,

Can any one suggest.

How to import project plan available in particular location on desktop with ".mpp" extension to project server 2010 programatically.


Thanks & Regards, Krishna

Timesheet approval name need for a reoport

$
0
0

Hi,

i am having 2010 Environment.

I want to create one reports in which i want to add one column which will show the name of resource who will approve the time sheet.

we are using SEM(single entry mode).

Team members who are sending timesheet mainly fill time against the various tasks for which they are assigned.

Task approval goes to Status Manager of the tasks in this case Timsesheet Approver for a specific task will be the status manager for the task not the project Owner.

In timesheet view i am not able to find any Status manger/UID column . I found ApproverResourcenameUID Column but  i am not able to map it with resource Names.

Please correct me if i am wrong ??


kirtesh

Programming 2010 Workflow: Problem in updating custom field using updateprojectproperty activity

$
0
0

Hi All,

       I am creating a workflow for project server 2010. I want to update the value of a custom field using updateprojectproperty activity on different stages. Problem is that updateprojectproperty is not behaving properly, it does not update the value at specific stage, instead it updates after some stages. Also if I put a fourth activity after some stages and deploy, the workflow doesnt start at all when creating from EPT.

       Is there any issue associated with the updateprojectproperty activity. I set MdPropUid, PropertyName, WorkflowContext and NumericPropertyValue.

Any help in this regard will be appreciated.

 

Regards

Adil


Customized report in Project Professional 2010

$
0
0

Hello,

I need help customizing a report for the following data showing and i can't get the Who Does What Wehn report to be customizable to fit my needs. Any help would be appreciated:

* Task/Resource/ Actual hours/ Actual cost ---> Broken up by columns (WEEKLY)

Any ideas?

Thanks guys,

how to upload projects into project server 2010 which got created from Microsoft Project 2010 Proffessional ( .mmp) and got uploaded to sharepoint site document library

$
0
0

hi

can any one suggest.

Projects which got created through Microsoft Project 2010 Proffessional  (.mpp) got uploaded into Sharepoint 2010 sites document library need update/create projects into project server 2010 programtically.



Thanks & Regards, Krishna

Problems with Project Workflow in Project Server 2010

$
0
0

Regards, We tried that create a simple worflow in Project Server 2010, but we have problems, the workflow doesn't works. We followed a steps registred in this links:

We watched the webast about workflow, but it doesn't works.

We have configured the PDP, the EPT, the Stages and the Phases, even we made a "Deploy" in the PWA, but when we tried to create a new project in the EPT show the next error: "Unable to open the project. The project has not been properly initialized. This may be caused by the workflow associated with the EPT not starting correctly".  And in the project queue show this error:

  • Workflow:
    • WorkflowNoWorkflowsDefined (35103). Details: id='35103' name='WorkflowNoWorkflowsDefined' uid='3b269c58-57f1-40ea-8e09-dc3d48a05ccd'.
  • Error:
    • WorkflowCannotStartWorkflow (35100). Details: id='35100' name='WorkflowCannotStartWorkflow' uid='7cd1bd86-860c-49c8-a196-20509165e31e'.
  • Queue:
    • GeneralQueueJobFailed (26000) - WorkflowStartWorkflow.WorkflowStartWorkflowMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='e80eb075-3547-4e57-9a90-69c2503304ff' JobUID='a0b8ac2a-824d-4b72-a7f0-242b95a25333' ComputerName='DEMO2010A' GroupType='WorkflowStartWorkflow' MessageType='WorkflowStartWorkflowMessage' MessageId='1' Stage=''. For more details, check the ULS logs on machine DEMO2010A for entries with JobUID a0b8ac2a-824d-4b72-a7f0-242b95a25333.

We have problems with this and we want to know what can be the error.

 

I have:

  • Windows 2008 R2 Enterprise
  • SQL 2008 R2
  • Sharepoint Server 2010 Enterprise
  • Project Server 2010

We are working in the Microsoft Project Demo Virtual Machine.

Thanks for help.

fixed duration and work, flexible units problem

$
0
0

I'm doing a rough capacity plan for a manufacturing unit in MS Project 2010.

In short: I want to average out the load of a set of tasks over an estimated time (duration) to get a rough view of the load for the period.

Scenario: Manufacturing of one component involves task1 and task2, performed in sequence. Task1: 8 hours=1 day, task2: 16 hours=2 days. 

Target: Set the duration of each task to the sum of the original durations and run them in parallel, i.e. duration of task1 and task2 = 3 days, work to be kept constant, changing the units to accomodate the change in duration.

I've written a macro setting tsk.Duration=[sum of all separate durations] but since Duration doesn't take resource calendars into consideration it will produce unwanted results when task1 is done in one shift and task2 in two shifts (Duration deriving its results from the calendar set in Options>Schedule).

Any help that would put me in the right direction is greatly appreciated!

Edit project site with powershell

$
0
0

Hi,

I want to edit a project site in powershell. (Server settings -> [Operational Policies] Project Sites)
i wanted delete a site address and edit a site address

Is there an powershell command for this actions?

Thanks,
jeroen

Viewing all 5347 articles
Browse latest View live


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