• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Error Capture Techniques and Modular Scripts

Page history last edited by Lauren Kuhlman 14 years, 3 months ago

A new technique in error capture, use less screen space while expanding functionality of your error capture. Also, a meaty modular script explained. Walk away with code you can use again and again.

 

Both of these topics are covered in one big script. I will do a *brief* overview of modular scripting, walk through how to assign the variables for this particular modular script and then review how I do the error capture. The old school way: Set $var = Get  ( LastError ), If $var, Show Custom Dialog, Revert any state changes, Exit Script, End If takes up a lot of visual weight in your code. My technique is one-line only and can contain any number of error checks: Get ( WindowMode ), Access Privileges, Get ( LastError ), Check your modular script variables... etc.

 

The modular script allows you to create/edit a related child record from a parent. Essentially, from a portal on the detail screen you can make new children record in a popUp or edit the same records in the same popUp. We all know how much work these are to build so it makes a very useful modular script.

 

The error capture part is a new technique for me. Just started using it lately. The modular script is something that has grown over time. The availability of Set Field by Name really revolutionized what we are capable of with modularity. Anyway, I am most interested in hearing what you all have to say about it: different views, if anyone else uses a similar technique, pitfalls I am unaware of. Should make for a good session; Two hot topics.

 

You will walk away with some nice meaty code to reuse and a new way of looking at modular scripts and error handling.

 

Note: PauseOnError Steering Committee, let me know if this looks good to you. I ran the concept by a few attendees who expressed interest. I'd be more than happy to sit down and explain in more detail if necessary.

 

Host: Lauren Kuhlman

Twitter: laurenkuhlman

Site: http://www.laurenkuhlman.com

Email: lauren@laurenkuhlman.com

Comments (1)

Ernest Y. Koe said

at 9:51 am on Jan 21, 2010

Looks cool, Lauren. Our permission is not required. Pause away.

You don't have permission to comment on this page.