Wednesday, February 25, 2009

Want to get all the fields out of a layout region, all code and propeties included, the easy way?

I found this by accident. A few years back I started playing with DXl. I soon realized not every design element was supported. so I put it on the back burner. I soon had a project where I had to web enable an app that had tons of layout regions with many complex fields in them. I did one form the hard way, re-creating all the fields by hand and started to think that there must be a better way to do it.

So that night I am driving home from work and BANG it hit me. Layout regions are not supported in DXL. So the next Day I exported a form into DXL. I wrote a quick import agent to bring the form into a new db. I open the form in designer, and wouldn't you know the layout regions were gone and all the fields were on the form with all code and properties intact.

It was ugly, but formatting was much easier than creating the fields again.

So there it is. Using a features shortcomings to our advantage.

Here is a quick db with the code to import the form from dxl.

have fun

John

Friday, February 20, 2009

NO place for hate in this blog

Ok so everyone knows someone that uses profanity in their blog to make a point. I will not join these discussions and sink to their level. SO I am the first No Place For Hate blogger (I think)
Join me, copy the image and display it proudly.

I hearby state my intention to not engage in any blogs that think profanity helps make a point.

I will not post anything with any foul, demeaning, degrading, or otherwise offensive language.

I CHALLENGE you all to do the same


John

Wednesday, February 18, 2009

Windows explore in your notes forms or even the notes 8 sidebar?

Chris Toohey touched on this a while back. I have been doing this for years and helped him a bit.

Since release 6 I have used this technique extensively to handle file attachments.

The concept is embedding a windows explore object in a form and passing it parameters.

First issue I encountered was anytime I tried to right click on a file or folder I got an error stating running a script on this maybe unsafe. So a little registry code to add all my mapped and local drives to the trusted sites list fixed this.

Next I wanted to lock down the target network share I was storing the files on.
Some win32api code provided a way for me to pass credentials to map and log into the share on form open, and disconnect it on form close. The users never knew where the files were.

I have attached a db here with a form that has the embedded object and the code to add logical and mapped drives.

If you are in Notes 8.x you can make a sidebar widget from the existing document in the db.

Contact me if you need help with this

Thursday, February 12, 2009

Disaster Recovery. Help me understand

Begin Rant

OK I deal with a lot of customers and am amazed by what I see that they call DR!!!

Is it me? Am I crazy? What is the purpose of a DR Plan?

According to http://www.businesscontinuityadvice.com/Definition-of-Disaster-Recovery

Disaster recovery is the process by which you resume business after a disruptive event.
Best practices disaster recovery planning involves routine off-site backup and processes for reactivating vital information systems in a new location. Through this approach, an organization can recover information systems quickly after a catastrophe, such as a fire, earthquake or terrorist attacks.

OK So is this how you view DR?

In my opinion, adding to the above generic definition, the recovery should be automated whenever possible (Domino Clustering with failover for example).

If not automated, the fail over should be the least obtrusive as possible.

OK Rant is over

So what do YOU do for DR? What do you like? What would you change?

John

Tuesday, February 3, 2009

Welcome to my blog

I know another Notes blog, well this is for me to give back to the community that has helped me over the years. I will be posting cool code, sample apps, tips, tricks, reviews Etc. And whatever else is on my mind. So keep looking you may find what you need