Archive for January, 2008

11
Jan
08

#02 Simple PopUp

On all Deltek info center pages you have – as an admin – the ability to add a help icon and insert text.  If you put in html code in the HELP TEXT property as one line without any line breaks you can introduce a popup window that feeds data from somewhere else. Where I work we use it do provide a job number generator using asp.net and SQL Server. The user selects some defining criteria related to their job off of some dropdowns and a transactional stored procedure grabs and formats the next available number. From this point there is some simple javascript to copy to the clipboard via a button and then to the project name field in the project info center via a simple Control-V command.

Note: Our Job/Project Number generator was installed prior to going to 5.0 - I understand that some of this functionality is available now ‘out of the box’.

Sample code put in help text Deltek info center screen: (one line no breaks)

<html><head></head><body><iframe src="http://intranet/somepage.aspx" width=500px height=500px scrolling=no /></body></html>

javascript:

<script>
function CopyToClipboard()
{
document.frmVisible.txtJobNumber.focus();
document.frmVisible.txtJobNumber.select();
CopiedTxt = document.selection.createRange();
CopiedTxt.execCommand("Copy");
alert('Number has been copied. Use Control-V to paste into new project screen.');
}
</script>  

js Credit Due: http://www.geekpedia.com/prog_ttrls_print.php?id=126

11
Jan
08

#01 Hyperlink Direct

#01 – This is documented somewhere officially but I found it indirectly. If you want to go directly to a particular info center in Deltek via a hyperlink the format is as follows:

http://visionserver/vision/launchApp.aspx?initialPage=<info center name>&databaseDescription=<database instance name>&keyValue=<key for info center record>

For example if you were going to a particular client you would enter ‘Clients’ in the info center name & the client internal ID for that client from the CL table in Deltek.  For Projects the ID would be the WBS1 field from the PR table. 

Note1 I can not open a particular tab on the target page.  

Note2 in general the 2 character table names are the major tables.

11
Jan
08

Welcome

This is an experiment for me in several ways. My hope is that I can offer help to those companies that have Deltek installed and are trying to extend out their internal operations & systems.  I am aware of the excellent work done by Deltek and some users in this area.  I offer this blog as a tool & as a tool if it does not help please disregard it. I do appreciate notification on anything you see that can be improved or corrected.  The code & help here is offered free but please use your own due diligence to make sure you do not cause problems on your own system. There are no guarantees attached. 

Lastly, I am making an effort to give credit due since coded solutions are rarely done in a vacumn. If you notice anything that should be credited to another source please contact me. It is easy to do this with older code where I have forgotten all the blogs and resources I searched out to get it working.