USP_RECORDOPERATION_RESPONSETOGGLEACTIVEPROMPT

Provides the prompt for the "Response: Toggle Active" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Represents information to be displayed in the record operation prompt.
@RESPONSE nvarchar(100) INOUT
@TOGGLETYPE nvarchar(8) INOUT

Definition

Copy


          CREATE procedure dbo.USP_RECORDOPERATION_RESPONSETOGGLEACTIVEPROMPT
          (
            @ID uniqueidentifier,
            @RESPONSE nvarchar(100) output,
            @TOGGLETYPE nvarchar(8) output
          )
          as
            set nocount on;

            select
              @RESPONSE = RESPONSE,
              @TOGGLETYPE = case ISINACTIVE when 0 then 'inactive' else 'active' end
            from
              dbo.RESPONSE
            where
              ID = @ID;

            return 0;