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

PS 2013 - ObjectLinkProvider Service issues

$
0
0

Hi,

We’re not able to get any related item of a task in ProjectServer 2013 using the ObjectLinkProvider service. Also, if we create a link between a task and another item by means of the ObjectLinkProvider, we are not able to see it on the Related Items field of the involved Sharepoint Lists (tasks, risks, issues…).

We're consuming the ObjectLinkProvider service to get the related items of a task in our add-in. It works for the previous versions of Project Server but not for Project Server 2013. According to the documentation nothing has changed from the client side perspective.

We are using the ObjectLinkProvider.ReadTaskLinkedWebObjects method. We run the sample provided here:http://msdn.microsoft.com/en-us/library/office/gg221017(v=office.15).aspx,and we experiment exactly the same behavior. We captured a Fiddler trace, the request looked right but the response was just an empty DataSet.

Then we run another example provided here:http://msdn.microsoft.com/en-us/library/office/gg229618.aspx. We were able to create links between a task and other items (risk items, issues…) and we could load these links into our add-in, but these links were not reflected on the Sharepoint Lists (tasks, risks, issues…).

It looks like the ObjectLinkProvider service is not working as intended. Are we missing something?

Many thanks!!!


Project Server 2010 - PSI - Status update (ChangeXML) remove Rejected changes

$
0
0

Hello,

I'm sending updates to PS2010 with the PSI using the ChangeXML xsd.

Works fine. When a PM rejects an update, and then the resource sends another update to the same assignment/task the update still has the previous update. How do I clear the rejected changes?

More detailed example:

- Resource1 sends update to PM (Task A -> Progress 50%)

- PM sees the change Task A -> Progress 50%. Rejects the update.

- Resource1 sends update to PM (Task A -> Start Date XX/XX/XXXX)

- PM sees the change (Task A -> Progress 50%, Task A -> Start Date XX/XX/XXXX)

I want to remove the rejected update on the second update using the PSI. How may I do it?

Project to CRM integration

$
0
0
I need to integrate Project 2010/2013 into CRM 2011. I want to create a project with resources (people and equipment) and then I want that information to show up in CRM as an allocated resource so I can run it through our routing and scheduling system.

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

Workflow problem - STAGE_INFO is DBNull

$
0
0

Hello everyone

I am facing a very frustrating issue with our workflow. Our workflow has few stages. When submitting workflow from stage 2 to stage 3 sometimes on Workflow Stage Status Project Detail Page is written "The value for column 'STAGE_INFO' in table 'WorkflowStatus' is DBNull." What is very weird is that this happens only occasionally. All activities that are defined in workflow to execute when submitting workflow from stage 2 to stage 3 are successfully executed and also workflow stops at stage 3 as it is supposed to.

Actions that are being executed when moving from stage 2 to stage 3 are: read project name, rename project set value of some custom field, send email and publish project.

Any idea why is this happening or what actions should I take resolve this problem? 

Thanks in advance

How to apply java script code in project details pages custom field in project server 2010

$
0
0

Hi everyone,

How to apply java script code in project details page using  custom field in project server 2010

Thanks


Neeraj

MS Project Issue

$
0
0

In my system I have an setup of vb6.0 and Microsoft office 2007. And I made an Add ins for ms project in vb6.0 and it's working perfectly but when I install msp 2007 and msp 2010 both in the same system then it's not working.

So please let me know what is the cause behind it.

Application Object Model - Custom Field Methods "Missing"

$
0
0

I seem to have hit a dead end with respect to querying the current values for the local custom field graphical indicators.  There are methods for setting and adding and deleting, but apparently not for "getting."

Would you please validate that I have not overlooked something, i.e. is there a way to find out in code what a local custom field's graphical indicator properties are?  Is it using graphical indicators?  If so, what are the criteria for each graphical indicator?

One of my developers said that it would be theoretically possible to invoke a lower level function within the .dll using something called a P/Invoke if I knew what the function and its associated parameters were.  Is this possible? Would you be able to provide documentation for said function(s)?


Accessing the web service via jQuery

$
0
0

I am trying to get a list of projects from the PSI web service using jQuery. When I run the code below all I get is the wsdl returned. I have tried it with the url: "http://w2k8r2-01/pwa/_vti_bin/PSI/Project.asmx", without soap, with soap and any number of combinations but all I get is the wsdl returned or an error.

Any help would be greatly appreciated!

var soapEnv = "\
        <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
            <soapenv:Body> \
                <ReadProjectList xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
                </ReadProjectList> \
            </soapenv:Body> \
        </soapenv:Envelope>";

    function projectSuccess(data, textStatus, jqXHR) {
        console.log(data);
        alert("success");
    }

    $.ajax({
        url: "http://w2k8r2-01/pwa/_vti_bin/PSI/Project.asmx?wsdl",
        type: "POST",
        dataType: "xml",
        success: projectSuccess,
        contentType: "text/xml; charset=\"utf-8\"",
    })

Image processing project

$
0
0
I'm workin on a project, Spline regression hashing for fast image search. I have the implementation guide, but I coudn't understand some the flow. Can anyone help you on this. It would be very thankful.

Adding a coloumn in sql server 2005 of type "Text".

$
0
0

I want to add column to sql server.

data type of this coloumn is type "Text" using C#.

Somebody plz guide me.

thanx in adv.

 

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


Project Professional 2010 Cascading Lookups

$
0
0

Hello,

I need to customize Project Professional 2010 in the following manner:

We have a custom field called Team (Lookup) and another called Team Tasks (Lookup). When the user is creating a new task or editing an existing one in Project Professional 2010, once they select the Team, I have to filter the Team Tasks to only display the Tasks that belong to this Team. Then the user can select the Task name from the drop down.

My question is whether it is possible or not to implement this cascading Lookup functionality in Project Professional 2010. If it is possible, I would appreciate directing me to any resources or tips that might be helpful.

So far, using an add-in, I was able to capture the "Change" event for the first Lookup (Team) but I am unable to filter the second Lookup (Team Tasks).

Thank you in advance.

logman.exe throws an error "Administrator refused request" in factory mode

$
0
0
Hi ,

My apologies if I have chosen an incorrect forum to post this . I did not find a suittable forum to post my question.
In Windows 8, I'm using a script to create the perfmon counters dynamically in factory mode using logman.exe.

The creation of the counters is successful but when the script tries to start the counters, it fails with an error :

"Administrator refused request"

tried by running the script in a command prompt with "Run as Administrator" but no success :(

Obsevations:

The same script works without any issues in normal mode (out of factory mode). 

The same script works fine without any issues in factory and normal mode in Win7



Any help in this regard is helpful.

Thanks

How can i use JavaScript to get resource assignments from the rest / odata service in Project Online

$
0
0

The title says it all.

I have no idea where to start with this. Using c# code in an on-prem setup i can see how i would write the code but i need to use JS and I only have a Project Online tenant.

What i am trying to find out is a set of resources assignments within a date range. Even playing with the Url directly i cannot ever get resource assignment data.

Thanks in advance


EPM2007 - importing actuals using PSI

$
0
0

We created custom code using the PSI for importing actuals into EPM2007 from another system. We are using impersonation in the interface code for the Statusmanager and every Status Manager has a rule for automatically approving all Task Updates. This is working fine except for the situation where task updates are applied while the project is checked out. The queue shows the TaskUpdatestatus job with status 'skipped for optimization' and reaches no more than 20% and is never finished.  Actual hours do not appear in MS Project.

Any suggestions are welcome,

Marcel Visscher

Project.DefaultStartTime

$
0
0

What should be the data type for Project.DefaultStartTime in the MS Project 2010 interface? This is not documented. When I try to set it to a TimeSpan I get a runtime error.

For example I want to set the default start time to midnight, so I have these code lines:

var midNight = new TimeSpan(0);
project.DefaultStartTime = midNight;

it compiles, but when I run it I get:

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
System.ArgumentException: Method's type signature is not Interop compatible.
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at Microsoft.Office.Interop.MSProject.ProjectClass.set_ProjectStart(Object )


DR

What event is triggered in Restart Workflow?

$
0
0

Hi

We need to execute some custom methods which updates custom table within workflow. But then when we will restart the workflow those custom method will execute again. So I was thinking of using SkipToStage functionality. To handle this I have few questions

1. Does SkipToStage variable has true value only when Workflow is restarted?

2. Can we put in SkipToStage ifelse statement before first stage of the workflow? (or it is always inbetween SetProjectStage?)

3. can we get SkipToStage values true/false and GUID into variable and use them in custom code?

4. Is there is any other event which gets triggered in Restart Workflow which I can use to write some code?

Please advise.

Thanks

Dipti Khandke

Validation on Submit button while moving from one stage to another

$
0
0

Hi

We have two calculated cost custom fields on PDP and we need to put a validation on them while submitting the workflow (Not on Save button). When user Submits the stage, the code should check if both values are equal or not. If equal, workflow should move ahead to next stage, if not workflow should stay on the current stage and give a message to user that cost values are not equal.

I can check the values in workflow and tweak it to move ahead or stay on current stage, but then user will not know why workflow did not move ahead.

Please let me know if this can be achieved through workflow/event handler/PDP customization?

Thanks

Dipti Khandke

Read a .flac file in C#

$
0
0
Can u send a Flac File Reader Class in C#. 
Viewing all 5347 articles
Browse latest View live