Running stored procedures in Prolaw Document Templates

Wednesday, August 27th, 2014 | ProLaw Case Management | Mike Smith

For complicated document template field codes, you are limited in the SQL functions you can execute inside a document type. To work around this, and to keep the code in your document managable and readable, its possible to execute stored procedures that you have created (in the Prolaw database) when the document is generated. You are even able to pass a variable, such as the matter ID or profressional to the procedure. Using this technique will allow you to use temp tables, recursion, and other SQL functions that you normally would not be able to in ProLaw.

Example of a procedure called “test” :
«{Selectlines(‘exec dbo.test’)}»

Example passing the current matter primary key to a procedure called “test” :
«{Selectlines(‘exec dbo.test @matters=”’+MattersQuery.Matters+”” )}»

Give us a call if you need any assistance, we are glad to help!

Tags: , ,

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Page 1 of 11

Leave a Reply