Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Widgets/WidgetTemplate/StoredProc/StoredProc.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Stored Procedure Definition

Use this folder to include any sql scripts designed to install Stored Procedures required for the Csutom Widget to work. Please follow the pattern of including a fully installable script including required MinistryPlatform metadata. Examplesa are included to aid in quickly developing installable Stored Procedure scripts
Use this folder to include any SQL scripts designed to install stored procedures required for the Custom Widget to work. Please follow the pattern of including a fully installable script including required MinistryPlatform metadata. Examples are included to aid in quickly developing installable Stored Procedure scripts.

## Installation Notes

All examples in this repository will install the stored procedure, then check API_Procudures for the relevant metadata that defines the stored procedure. Additionally, install scripts will give the Administrators security role access to the script.
All examples in this repository will install the stored procedure, then check API_Procedures for the relevant metadata that defines the stored procedure. Additionally, the install scripts will give the Administrators security role access to the script.

## Standard Parameters

The Custom Widget API will attempt to pass @UserName when the website user is logged into widgets. It is highly recommend that you include the @UserName parameter in all Custom Widget Stored Procedures. If @UserName is not required, you should default this parameter to null. When NOT NULL, the absense of this parameter will cause the stored procedure to fail.
The Custom Widget API will attempt to pass `@UserName` when the website user is logged into widgets. It is highly recommended that you include the `@UserName` parameter in all Custom Widget Stored Procedures. If `@UserName` is not required, you should default this parameter to null. When NOT NULL, the absence of this parameter will cause the stored procedure to fail.

Example:

```
```sql
@UserName nvarchar(75) = null
```