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

java to vb.net via bluetooth

$
0
0

is it possible that a java application can give a message to a vb.net application via bluetooth ?

which is the java application is in a mobile device .. and the vb.net is in the system application in pc/laptop ..


how to change task's status manager using PSI?

$
0
0

Dear All:

       i have a question about task status manager!  now i create some task using PSI in Web Service, the task status manager always is Administrator(i use administrator run the PSI) , but i need set Project Mangager as the task status manager. How ?

      In EPM 2007:)

      Thanks!


peardong


DotNetNuke

$
0
0

Hi,

I want to build a website using dotnetnuke...

I am a beginner need some advice.....

Creating a new page in PWA for resources to see all tasks (without being able to submit time)

$
0
0

All,

I would like to set up a Project Analysis Area in PWA, this would be a page which allows resources to open and view the following:

  • What tasks / deliverables the resource should have completed to date
  • What tasks / deliverables the resource should currently be working on          
  • What tasks / deliverables are up and coming

In turn, I want to understand if there could be an additonal text field which allows resources to provide updates next to each task.  This could then be sent directly to the plan owner in the form of an email notification.

If anyone knows if this is possible it would be greatly appreciated if you could let me know.

Kind Regards

Kurran

Userforms Not Saving and Disappearing

$
0
0

Hi All - apologies for the length.

Project 2010 (14.0.6023.1000) Standard SP1 MSO (14.0.6129.5000), running in Windows XP Professional SP3.

I have been having problems with UserForms in my global file - occassionally disappearing or becoming otherwise inaccessible ("File not found" errors and "Automation Errors"). I initially thought I had some sort of corruption in the global file itself, so exported everything and rebult the file from scratch multiple times, but the errors kept appearing intermittently.

While most of the behaviour is intermittent, and therefore can't be reliably reproduced, I've isolated some reproduction steps which cause issues to recur - and this happens on a blank global file, with nothing in it.

So far I've tried:

  • Deleting the global file, forcing MSP to create a blank one
  • Deleting all Ribbon/Quick Access customisations (wasn't hopeful on that one, but wanted to rule it out)
  • Repairing my installation of MS Project and restarting the workstation

But all to no avail.

The following steps are reproduce the issue 100% on my workstation - I'd be grateful if anyone else could also reproduce:

Issue A - User Form Changes not Persisting

  1. Delete the existing global file from [Profile]\Application Data\Microsoft\MS Project\14\1033\Global.MPT
  2. Open MS Project
  3. Open the VB Editor (View > Macros > Visual Basic)
  4. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  5. Close the userform that just appeared (UserForm1)
  6. Reopen the userform and make a change (i.e. change the caption to "UserForm1234")
  7. Click the Save button on the VBE toolbar
  8. Close and reopen the userform

    RESULT: The change made in step 6 does not persist. It has reverted back to its original state.

Issue B - '' could not be loaded
Continuing on from the scenario above:

  1. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  2. Close the userform that just appeared (UserForm2), and the form behind (UserForm1)
  3. Reopen the userform (UserForm2)
  4. Change the form name, e.g. from "UserForm2" to "UserForm2345"
  5. Click the Save button on the toolbar
  6. Close and reopen the userform

    RESULT: Error message displayed - '' could not be be loaded.
    The form now can't be opened or exported

Issue C - File not found
Continuing on from the scenario above:

  1. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  2. Click the Save button on the VBE toolbar
  3. Close the userform that just appeared
  4. Reopen the userform (UserForm2)
  5. Shorten the form caption from "UserForm2" to "UserForm2468"
  6. Click the Save button on the toolbar
  7. Close and reopen the UserForm2

    RESULT:
    Error message displayed - File not Found

Issue D - Application Crash without Error, Corrupting Global
Continuing on from the scenario above:

  1. Open UserForm2345
  2. Open UserForm2

    RESULT: The MSP and VBE applications close immediately without giving an error
  3. Reopen MS Project
  4. Reopen the Visual Basic Editor

    RESULT: Error message stating Errors occurred during load.


    The ProjectGlobal is now named
    with the full path to the Global, and contains none of the forms created in the previous steps:

Project 2010 - Event Handler is Called, Regardless of Initiating Project

$
0
0

This one may have an obvious answer but I haven't stumbled upon it.

I have found that if you have project open with an event handler and another project open that does not an event handler, the event handler from the first project is called when an event in the second project occurs. For example, say ProjA is open and has a ProjectBeforeTaskChange event. ProjB is open and it does not have that event. When you change a task in ProjB, ProJA's ProjectBeforeTaskChange code is called. Detailed steps to reproduce may be found at the end of this post.

I can detect when this occurs and screen out the unwanted calls within the event handler. However, I'd rather not have to do that. Am I doing something wrong in the way the events are set up, or is this standard behaviour for Project 2010?

Thanks,

Paul

--------------------------------------------------------

Steps to Reproduce:

1. Create a new project

2. In the VB editor, insert the following in the new project's ThisProject module:

Option Explicit

Private Sub Project_Open(ByVal pj As Project)
    EnableEvents
End Sub

3. In the VB editor; create a new module named modTskEvnt; contents as follows:

Option Explicit

Public TskEvnt As New clsTskEvnt

Sub EnableEvents()
    Set TskEvnt.ProjApp = MSProject.Application
End Sub

4. In the VB editor, create a class named clsTskEvnt; contents as follows:

Option Explicit

Public WithEvents ProjApp As MSProject.Application

Private Sub ProjApp_ProjectBeforeTaskChange(ByVal tsk As Task, _
ByVal Field As PjField, ByVal NewVal As Variant, Cancel As Boolean)

    If Field = pjTaskName Then
        MsgBox "Task Change - macro is from: TestEvents1", vbOKOnly
    End If
End Sub

4. Save the project as "TestEvents1.mpp"

5. Create and save a new project called "TestEvents2.mpp". This project should NOT have any macros.

6. Close and reopen TestEvent1.mpp and TestEvent2.mpp.

7. In TestEvent2.mpp, change the Task Name column for any task. You'll see that ProjectBeforeTaskChange from TestEvent1 was fired.

PSI CALLS DO NOT WORK IN PROJECT SERVER 2013

$
0
0

Hello folks,

I now need to make some PSI calls to get some Project Server data, and as I was expecting,PSI CALLS DO NOT WORK IN PS2013 !

I have created a very simple SharePoint 2013 project (under Visual Studio 2012) aiming at testing PSI calls within an application page. In the page load event of the page, I have added the following code :

protectedvoidPage_Load(object sender,EventArgs e){try
            {
                ProjectContext pj =newProjectContext("http://ps2013-ts-qve/sandbox/");
                pj.Load(pj.EnterpriseResources);
                pj.ExecuteQuery();
                lblMessage.Text="PSI Call succeeded!";
            }
            catch(Exception ex)
            {
                lblError.Text= ex.ToString();
            }}

The user executing this code is declared as an administrator in PWA, so there shouldn't be any errors, but here is the error I get:

Access denied. You do not have permission to perform this action or access this resource. at Microsoft.SharePoint.Client.ServerStub.CheckRequiredResourceRight(ProxyContext proxyContext, String memberName, ResourceRight right) at Microsoft.SharePoint.Client.ServerStub.CheckBlockedMethod(String methodName, ProxyContext proxyContext) at Microsoft.ProjectServer.PSContextServerStub.InvokeConstructor(XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ServerStub.InvokeConstructorWithMonitoredScope(XmlNodeList args, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeConstructor(String typeId, XmlNodeList xmlargs) at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPath(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.GetObjectFromObjectPathId(String objectPathId) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessInstantiateObjectPath(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()

...

Can someone at MICROSOFT provide the solution to make this code work ???

What PSI method is run after completing project in workflow?

$
0
0

Hi

We have simple custom workflow and also the custom Submit button to move workflow to next stage. But we are not able to understand which method to call at the last stage of the workflow after clicking Submit button to complete the project/workflow. The project should be restricted to Check-out and all the other PDPs should be Read-Only.

Can someone advise which method to call at end to achieve this.

Thanks

Dipti Khandke


Please how do i stop bing from picking some certain links pointing to my site

$
0
0

Please guys can u help me by telling me how i can stop certain links coming to my site, some are like spam sites.

How to Re-Open Word Userform

$
0
0
How can I allow users, who've already downloaded userform input into their document, to re-open the Userform to choose a different item (the correct choice this time) from a drop-down without going through a lot of steps?  The only way I know to do this is to select Alt+F11, double click on the Userform name to display the userform in design mode (if it isn't already displayed) and then to press F5 so they can use the Userform.  Is there a way to create a macro or write code to do this in one step? Thank you for your help.

How to get full user details knowing the ProjectOwnerID

$
0
0

Project server 2010

How can I get full details using the PSI knowing the ProjectOwnerID?

How can I get a list of Project Managers from the PSI?

Regards,

Kees

MS Projects 2010: Merge/Combine 2+ Project Plans

$
0
0
I need to merge a plethora of MS Project 2010 documents into a Master document.  Does anyone know how to do so??

How to set workflow status as 'Workflow Complted' through PSI?

$
0
0

Hi

We have custom workflow Project Server 2010 custom Workflow and custom Submit button on PDP. Evrything works fine but at the last stage workflow is not completing properly. We tried to use the setProjectStatusInformation and tried to pass projectstate as 6 for 'Workflow Completed' but it gives error.

workflowClient.SetWorkflowStageStatusInformation(_projGUID, _projectRow.STAGE_UID,"Completed",6, true); //

In 2013 Error Code says that we cannot set the stage status withing wokflow.

WorkflowInvalidStageStatusValue = 35112

The value of the workflow stage status is not valid. When you set the stage status within the workflow, only the valuesInProgressRequestSent, InProgressRunning, orInProgressWaiting in Workflow.StageStatus are allowed.

Has anybody done thos before?

Can someone advise?

How to query Risks with custom fields in EPM2010 Reporting DB?

$
0
0

Hi All:

I wanted to ask for help to solve the following problem:

-I need to extract Risks information from the project sites in EPM2010. I looked in the RDB and I can find risk information in msp_wssrisk table or MSP_WssRiskToTaskLinks_UserView. However, in those tables/view there is not information about the custom fields that have been added to the risk list of our project sites (in the project site template), so where is that information located?

Thank you very much

Best regards

regular expression to extract text based on positions

$
0
0

 

Hi,

I have a sample input file as follows, with columns Id,Name,Date,Description,Location(separated by ';')

220;John;10/12/2012;Working as a Professor in University;Hyderabad
221;Paul;15/08/2012;He is a Software engineer at MNC;Bangalore
222;Emma;25/01/2013;Working as a mechanical enginner;Chennai

Like this It contains 30 lines of data.
My requirement is to extract fields based on position and delimiter using regular expression in eclipse ide from the above text file.

For example : I want to extract all dates based on the position(3) in the text file, like that i want to extract all the descriptions(4) like that whatever text present in that position i want to extract the text, please suggest me how to do it,

SharePoint.JSGrid in SPS 2013 and BulkEdit (Solution Starters)

$
0
0

The fact is that we try to migrate the solution Solution Starters (BulkEdit) on MSPS2013, but the control initialization error occurs.

Line: 707
Error: 'GridManager' is undefined

We looked at the structure of files and noticed some changes in the API JSGRID.
In particular, this file is not at all now:
<script type="text/javascript" src="~/_layouts/.../ProjectFramework.js"></script>

You do not know when it will be information for SharePoint.JSGRID MSPS 2013?

Copy of post:

http://social.technet.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3331cc66-527f-4491-b72f-e28a5cfd19be


Portfolio analysys in Project Server 2010

$
0
0

I should config "portfolio analysys" module in a test environment.

When I'll migrate from TEST to PRD environment, I'll find the module configured or I have to configure it yet?

Ribbon customization for particular Department

$
0
0

Hi

I am able to disable the Submit button with Ribbon customization but

Can we disable the Submit button for only one Department? How can we achieve this?

Thanks

Dipti Khandke

TimePeriods\TimeSheet\TimeSheetLine\TimeSheetActuals Creation through the PSI Help ...

$
0
0

Hi, my Third Party Product is uploading TimeSheets to Project Server 2010.  I thought I had my head around it but I don't think I do.

1.  First I check if a Time Period is already there and I get the Guid of the Period (adminClient.ReadPeriods(SvcAdmin.PeriodState.Open)) - [WPRD_UID]

2.1.   Then I read TimeSheets by Period\Resource to get the TS_UID (timesheetClient.ReadTimesheetByPeriod(impersonatedUserUid, PeriodUid, SvcTimeSheet.Navigation.Current)) - [TS_UID]

2.2.   I'll then create the TimeSheet (header) if it doesn't Exist:  timesheetClient.CreateTimesheet(timesheetDs, SvcTimeSheet.PreloadType.All)

3.1    Then I make sure a TimeSheetLine isn't already created by looping through the DataSet.Lines in Step 2.

Dim bolTimeSheetLineFound = False
For Each TSL_Row As SvcTimeSheet.TimesheetDataSet.LinesRow In timesheetDs.Lines
    If TSL_Row.TASK_UID = TaskUid And TSL_Row.PROJ_UID = ProjUid Then
        bolTimeSheetLineFound = True
        TimeSheetLineUid = TSL_Row.TS_LINE_UID
    End If
Next

I'll add the Line if it doesn't Exist: timesheetDs.Lines.AddLinesRow(line)

4. At this point I always create the Actuals: timesheetDs.Actuals.AddActualsRow(actuals_line)

5. Then I'll run this code:

timesheetClient.PrepareTimesheetLine(TimeSheetUid, timesheetDs, New Guid() {TimeSheetLineUid})
jobUid = Guid.NewGuid()
timesheetClient.QueueUpdateTimesheet(jobUid, TimeSheetUid, timesheetDs)
WaitForQueue(queuesystemClient, jobUid)

Please note I may be doing something wrong or missing steps above, can anyone see what i'm missing?

PROBLEMS:

1. So on the Line i'm setting the TASK_UID which is ok.  But when I set PROJ_UID, the PSI ignores my value and puts in some random Guid that I can't find in the database. Why?

2. So when I add multiple actuals it ignores what I just added if a record is already there.  What are the Rules with Lines and Actuals? I know when you try and add a Line already there you get this error:

ProjectServerError(s) LastError=GeneralObjectAlreadyExists Instructions: Pass this into PSClientError constructor to access all error information"

Any help would be appreciated or if anyone knows of a good PSI Book that I can get.


Todd Klost

Conditional Formatting MS Project based on Resource column

$
0
0

Hi, hope someone can help with this one 

Looking to colour the entire row when the resource column contains the phrase 'Maint' so it will therefore pick up Maint1, Maint2, Maint3, etc. Basically, to do on Project what conditional formatting could do on Excel. I would like to be able to just run a macro that would automatically check and carry out this action based on these settings

I know this can probably be done via a macro, but have tried several i've found around the net and can't get anything to work, sadly i'm not a programming guru! Would really appreciate if anyone could advise

Viewing all 5347 articles
Browse latest View live


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