WireBootstrap
HomeDocsBuySupport
  • Introduction
  • Overview
  • Getting Started
  • Installation
  • Connecting to Data
    • Data Connectors
      • SQL Data
      • Custom Web Services
      • Local Data
      • Other Sources
    • Data Sources
    • Discovery
    • Building a Data Connector
  • Working With Queries
    • Select Queries
      • Query Extensions
    • Stored Procedures
    • Custom Web Services
    • Executing Queries
    • ORM
  • Writing Data
  • Updates
  • Deletes
  • Working with DataTables
    • Introduction
    • Filter and Sort
    • Select and Calculate
    • Joins
    • Rows
    • Columns
  • Working with DataSets
  • Introduction
  • Executing Queries
  • Transforms
  • Writing Data
  • Data Events
  • Working with Components
    • Introduction
    • Encapsulation
    • Configuration
      • Data
      • Events
      • Observables
      • Validation
      • Display
      • Vendor
      • Custom
    • Component
    • Web Frameworks
    • Building a Component
      • Hello World
      • Data Events
      • DataSets
  • Working With Data Events
    • Introduction
    • Event Basics
    • Event Data
    • Event Actions
  • Working with Themes
    • Introduction
    • Sample Data
    • Libraries
    • Pages
    • Building a Theme Project
  • Utilities
    • Formatting
    • Expressions
    • Collections
    • Spinners
    • Copy and Merge
    • Validation
    • Loading Assets
    • Service Calls
    • Download Files
    • Browser Location
    • Types
    • Promise
  • Reference
    • wire
      • wire.Collection
      • wire.download
      • wire.validate
    • wire.data
      • wire.data.DataEvent
      • wire.data.DataModel
      • wire.data.DataPromise
      • wire.data.DataSet
      • wire.data.DataSource
      • wire.data.DataTable
        • Columns
        • Rows
      • wire.data.StoredProcedure
      • wire.data.TableQuery
    • wire.ui
      • wire.ui.Component
      • wire.ui.validate
Powered by GitBook
On this page
  • Parameter Class
  • Properties
  • Methods

Was this helpful?

  1. Reference
  2. wire.data

wire.data.StoredProcedure

PreviousRowsNextwire.data.TableQuery

Last updated 4 years ago

Was this helpful?

Parameter Class

Property

Type

Description

EventName

string

Parameter name alias used to map a parameter to another parameter or field in another query

Name

string

Parameter name

Value

string | number

Parameter value

Properties

Name

Type

Default

Description

Name

object

null

The name of the stored procedure in the data service.

Params

[ ]

null

An array of parameters for the stored procedure.

Methods

Name

Description

cast

Static method that casts an object with the same stored procedure properties into an instance of the StoredProcedure class.

eventName

Adds an event name to a parameter

getParam(param)

Returns the parameter object named param.

param(param, value)

Adds a value to a parameter using the chained method procedure.

If a service provider supports executing stored procedures, it will set the attribute to true.

const allowSprocs = accountService.allow().storedProcedure;

The following creates a new StoredProcedure object which will call the stored procedure spGetUsers in the data service with a parameter User equal to apeters.

const proc = wire.data.procedure("spGetUsers")
    .param("User", "apeters");

The following gets the stored procedure parameter object UserName.

const param = proc.getParam("UserName");
...

const dataTable = await accountService.execAsync(proc);

The following is a example that executes the stored procedure in the data service.

Visit for more details and examples.

TypeScript
Creating Queries - Stored Procedures
allow.storedProcedure