Quantcast
Channel: Expertsourcing® » prolaw
Viewing all articles
Browse latest Browse all 10

Running stored procedures in Prolaw Document Templates

$
0
0

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!


Viewing all articles
Browse latest Browse all 10

Trending Articles