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

Project to excel - vba - 1004 Application-defined or object-defined error

$
0
0

Hi all,

I am trying to move my task data from Project to Excel and after a lot of editing I am finally close to my goal. However, I am stuck on the last couple of road blocks. For some reason I get the "1004 - Application-defined or object-defined error" when I run the code below. What's weird is that is the ".LeftFooter..." line runs properly whereas the orientation line gives me the error. Both leftfooter and orientation are properties of the same page setup object so its funny that I can access some of the properties and not others?

With xlApp.ActiveSheet.PageSetup .LeftFooter = Format(Now(), "mm/dd/yy") .Orientation = xlLandscape End With

My second issue is the same error when I run the code below:

With xlApp.ActiveSheet
        For i = 1 To .VPageBreaks.count
            .VPageBreaks(i).DragOff Direction:=xlToRight, RegionIndex:=1
        Next i
End With

I would greatly appreciate any help!

custom field in database

$
0
0
Hello!
Pleasetell me how todeterminewhich databaseandtableisby custom field?

Split plan batch order while master scheduling in AX 2012

$
0
0

I am facing a problem to split quantity plan batch order while running master scheduling based on batch capacity each of resources.

I have some resources which different batch capacity, as example : Resource R1 has batch capacity 24.000, Resource R2 has batch capacity 20.000, Resource R3 has batch capacity 30.000.

I can use R1, R2 or R3 to produce an item (let's say : item X), so I use a capability in my route which the member resources are R1, R2, and R3.

If there's SO for item X with qty 50.000, I want plan batch orders which generated by system separated based on batch capacity of resources, as example : plan batch order 1 use R2 (20.000) and plan batch order use R3 (30.000).

How to split plan batch order based on batch capacity resources in Ax 2012 R2 ?

PSI 2013: Empty Tasks when create them with QueueUpdateProject2

$
0
0

I try to create a task with QueueUpdateProject2. I send the request including properties like the name but only an empty task without any information is created. And I need to send another call to update the freshly created tasks. For the other entities like resources it is working as expected.

Do you have any ideas what went wrong there or is there a known bug which I couldn't find?

Thanks and regards.

Change from resource view to gantt view

$
0
0

I have a view with Resource Usage in the upper part and Gantt chart in the Details, i.e. when highlighting a resource i get its Gantt chart. A really useful view.

I would like to write a macro that opens the sub-project and zoom to a specific task (in Gantt view) as shown in the Gantt chart described above.

 I figure I could get the Unique ID from the task clicked. I also figure I could the name of the sub-project it's part of also. But where do I look? For that would be so happy for a push in the right direction.

Access 2010 Form Issue

$
0
0

I am Having trouble using the Dmax function.

I want a field on my form to generate a new sequence number for a tracking number i have made.

The format of the tracking number is ##-AA-####-####, with the last four being the sequence number.

So far I have programmed the database to generate the bas tracking number (##-AA-####) in one field, and I want to generate the sequence number in another and then somehow combine them. In my database I have a column for the actual tracking number(including the sequence) and another just with the sequence. My Idea was to generate the new sequence number using the dmax function, but i was having issues using the criteria part of it. It needs to generate a sequence number 1 higher than the highest sequence number but per part and part number.

Ex: Tracking number could be 01-TC-7220-0001 or 01-TC-7240-0001

The 3 set of numbers in the tracking number is the last four digits of the part number. but two different part numbers can be the same type of part (01).

Any help would be appreciated! Thanks!

Unknown Error when trying to create a lookup table using CSOM and C# (Project Server 2013 Cloud - Office 365)

$
0
0
Hi,

I have been trying for the last (almost) week, to create a lookup table in Project Server 2013 (Cloud based on Office 365) using CSOM and C#.

I have been able to add entries to existing lookup tables, create custom fields and resources without any issues (using CSOM and C#).

I have the problem when trying to create the Lookup Table using the LookupTableCreationInformation object.  I fill the properties (have tried various combinations) and attempt to add to the LookupTable objects.

The error is raised when I run the ExecuteQuery() after preparing the objects.  The Error returned is "Unknown Error", with an error code -1.

Example Code:
    List<LookupMask> masks = new List<LookupMask>();
    LookupMask mask1 = new LookupMask();
    mask1.Separator = ".";
    mask1.Length = 0;
    mask1.MaskType = LookupTableMaskSequence.CHARACTERS;

    masks.Add(mask1);
    
    LookupTableCreationInformation ltci = new LookupTableCreationInformation();                

    ltci.Id = Guid.NewGuid();
    ltci.Name = "MyLookupTable";
    ltci.Masks = masks;                

    ltci.SortOrder = LookupTableSortOrder.Ascending;
    
    LookupTable table = pContext.LookupTables.Add(ltci);
    pContext.LookupTables.Update();
    
    pContext.ExecuteQuery();
   
Error Raised:

    Microsoft.SharePoint.Client.ServerException: Unknown Error
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
       at ProjectServer2013ExperimentApp.ProjectServer2013HelperClass.AddLookupTable(ProjectContext pContext, String lookupTableName) in z:\Project Server 2013 Cloud\ProjectServer2013ExperimentApp\ProjectServer2013ExperimentApp\ProjectServer2013HelperClass.cs:line 270
    
Has anyone been able to successfully create a lookup table using the CSOM components?  Any advice or examples would be very much appreciated.

Thanks in advance,

Steve

How can I add Forward button in Approved/reject window in Project Server 2010

$
0
0

Hi all,

I need to add on new Choice field and button "Forward" in Approved/Reject window for fallowing scenario:-

I have created a customized EPT for "new Proposal request" with certain stages. Once Proposal Manager fill this page and submit it then in next stage it goes to "Proposal Reviewer" for approval/rejection by workflow and one approval activity added in project Reviewer page after click on this activity new window open with two default option 1) Approve 2) Reject .

But I required additional button on same window that is "Forward" and text field (with drop down menu fill with EPM users). if Proposal Reviewer wants to delegate his job to anyone else then select user from that choice field and click on forward button then this task would be delegated to selected user for approval..

Thanks

 


Project Server 2013....How do you move your Production Data to development server.

$
0
0
I tried simple restore of the 2 databases but it does not work. I then found some Network names within the ProjectWebApp so this way will probably not work.

Error at QueueUpdateProject in CheckIn Event Handler

$
0
0

Hello Everybody,

I have build an Event Handler, which updates a customfield while checkin process.

This works fine, but when an error in the QueueUpdateProject occurs, then I have a blocking correlation in the job an the Project is not checked in again.

The process is in general:

<check in Process> --> Proof if update of custom field is needed --> checkout Project --> QueueUpdateProject --> checkin Project .

Is it possible to generate a command QueueUpdateProject which will not block the queue?
Or does somebody know any other way around it?

Thanks in advance.

Best regards,

Marc

ONE Operating System

$
0
0

so yh i have an idea for an operating system which i believe to be better than any out there.
You can steal my idea, i steal your software, so all's good :D

Here i list concepts of the idea, not actual implementation or code, just pointers.

(also i had no idea which forum to put this in, you really need to improve the layout, js )

feel free to add ideas, or give feedback on my ideas

ONE
Cross platform operating system

Reasons for ONE -
to have only one operating system you have to learn to use, 
to only need one operating system across all of your devices,
to have one operating system layout,
to have all of your files & folders the same across all devices,
EASE OF USE

Factors of ONE -
consumer based, not for companies (though at a later stage maybe)
all files & folders will be synced across all devices,
servers host your files & folders, HOWEVER all files & folders will be loaded to your devices upon launch & synced to the server upon shutdown, automatic 24 hour timer built in to update sync, an option within one to update the sync.
Option to change files/folders across all devices via ONE application.
Applications, most will be synced across all devices however will be allowed to categorize applications for example you don’t want a game for your mobile on your desktop & vice versa, mainly due to hardware setup.
ONE will contain 2 different layout settings, one for keyboard & mouse another for touch screen, must be a difference between the 2 for coding but under core operating system will be the same, just very different I/O / peripherals .
Interface will be the same/ very similar for both.
Will not be like windows 8 or chrome book, will be better.
You only have to purchase ONE, one purchase will allow access to download for 3 DEVICES, no one person is likely to have more than 3 devices, 1 desktop/laptop, 1 mobile, 1 tablet.

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

Sharepoint Alert mails are not triggreing for custom workflows

$
0
0

Hi Team,

I have Custom workflow set up in SPD.

The condition is when a task is assigned to the user and immidiate mail must be sent, and it work good and mail is sent to the user.

When the user completes the Task the workflow will be completed.

If not a alert mail must be sent (the condition for the alert mail is when the due date is equal to the current date, the mail has to be triggred).

But this mail is not sent to the user when the due date is equal to the current date.

Can any one suggest what is wrong with this.

Does any timer job is related to this?

How does the alert notifications get triggred from, is it from the workflow history of the document that describes the date occurred,Event Type,..

Another observation is that, if the due date is set the date my the workflow is started then immideate mail and the alert mail is getting triggered

Regards,

Surekha

Best practice on managing reports in project server 2010

$
0
0

Hi All,

We are having different accounts (clients) and they need to get reports on their group of projects. One account does not want visibility to other accounts data. What is best proactice to manage reports ie, where to keep the reports for each accounts and how to manage the access to those reports?


Thanks, Lovely

Project Server 2010 DM Dynamic Workflow- Deployment problem?

$
0
0

Hi,

I am having problems deploying Dynamic Workflow in Project Server 2010. I tried to deploy it using these steps:

http://social.technet.microsoft.com/Forums/en-US/projserv2010setup/thread/82cefbc5-9b50-4753-92d1-9466c2f30f50

And when I "Run as administrator" the cmd file, I get this error:

"The argument '.\Deploy.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter."


I tried to change the path to script from .\Deploy.ps1 to "\path....\Deploy.ps1" and then I got this error

Deactivating feature: DMDynamicWorkflow_DynamicWorkflow - Done.
Rectracting solution: DMDynamicWorkflow.wsp - Done.
Removing solution: DMDynamicWorkflow.wsp - Done.

Adding solution: DMDynamicWorkflow.wspAdd-SPSolution : ./DMDynamicWorkflow.wsp:
The specified file was not found.
At C:\Users\sharepoint\Desktop\DynamicWorkflow\DynamicWorkflow\DeploymentFiles\
Deploy.ps1:63 char:19
+     Add-SPSolution <<<<  $SolutionPath | Out-Null+ CategoryInfo          : InvalidData: (Microsoft.Share...dletAddSolution:
   SPCmdletAddSolution) [Add-SPSolution], FileNotFoundException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSolut
   ion

 - Done.
Deploying solution: DMDynamicWorkflow.wspInstall-SPSolution : Cannot find an SPS
olution object with Id or Name: DMDynami
cWorkflow.wsp.
At C:\Users\sharepoint\Desktop\DynamicWorkflow\DynamicWorkflow\DeploymentFiles\
Deploy.ps1:74 char:27
+         Install-SPSolution <<<<  $SolutionName -GACDeployment -Confirm:$false+ CategoryInfo          : InvalidData: (Microsoft.Share...InstallSolution:
   SPCmdletInstallSolution) [Install-SPSolution], SPCmdletPipeBindException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallS
   olution

 - Done.
Activate feature: DMDynamicWorkflow_DynamicWorkflowEnable-SPFeature : The Featur
e is not a Farm Level Feature and is not found in
a Site level defined by the Url http://project-server:100/PWA/.
At C:\Users\sharepoint\Desktop\DynamicWorkflow\DynamicWorkflow\DeploymentFiles\
Deploy.ps1:85 char:25
+         Enable-SPFeature <<<<  $FeatureName -Url $SiteUrl+ CategoryInfo          : InvalidData: (Microsoft.Share...etEnableFeature:
   SPCmdletEnableFeature) [Enable-SPFeature], SPCmdletException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletEnableFe
   ature

 - Done.
Finish
Press any key to continue . . .


Does anybody have a clue why is this happening?

Thank you all for help

Cost Traffic Light Project Server

$
0
0

Hi,

Below is my client requirement :

My client is expecting me to show cost traffic light.

My client has asked me not to use cost variance and actual cost,budget cost fields provided by Microsoft out of box.

My client has asked me to make use of placeholder fields that is from cost1 to cost10.

That is :

I might use cost1 to represent actual cost and cost2 for budget cost.

I am going to build KPI through performance point dashboard designer 2013.

By default project server helps you build olap cube.

But when i open this cube in the dashboard designer i dont see cost1 and so on please help.


Updating resource vacation calendar using API

$
0
0

Hi,

Does anyone know of a way to update the resource vacation calendar using an API? We store the resource vacations in SharePoint and would like to automatically update them in Project Server database.

Thanks!!


How to Set a Constraint Date to a task using VBA

$
0
0

Hi,

I would like to copy date from gantt1 to gantt2 so that in Gantt2 the dates will be  constrain dates for each task.

i wrot the below code but it isnt working.

hope for an advise.

thanks

Vered  

 If t.Text2 = "Yes" Then
        
            Debug.Print t.Text2
            SetTaskField Field:="Constraint Date", Value:=Int(eSoCProj.Tasks.UniqueID(t.Text10).Start1),        AllSelectedTasks:=True
       
            Debug.Print t.Start1
            t.Duration = Int(eSoCProj.Tasks.UniqueID(t.Text10).Duration)
            Debug.Print t.Duration
            
            Set EV1Proj = ActiveProject
      
            
        End If
        


Create Manually scheduled tasks through PSI

$
0
0

Hello all,

I am creating programmatically tasks in EPM 2010 using PSI (CreateNewAssignmentWithWorkmethod), and it is working sucessfully. However, the new tasks created programmatically are set as automatically scheduled tasks.
To note that the default task mode in new projects under Server Settings for this PWA instance is set to be "Manually Scheduled".

So please if someone can help me set programmatically the tasks mode to Manually scheduled.

The "CreateNewAssignmentWithWork " method doesn't have an argument specifying the task mode.

Any idea???

SharePoint JS Grid control accessing cell value

$
0
0

Hi,

            I have a requirement to sum up some cell values and display in another cell of a JS Grid row.

How to acheive this in "OnCellEditCompleted" event. How to read the cell values within this event ?

 

Thanks & Regards,

Gokul.

Project Workflow stuck on starting

$
0
0

Hello! 

We have a production server with project server 2010 installed on it, with custom EPT and workflow created in visual studio. 

Until today all worked fine. But today workflows begun to stuck on starting. They always stuck on the first "update project state" activity, with queue job state "Processing". Stage uids are all fine. Our programmers haven't change anything, but customer's admins has access to this server too, but we can't find out, what they have done. 


Viewing all 4809 articles
Browse latest View live