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

JSGrid Grouping

$
0
0

Hi peeps,

I'd like to know if someone has somehow dealt with grouping via the JSGrid control. There's not much documentation on it, so I was hoping that someone might know about this. I know this is very specific, and I'm sure a bunch of guys at MS could help.

Looking forwards to hearing from someone soon!


Obtain Project Plan Template UID from the Enteprise Project Type UID (EPT UID)

$
0
0

Hi all, I need some help from the Project Server Community,

I need to develop an WebPart thar will display information based on the "Project Plan Template" Tasks, as you know Plan Templates are located according to the Project Server Documentation here:

SELECT PROJ_NAME, PROJ_UID FROM [PROJECT_SERVER_DRAFT_DB].[MSP_PROJECTS] WHERE PROJ_TYPE = 1

This WebPart will be deployed in all Projects Collaboration Sites (SPWeb), so in some way i need to find out what is the "Project Plan Template" UID from the "Current Project UID" (where current project means the project of the currente Web Collboration Site):

string projectGuid = SPContext.Current.Web.AllProperties["MSPWAPROJUID"] as string;

So far, i have the way to find the UID of the EPT through a query in the reporting DB: 

SELECT 
	 [EPT].*
  FROM 
     [dbo].[MSP_EpmProject_UserView] as UV inner join
     [MSP_EpmEnterpriseProjectType] as EPT on  EPT.EnterpriseProjectTypeUID = UV.EnterpriseProjectTypeUID
    WHERE [UV].ProjectUID = "CURRENT Project" 

So at this point is where i dont find the way to connect the obtained EPT UID to the Project Template. For me is obvious that has to be a way to connect both because "EPT Screen" Contains a "Project Template"
See project server page Project Template is a property of the EPT:

http://localhost/pwa/_layouts/PWA/Admin/EnterpriseProjectTypeDetails.aspx?entProjectTypeUid="EPT UID"

And also because when you export with playbook the project server metadata configuration you can see in the XML generated the connection between both EPT and project template:
ENTERPRISE_PROJECT_PLAN_TEMPLATE_UID

<EnterpriseProjectType><ENTERPRISE_PROJECT_TYPE_UID>e81126fd-1cf0-483e-902c-5e4364301719</ENTERPRISE_PROJECT_TYPE_UID><ENTERPRISE_PROJECT_TYPE_NAME>Customization &amp; Delivery</ENTERPRISE_PROJECT_TYPE_NAME><WORKFLOW_ASSOCIATION_UID>3f3037f1-2882-477c-a0ef-43d5750020d9</WORKFLOW_ASSOCIATION_UID><WORKFLOW_ASSOCIATION_NAME>WF2</WORKFLOW_ASSOCIATION_NAME><IS_DEFAULT_PROJECT_TYPE>false</IS_DEFAULT_PROJECT_TYPE><ENTERPRISE_PROJECT_PLAN_TEMPLATE_UID>9c9b56df-6ca7-4c86-9572-1f3dcb6c13c9</ENTERPRISE_PROJECT_PLAN_TEMPLATE_UID><ENTERPRISE_PROJECT_WORKSPACE_TEMPLATE_NAME>{EEE2B515-B7B8-4517-9839-140C513CD71C}#Site Template 6.3</ENTERPRISE_PROJECT_WORKSPACE_TEMPLATE_NAME><ENTERPRISE_PROJECT_TYPE_ORDER>31</ENTERPRISE_PROJECT_TYPE_ORDER></EnterpriseProjectType>
So, Can anyone help me to find this "EPT to Project Template Association"? 
Can i find it via PSI Project Server Intergace, or via SQL in one of the 4 project server DB?
SQL via is preffered .
Regards, Jacobo  


Jacobeo


PWA Ribbon customisation: dropdown list control

$
0
0

Hello,

Have you ever tried to add a drop down list control inside the PWA ribbon ? So far, I have ABSOLUTELY no clue how to do so (loading the values, getting what was selected, etc.), I'd be glad if someone could help me out on this.

Kind regards

Possible to edit WorkActuals in pre-existing timesheet using PSI?

$
0
0

I was wondering whether or not it was possible to take the dataset of a timesheet, and edit a single line of WA's within it and then resubmit the edits for that line only.

Is this possible, or will I have to recreate the whole timesheet over again just because I need to update a single WA?

it seems like numerous people before me have had trouble actually editing a work actual on a timesheetLine and then submitting that edit into the queue.  


How do you capture current sort criteria

$
0
0
I'm writing a macro to capture all customization in a Project File and save the data in an Excel file. I can't find a way to return the Sort criteria for a view. If I am recording a macro, and apply the sort method, the macro records the sort criteria that I want to capture. I tried recording a macro from within a macro using Sendkeys, but after the first set of SendKeys, the keystrokes were acting within the VBA window. Is there a way to capture the sort criteria for each view in a project file? If so, what is it?

Dean Carroll

Project Server Workflow and Appsettings

$
0
0

To which config file should I write my settings to be able to read them through Project server workflow?

I tried to write in the sharepoint portal web.config and to  Microsoft.Office.Project.Server.Queuing.exe.config none of them worked!

so, any body have tried this?

 


Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubaki

Analyze Timephased Data to Excel

$
0
0

Hi,

Is it possible to install this old add-in (created for project 2000) on Project 2010 ?

http://www.microsoft.com/en-us/download/details.aspx?id=7615

How?

Thanks

CLR20r3

$
0
0

i publish ( windows Form c#) but when i am setup it on another pc give me this error before run

Problem signature:
  Problem Event Name:CLR20r3
  Problem Signature 01:pp v 2.0.exe
  Problem Signature 02:1.0.0.0
  Problem Signature 03:511ef965
  Problem Signature 04:System.Data
  Problem Signature 05:4.0.30319.17929
  Problem Signature 06:4ffa5c76
  Problem Signature 07:2592
  Problem Signature 08:27
  Problem Signature 09:System.Data.SqlClient.Sql
  OS Version:6.1.7600.2.0.0.256.1
  Locale ID:1033
  Additional Information 1:0a9e
  Additional Information 2:0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:0a9e
  Additional Information 4:0a9e372d3b4ad19135b953a78882e789


ASSN_IS_PUBLISHED=false

$
0
0

Hi,

After approval by the project manager from the approval center, i want that assignment to be

ASSN_IS_PUBLISHED=False in order to hide from the mytask.

Below is my code i have written inside the Event Handler , Please guide that why i am getting Gneralupdate allowed error.

// All the Accepted Assignments
            Guid[] AcceptedAssignments = e.AcceptedAssignments;
            for (int h = 0; AcceptedAssignments.Length > h; h++)
            {
                try
                {
                    //After approval of the Task Next task should be visible...
                    WbSvcProject.ProjectDataSet pDS = new WbSvcProject.ProjectDataSet();
                    WbSvcProject.ProjectDataSet AssignmentRow = new WbSvcProject.ProjectDataSet();
                    proj.Url = "http://abc:30007/PWA/_vti_bin/psi/project.asmx";
                    proj.Credentials = System.Net.CredentialCache.DefaultCredentials;
                    pDS = proj.ReadProject(e.ProjectID, WbSvcProject.DataStoreEnum.PublishedStore);
                    for (int j = 0; j < pDS.Assignment.Count; j++)
                    {
                        if (pDS.Assignment[j].ASSN_IS_PUBLISHED == true)
                        {
                            WbSvcProject.ProjectDataSet.AssignmentRow row = AssignmentRow.Assignment.NewAssignmentRow();
                            row.ASSN_UID = new Guid(AcceptedAssignments[h].ToString());
                            row.PROJ_UID = e.ProjectID;
                            row.ASSN_IS_PUBLISHED = false;
                            row.TASK_UID = pDS.Task[j].TASK_UID;
                            row.RES_UID = pDS.Assignment[j].RES_UID;
                            AssignmentRow.Assignment.AddAssignmentRow(row);
                            break;
                        }
                    }
                    Guid session = Guid.NewGuid();
                    proj.QueueUpdateProject(Guid.NewGuid(), session, AssignmentRow, false);
                    proj.QueuePublish(Guid.NewGuid(), e.ProjectID, true, string.Empty);
                }
                catch (Exception ex)
                {
                }
            }


Thanks, Parth


Program in C++

$
0
0

I need to code a program in C++ which would restrict access to an application(say Notepad) for particular users.

For example, Let us  consider 2 users A and B. A is authorized to access the application whereas B is not authorized to access the application.Whenever user B double clicks on the application,It should give a popup saying "You are not authorized to access the application".How can I code this scenario in C++ ? Please help me out.

Branding Pwa and Project workspace sites using custom Master page ?

$
0
0

We are using custom master page(containing mega menu) in SharePoint team & publishing site to have consistent look and feel.

Can i use in use the same custom master page in PWA 2010 ? If yes, any links or feedback will help.

Automate Data Import From Oracle to Project

$
0
0

Hi, Im looking for some sample VBA scripts that will help me import some oracle data based on a SQL query to the Gantt chart view in MS Project. Goal: I really want to click a button on the ribbon and have it connect with an Oracle database query, show a status bar during the refresh and update the data in MS Project Gantt chart view.

Help/suggestions appreciated.

Thanks


Is there a way to bypass the password protection on a VBA project?

$
0
0

It looks like a former employee has password protected the VBA project that holds some fairly important macros for creating schedules, etc.  I know in Excel there were ways to get around it... is there anything I can do for Project?  I googled it a bit and haven't found anything concrete (or at least, not suspicious), so I am turning to you for advice.

Thanks!

Rocky

Updating edited actuals for existing timesheet

$
0
0

Hey guys I managed to retrieve the actuals from an existing timesheet and edit some of the actuals within it.  The problem is when I try to update the timesheet with these actuals.  No exception is thrown.  And the actuals are NOT updated to the timesheet in Project server. 

            ts.TimesheetDataSet timesheetDs = timeSheetSvc.ReadTimesheet(tsUID);

            for(int i=0;i < Dates.Count; i++)
            {
                try
                {
                    ts.TimesheetDataSet.ActualsRow actual = timesheetDs.Actuals.FindByTS_LINE_UIDTS_ACT_START_DATE(tsLineUID, Dates[i]);
                    actual.BeginEdit();
                    actual.TS_ACT_START_DATE = Dates[i];
                    actual.TS_ACT_FINISH_DATE = Dates[i];
                    actual.TS_ACT_VALUE = ActualValues[i];
                    actual.EndEdit();
                }
                catch(Exception){
                    ;
                }
            }

             //prepare Timesheet line
             Guid jobUID = Guid.NewGuid();
             timeSheetSvc.PrepareTimesheetLine(tsUID, ref timesheetDs, new Guid[] { tsLineUID });
             timeSheetSvc.QueueUpdateTimesheet(jobUID, tsUID, timesheetDs);

Anyone have an idea as to the problem?





How to make a subset array of tasks in MS Project VBA without filters

$
0
0

Hi.  I was wondering if there is an easy way to copy a task to a new array in order to generate a subset of the original task array.  I don't want to create new tasks, just a new array with certain tasks that meet certain conditions.  I don't want to use filters for this because of how dynamic the array has to be (growing and reseting with time).

This simple example code may help understand what I am trying to do (or it may just complicate things).  Thanks in advance for the help.

Sub Subsample()
'
Dim varTask As MSProject.Task
Dim varTaskContainer As Variant
Dim varTaskContainerSubset As Variant
Set varTaskContainer = ActiveProject.Tasks
    For Each varTask In varTaskContainer
        If varTask.Text5 = "Yes" Then
'           Make a copy of vartask in varTaskContainerSubset ...
'           I understand I might be way off on this.
            varTaskContainerSubset.Tasks.Add varTask
        End If
    Next varTask
End Sub


Custom workflow not moving ahead after Codeactivity is introduced between stages

$
0
0

Hi

I have created a custom workflow and put in Codeactivity between two stages (stage1-> CodeActivity -> Stage2). The codeactivity does not have any major code but just initializes one variable.

1.   The problem is when I click on Submit button to move the workflow to next stage, the workflow does not move ahead and stuck on stage1. Workflow History shows following  'setInitiationStage: One or more required fields are not filled or the activity is configured to always wait for a submit.' I have entered all the required values in PDP. The stage is set to AlwaysWait to True. I haven't put in ProjectSubmit Activity into the workflow.

2.   Strange thing is if I restart the workflow to move to current stage, then workflow moves to stage 2 along with the Codeactivity code.

3.    If I remove the codeactivity from workflow. Workflow does move to next stage2 instantly.  I have placed in a codeactivity before stage1 also which is working fine. Can someone advise me on this?       Thanks Dipti

Custom workflow solution : How to handle different GUID of each environment into single solution package

$
0
0

I have created the workflow solution in development. I need to pass the stage GUID's as arguments to the workflow. I added that into COnfigurationManager.appsettings but getting error as

Error 1 Could not create activity of type 'EngWorkflowSolution.Workflow1.Workflow1'. System.ArgumentNullException: Value cannot be null.
Parameter name: g
   at System.Guid..ctor(String g)
   at EngWorkflowSolution.Workflow1.Workflow1..ctor() C:\Project Server Workflow\EngWorkflowSolution\EngWorkflowSolution 1 1 


Do I need to add these values in Microsoft.Office.Project.Server.Queuing.exe.config file. If yes, how can I do it?

In web.config file I added as

 

 <add key="InitiationStageUid" value="24427350-81f5-4fe3-97d9-f72a4aecfbb2" />

In workflow solution I added it as

public Guid InitiationStageUid = new Guid(System.Configuration.ConfigurationManager.AppSettings["InitiationStageUid"]);

 

Else is there any other way to create workflow solution package environment free?

 

Right now I have to create the workflow solution package for each environment with respective GUIDs.

Need PSI code to get the properties of a custom field when it is updated

$
0
0

Hi All,

I need a PSI code to implement the event handler. Requirement is I have a "project status" custom field. When any PM changes the status of this field for any project, this should be logged as an xml file. 

Regards,

MAHAMW2

Project Server 2010 Workflow

$
0
0

Dear All,

 I am using default microsoft project  workflow with this workflow associated few Stage ,

Suppose my workflow is on Second Stage, i have fill my all the required field and then Click on Save.

Then Submit. It move to third stage, now my question is that , i need to set permission for specific user on submit "button" no any other have the permission for submitted that stage. i mean to say that submit button is disable for any other user.

Thanks,

Vishal Jaiswal 

request a Help

$
0
0

Hi

Im in problem with this code ,Pleas Help me

SqlConnection con =newSqlConnection();

SqlCommand com =newSqlCommand();

con.ConnectionString =

"Data Source=MADI-HP;Initial Catalog=Ba;Persist Security Info=True;User ID=sa;password=vahid_madi1359";

com.Connection = con;

con.Open();

string strSql1;

/*strSql1 ="SELECT count(*) FROM UsertaTable WHERE Username='+txt_username.Text+' and pass='+txt_password.Text+'";*/

strSql1 =

"SELECT[Username],[Pass] FROM [Herasat].[dbo].[UsertaTable] WHERE Username='+txt_username.Text+' and pass='+txt_password.Text+'";

SqlCommand mycmd=newSqlCommand();

mycmd.Connection = con;

mycmd.CommandText = strCon;

SqlDataAdapter da =newSqlDataAdapter();

da.SelectCommand= mycmd;

DataTable dt =newDataTable();

da.Fill(ds,

"UsertaTable");It doesent work.

Viewing all 5347 articles
Browse latest View live