Blog of an overweight SharePoint addict

Fri 15 Jun 07

El viva Espagna!

Filed under: General — Reginald @ 3:08 pm

Continuing on from the last entry, it’s been a few more quiet days on the blog as i’ve been tidying up a lot of the VBA code that is forming the core document for our Service Delivery process. None of the work has been particularly trying as I’ve covered a lot of the LDAP issues and other core techniques earlier on in the project.

Most of my work at the moment is getting the core document to a point where some play testing can take place next week while I’m away on my annual jaunt in the Sunshine with my long suffering Mrs..

When I get back however, there’s going to be several long blog entries I think around how we’re getting on integrating the CorasWorks offering into our Workflow system as I’ve managed to get sign off on this today!!

As ever.. watch this space..

Tue 12 Jun 07

And the beat goes on… and on….

Filed under: Excel, General, SharePoint — Reginald @ 1:06 pm

More of the same this week. The deadline for UAT has slipped slightly on this project, in the main because of trying to get a purchasing decision signed off on some third party utilities that we wish to use in the front end development.

We’re looking at using CorasWorks SharePoint feature set for MOSS 2007 to help with the front end configuration. They have some very nifty utilities available, I’d recommend a quick look at their website to spend some time playing with their sandbox environments. CorasWorks Website

Well, user testing aside, I’m still going to disspear next week to Gran Canaria for a little lay down in the sunshine.. A well earned break methinks..

So between now and the weekend, I’ll be trying to iron out the basic bugs in the VBA side of things, and preparing a quick mock up of the MOSS site to house the Document model.

Fri 8 Jun 07

It’s been a while..

Filed under: Active Directory, General, LDAP, Rants, SQL — Reginald @ 10:46 am

Well a week or so since I found an untidy solution to the Excel properties predicament. I’ll be honest, I’ve not spent a lot of time looking at that this week as I’ve had to concentrate on the functionality of the communications between the spreadsheet cost model and the actual back-end data systems that will do thefinancials reporting.

We’re getting there as they used to say in British Rail, but I’ll hopefully actually make it there in the end.. This week has been much playtesting of the spreadsheeting and trapping unforseen errors…

My one absolute BUGBEAR this week tho is SCOPE CREEP! If you’re not familiar with the term, it’s where you have an agreed set of objectives and then part way into the project the client tells you that there is something else it needs to do…!!

In my case, the users need to be able to run this system at home using a VPN channel based around a secure application manager. So my tidy little LDAP functions will need to be tested over that now. I’ve had my security team open the relevant ports to the AD servers and now need to test it.

This also impacts the SQL calls, I think some heavy testing from home is going to be needed to ensure that we don’t hit any timing problems!

Fri 1 Jun 07

Excel Custom Properties Refresh – an untidy solution..

Filed under: Excel, Programming, SharePoint — Reginald @ 2:31 pm

Well I’ve had some time to spend on this little conundrum and think I’ve found a solution. It’s not the tidiest and I’d welcome any suggestions of other methods to do this.

Basically the problem is that the SharePoint web based dialogue appears before the Custom Properties are re-freshed in Excel 2003. There doesn’t appear to be any method available to re-fresh the properties. These properties only refresh AFTER the file has been through the pre-save (of which the SharePoint form is part) and just before the actual save.

So, how do we force a refresh, well my solution is to utilise the temporary folder within windows and to save a quick copy of the file there, prior to pushing it to SharePoint. This has the added benefit of NOT showing the custom properties web form which suits my application just fine.

First thing required is a reference to the Microsoft Scripting Runtime, This gives you access to the FileSystemObject from your code.

Public fso as New FileSystemObject

Then, where ever you want to place your save code (Mine is off a command button on a seperate control panel with the normal menu’s all hidden), the following code will retrieve the temporary fold and generate a random filename prior to the SharePoint save command.

Dim f As Folder
Dim fi As String
Set f = fso.GetSpecialFolder(TemporaryFolder)
fi = fso.GetTempName()
ThisWorkbook.SaveAs f & "\" & fi
ThisWorkbook.SaveAs "http://dev-esserviceorders/Meta%20Data%20Test/test2.xls"

As I said, It’s not the tidiest solution, but it works for now albeit adding a fair save time. But it does need some error checking adding as well.

In the meantime, I’m going to keep looking for a better way of refreshing those custom properties..

Powered by WordPress