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

how to logout with confirm button when page opens idle for 2 mins ?

0
0
Hai Everyone
I am decide to redirect to login page when website is open and idle for 2 mins,i have 5 to 6 web pages,after login to website it goes to main page,if user not work or it doesn't use for 2 mins when again user click any link or menus one confirm message is appear and redirect to login page and clear all sessions.
Note: May be use time limit in web.config file
 

Below code is work when i click page,i want without click it automatically pop up the alert message when page is idle for 2 mins
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>Untitled Page</title><script>
var logoutUser = false;
var timeoutHnd = null;
var logouTimeInterval = 20000;// 2 mins
function onuser_activite(){
    if(logoutUser){
    alert("You Session Expired");
    window.location.href = "Logout.aspx";
    }
    else{
        ResetLogOutTimer();
    }
}
function OnTimeoutReached(){
logoutUser = true;
}
function ResetLogOutTimer(){
clearTimeout(timeoutHnd);
// set new timer
timeoutHnd = setTimeout('OnTimeoutReached();',logouTimeInterval);
}</script></head><body><form id="form1" runat="server"><div><asp:TextBox ID="tbxarea" runat="server" title="Write your name here"></asp:TextBox></div></form><script>document.body.onclick = onuser_activite;
    timeoutHnd = setTimeout('OnTimeoutReached();',logouTimeInterval);</script></body></html>
Pls reply me asap...
 
Thans
Aravind



Automated update MS Project 2010 with SharePoint Server

0
0

Dear community,

i have a question concerning the synchronisation between MS Project 2010 and SharePoint.

I tried it the manuel way and it worked pretty well, but i'd like to do it automatically with an Add-In. I read it up but the only thing i found, were links how to do it the manual way. I searched for a function at the Project Server SDK or the button ID, but without success.

Is there a solution to do the syncronisation without writing the whole sync-process on my own? Can someone help or has the same problem?

Sincerely,

Johannes

SSRS Report in MS Project

0
0

Hi,

I am expecting a below view in SSRS :

Please help me how can this be achieved.

ActiveProject.StatusDate is always null

0
0

Project Server 2010 Migration. VBA code migrated to C# VSTO.

In the App_BeforeSave event we have the following code:

thisApplication.ActiveProject.StatusDate alwayas remains null although in Project Professional 2010 there is a date filled in.

(thisApplication is initialized with Application object in the ThisAddIn_Startup event)

How come?

How to set the resource usage (or task usage) with PSI and Project Server 2010

0
0

Hello everybody,

in the Project Client, I'am able to view and set the resource usage for every day, each task and resource.

How can I see this Information in the PSI and how can I set this?

Thanks in advance.

Best regards

Marc


Resource Under-Allocation V/S Over-Allocation in MS Project

0
0

Hi,

I have a requirement from my client where there is a need to create a report to show the resource under allocation v/s resource over allocation for projects.

I want to know what should be formula to calculate resource under allocation and resource over allocation or what should be the fields in ms project to use for checking under allocation of resource and over allocation of resources.


 

Try to set TASK_PCT_COMP to 100 via PSI --> not working

0
0

Helllo everybody,

I'am working with a Project Server 2010 and the PSI.

At the moment I try to change the TASK_PCT_COMP of some tasks in some projects with the PSI.

There I get the dataset, change the values and then update the Project.
But then nothing happens. I tryed the same via ProjTool.

The work (TASK_PCT_WORK_COMP) of these Tasks are 100. But the Task_REM_DUR >0 . When I try to change the Task_REM_DUR to the value of TASK_ACT_DUR I get the error "ProjectActualsAreProtected".

In the Project Client this is no Problem.

Can somebody help?

Thanks in advance.

Best regards,

Marc

Project 2010 Standard - VBA export to Excel; Latest Baseline

0
0

I am using Project 2010 Standard.  I have written a VBA module to export certain fields of my Projects to Excel.  I use the same Module for multiple project files.  Two of the fields I export are baseline starts and baseline finishes for each task in a Project file.  The problem I have is that each of my projects are at different baselines, so I need to go into my VBA code and change which baseline start and finish I want to export.  Is there a way to write the code to look for the latest baseline set for each project file, and export the start and finishes stored with the latest baseline?  My first approach was to write the code so an input box opens asking the user to input the correct baseline number, but I don't know how to substitute the Task.BaselineStart field with the user specified baseline number (i.e. Baseline2Start).

Below is my Module:

Sub InchstoneExport()

    Dim xlApp As Excel.Application
    Dim xlBook As Excel.Workbook
    Dim xlSheet As Excel.Worksheet
    Set xlApp = New Excel.Application
    xlApp.Visible = True
    AppActivate "Microsoft Excel"
    Set xlBook = xlApp.Workbooks.Open("G:\Users\Gilbert_Shawn\MS_Project\InchstoneCount_working.xlsm")
    Set xlSheet = xlBook.Worksheets("RawData")
       
    For Each Task In ActiveProject.Tasks
        xlSheet.cells(Task.ID + 2, 1).Value = Task.ID
        xlSheet.cells(Task.ID + 2, 2).Value = Task.Name
        xlSheet.cells(Task.ID + 2, 3).Value = Task.BaselineStart
        xlSheet.cells(Task.ID + 2, 4).Value = Task.BaselineFinish
        xlSheet.cells(Task.ID + 2, 5).Value = Task.Start
        xlSheet.cells(Task.ID + 2, 6).Value = Task.Finish
        xlSheet.cells(Task.ID + 2, 7).Value = Task.ActualStart
        xlSheet.cells(Task.ID + 2, 8).Value = Task.ActualFinish
        xlSheet.cells(Task.ID + 2, 9).Value = Task.Summary
        xlSheet.cells(Task.ID + 2, 10).Value = Task.Recurring
        xlSheet.cells(Task.ID + 2, 11).Value = Task.Flag1
    Next Task

End Sub


Send Timesheet button suddenly got disabled???

0
0

Hi everyone

Actually last week we have done a server upgrade,with FEB 2013 cu,our pwa site was working fine ,after that we have created one our customize timesheet satellite.js file  with slight modification but suddenly our Send Timesheet button got disabled,we even retracted our customize Timesheetsatellite.js file but still Send timesheet button is disabled

If anyone has any idea why this has happened or how it can be resolved,plz lemme know,any help will be greatly appreciated

thanks

Anuj

Identify and track critical milestones

0
0

The tool should display a continually updated EPM network diagram howing clearly the dependencies between milestones on the critical path. If any milestone on the critical path takes longer to
complete than planned, the whole project will slip unless something
is done. To achieve the same , check for the following facilities in EPM
d.Identify and track critical milestones

Request you to let me know how i capn fix critical mile stones in the templates



Geeth

Project 2007 - VBA Detect if field is in edit mode and save the edit

0
0
I have a macro which runs and updates fields. The problem is if the person is editing a field and still in the field (still has focus) and then runs the macro I get a run time error 1100 - this method is not available in this situation. The line in the macro that has a problem is SelectAll and I think it is due to the fact a field is being edited while it is trying to SelectAll. How do I tell if a field is being edited and then remove the 'edit mode' for the field?

Project Pro 2010 macro help - how to close a project without opening a dialogue box

0
0

HI,

I need to open hundreds of published projects in project server 2010, calculate each one of them, publish, close and checkin, one after other using VBA. This will run using an Administrator account in Project Server server.

The problem is when you try to close a project after publishing it, it opens a dialogue box asking if you want to check in and this stops the macro.

I recorded and edited the macro below, instead making a calculation, I change the view to Calendar then go to Tracking View, only to set that some changes were done in the project. Also I dit it on two project as an example.

Sub Test_1()' Macro Test_1' Macro recorded in 04/17/11 by SERVER\ricardos.
  FileOpenEx Name:="<>\Test 1 - Sample Project 1", ReadOnly:=False
  ViewApplyEx Name:="&Calendar", ApplyTo:=0
  ViewApplyEx Name:="&Tracking Gantt", ApplyTo:=0
  Publish
  FileCloseEx pjDoNotSave, , True
  FileOpenEx Name:="<>\Test 2 - Sample Project 2", ReadOnly:=False
  ViewApplyEx Name:="&Calendar", ApplyTo:=0
  ViewApplyEx Name:="&Tracking Gantt", ApplyTo:=0
  Publish
  FileCloseEx pjDoNotSave, , TrueEndSub

After publish the project I use the FileCloseEx pjDoNotSave,,True because I do not need to save it again and the true is to checkin the project without opening the dialogue box.

When I ran the macro I got the following message:

Execution time error '-2147417848 (80010108')
The method 'FileCloseEx' of object '_MSProject failed.

and it looks the project is closed, but it remains checked-out in Project Server.

Any ideas on how can I close a project after publishing without opening any dialogue box using VBA?

Thank you.

 

 


Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

Project Server - Add row to specific lookup table

0
0

Hi,

Please note, first time I am developing for Project Server.

How can I programmatic-ally (C#) find a lookup table, by name, and insert a row into it?

Kind Regards,

JP

Accessing the JS Grid for Project Server 2013 Preview

0
0

I'm testing Project Server 2013 Preview and am wondering, how can I access JS Grid instances in PWA from a WebPart or something else on client-side using ECMAScript (JavaScript). I need to attach event handlers (e.g. for OnRowFocusChanged).

There was an example in a walkthrough For Project Server2010. With using PJ.AddGridSatelliteInitializationNotifier and PJ.ProjectCenterSatellite (for Project Center JS Grid):

function ProjectCenterExtension() {var _grid;          // Display surface (a view) of the JS Grid.var _satellite;     // Control wrapper for the JS Grid.// Prevent ECMAScript errors if PJ or the AddGridSatellite function are not defined.// If the page is from Project Server, the PJ namespace is defined.// If the Project page includes JS Grid, the AddGridSatelliteInitializationNotifier // function is defined.if (window.PJ == null || PJ.AddGridSatelliteInitializationNotifier == null) {return;
    }// Use the PJ.AddGridSatelliteInitializationNotifier function to get an instance // of the satellite.
    PJ.AddGridSatelliteInitializationNotifier
    (function (satellite) {if (PJ.ProjectCenterSatellite != null) {/*** Satellite override: Project code should pass in "satellite" instead of "this". ***/
                satellite = PJ._NotifySatelliteInitComplete.arguments[0];
                _satellite = satellite;/***End Satellite override***/

                _grid = satellite.GetJsGridControlInstance();
                _grid.AttachEvent(SP.JsGrid.EventType.OnRowFocusChanged, RowChanged);
            }
        }
    );
    // Other functions. . .
}

But this approach doesn't work anymore for PS2013 Preview. PJ.ProjectCenterSatellite does not exist, as well as any other previous JS Grid sattelites (on other PWA pages) I've seen in PS2010 (e.g. for Timesheet, etc).

Can someone give me a direction or point in the documentation where to look for the new behavior?

Thanks in advance!

UDPATE: PJ.AddGridSatelliteInitializationNotifier DOES exist, and sucesfully appends a notifier, BUT it is never called! It seems that JS Grid is never initialized, or it is initialized in a quite different way.

OR Project Center doesn't use JS Grid at all and some other component is used... Then the question is - how to access and use it?



How to create EnterpriseResource with CustomField

0
0

Hi,

I would like to create an EnterpriseResource with CustomField using CSOM in Project Server 2013. I can create EnterpriseResource  by following code

                                        

 EnterpriseResourceCreationInformation newRes = new EnterpriseResourceCreationInformation();
                    newRes.ResourceType = EnterpriseResourceType.Work;
                    newRes.Name = item.FullName;
                    newRes.Id = Guid.NewGuid();
                    newRes.IsBudget = false;
                    newRes.IsGeneric = false;
                    newRes.IsInactive = false;

                   EnterpriseResource res = resources.Add(newRes);
                   resources.Update();

                   projContext.ExecuteQuery();

But this EnterPriseResource does not contains list of CustomFields(list of customFields is empty). 

projContext.Load(res.CustomFields);

projContext.ExecuteQuery();

I tried to add some dictionary item in res.FieldValues, but I had no success.

Thanks, Serg Samoilov


MSPS 2010 Event handlers not working

0
0

Hello,

I am trying to handle event of project creation. This is my first step to realize our buisness-rules. Just like in this article:

http://msdn.microsoft.com/en-us/library/office/gg615466%28v=office.14%29.aspx#pj14_WritingEventHandler_Deploying

Moreover, I taken it from from Project SDK without any changes. And it does not work!

Attaching to process works well - breakpoint gets filled with red. But I see no appropriate events in event logs and when I create project and save it to server it does not breaks on this point. But project created.

Maybe I have wrong setting on my server?

Please help! I want not to directly insert records into tables on SQL server!

Forum: Hide Spam ?

0
0

Hello Administrators,

Would it be possible to hide spam messages in the forum, instead of showing them as 'reported as abuse' ? I have noticed that these messages come before older discussions that may not have been closed/answered yet.

PS2010 - How can I retrieve a filtered list of projects from PSI ?

0
0

Hello,

How can I retrieve a filtered list of projects via PSI ? I have tried with the Project web service with the ReadProjectStatus method, but there's no filtering feature.

There's also the ProjectGetProjectCenterProjectsForGridJson method in the internal PWA web service, which is actually undocumented, thus unusable...

Do you have any idea how to achieve this ?

Insert/ Update information with OData to PS2013

0
0

Hi folks!

Has anyone tried to insert or update information in Project Server 2013 via OData?

A little guide would be appreciated...

Thanks!

How to read Security Project Server groups with JSOM

0
0

Hi all,

Is there any possibility to use the client API of Project Server to get Security Groups information? Or at least to know if we are in a Project Server Security Mode/ SharePoint Security Mode in our Project Server instance?

The farest we got is to get the SharePoint Security groups, that are supposed to be syncronized with the Project Server Security groups, but with some words added to the group name (e.g. Project Managers for Project Web App). We did it with the SharePoint client API.

It would be nice to know at least in which of security we are...

Any thoughts??

Thanks!

Viewing all 5347 articles
Browse latest View live




Latest Images