s
menu menu

Login  |  Register search:   
Enterprise Forms Forums
 
ForumsForumsDiscussionsDiscussionsGeneralGeneralCalling a stored procedure from the Advance WorkflowCalling a stored procedure from the Advance Workflow
Previous Previous
 
Next Next
New Post
 3/17/2009 11:05 PM
 
John,
  Below is how I called the stored procedure and also a snap shot of the actual  stored procedure.
Thanks for all your help .
 
--Trina
 
 
Trina Roberson
Office Automation Analyst
Chatham County ICS
133 Montgomery Street Room 507
Savannah, Georgia 31401
912-652-7343
 
>>> J.J. Kane 3/18/2009 9:20 AM >>>
 
The Form Template [FORM:ID] is showing blank when sending
to the sql server.  
 
 The  profiler trace on the sql server running the database.
shows the following.
 
"exec ICSLeaveprogrammers ''
 
This shows that the conditional work flow step is executing and sending the stored procedure
but for some reason the [FORM:ID] is blank.   Is the form out of scope when the procedure is sent.
If so what template item can I use to fill in the entry box.
 
Below is a copy of the conditional area of the work flow and below that is the Stored procedure
(Just in case you would like to see it).  Any help will be appreiated.
 
 
==============================================  Entry into



 
 
 
======================= Stored Procedure
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
 
 
 
ALTER PROC [dbo].[ICSLeaveProgrammers]
 @record_id INT
AS
 
DECLARE @RC int
DECLARE @EventDateBegin datetime
DECLARE @EventDateEnd datetime
DECLARE @EventTimeBegin datetime
DECLARE @Duration int
DECLARE @EventName nvarchar(100)
DECLARE @EventDesc nvarchar(1000)
 
IF EXISTS (SELECT 1 FROM EFView_6 WHERE Dt1 IS NOT NULL AND record_id = @record_id)
BEGIN
 --Do the event add for Dt1
 SELECT @EventDateBegin = Dt1, @EventDateEnd = Dt1, @EventTimeBegin = DATEADD(hh, 8, Dt1), @Duration = Time1 * 60,  @EventName = UserName, @EventDesc = LeaveType + ': ' + CAST(Reason AS NVARCHAR)
 FROM EFView_6
 WHERE Dt1 IS NOT NULL
 AND record_id = @record_id
 
 --SELECT @EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
 
 EXECUTE @RC = [Intranet].[dbo].[EventsSave]
    2 --portalID
   ,NULL --@EventID
   ,528 --ModuleID
   ,@EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
   ,2  ,1  ,1  ,0  ,NULL  ,N  ,NULL  ,True  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,False  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,NULL  ,-300  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL
END
 
IF EXISTS (SELECT 1 FROM EFView_6 WHERE Dt2 IS NOT NULL AND record_id = @record_id)
BEGIN
 --Do the event add for Dt2
 SELECT @EventDateBegin = Dt2, @EventDateEnd = Dt2, @EventTimeBegin = DATEADD(hh, 8, Dt2), @Duration = Time2 * 60,  @EventName = UserName, @EventDesc = LeaveType + ': ' + CAST(Reason AS NVARCHAR)
 FROM EFView_6
 WHERE Dt2 IS NOT NULL
 AND record_id = @record_id
 
 --SELECT @EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
 
 EXECUTE @RC = [Intranet].[dbo].[EventsSave]
    2 --portalID
   ,NULL --@EventID
   ,528 --ModuleID
   ,@EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
   ,2  ,1  ,1  ,0  ,NULL  ,N  ,NULL  ,True  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,False  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,NULL  ,-300  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL
END
 
IF EXISTS (SELECT 1 FROM EFView_6 WHERE Dt211 IS NOT NULL AND record_id = @record_id)
BEGIN
 --Do the event add for Dt211
 SELECT @EventDateBegin = Dt211, @EventDateEnd = Dt211, @EventTimeBegin = DATEADD(hh, 8, Dt211), @Duration = Time212 * 60,  @EventName = UserName, @EventDesc = LeaveType + ': ' + CAST(Reason AS NVARCHAR)
 FROM EFView_6
 WHERE Dt211 IS NOT NULL
 AND record_id = @record_id
 
 --SELECT @EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
 
 EXECUTE @RC = [Intranet].[dbo].[EventsSave]
    2 --portalID
   ,NULL --@EventID
   ,528 --ModuleID
   ,@EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
   ,2  ,1  ,1  ,0  ,NULL  ,N  ,NULL  ,True  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,False  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,NULL  ,-300  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL
END
 
IF EXISTS (SELECT 1 FROM EFView_6 WHERE Dt213 IS NOT NULL AND record_id = @record_id)
BEGIN
 --Do the event add for Dt213
 SELECT @EventDateBegin = Dt213, @EventDateEnd = Dt213, @EventTimeBegin = DATEADD(hh, 8, Dt213), @Duration = Time214 * 60,  @EventName = UserName, @EventDesc = LeaveType + ': ' + CAST(Reason AS NVARCHAR)
 FROM EFView_6
 WHERE Dt213 IS NOT NULL
 AND record_id = @record_id
 
 --SELECT @EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
 
 EXECUTE @RC = [Intranet].[dbo].[EventsSave]
    2 --portalID
   ,NULL --@EventID
   ,528 --ModuleID
   ,@EventDateBegin  ,@EventDateEnd  ,@EventTimeBegin  ,@Duration  ,@EventName  ,@EventDesc
   ,2  ,1  ,1  ,0  ,NULL  ,N  ,NULL  ,True  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,False  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,0  ,NULL  ,NULL  ,NULL  ,-300  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL  ,NULL
END
 
 
 



>>> Ethuongmai Support <support@ethuongmai.com> 3/18/2009 5:45 AM >>>
Trina,

The stored procedure you created, what are the required parameters and how are you calling the stored procedure in the advanced workflow processing task?

Thanks
John M

PS:  If possible please use our forums for faster support response.

tyrobers@chathamcounty.org wrote:

From:Trina Roberson
When:3/17/2009 11:32:26 AM
"I created a stored procedure called "ICSLEAVEPROGRAMMERS" This store procedure creates a event to our calendar called ICS Calendar" I called the stored procedure under the workflow for the manager under "Advanced workflow options" This is the text I am using " ICSLEAVE PROGRAMMERS . When I run a trace in SQL server to see what is happening it show the stored procedure being called but nothing is passed through it . This is what it look like " ICSLEAVE PROGRAMMERS ' ' " The form information is not being passed through . I am doing this correctly . Should I be sending in the FORM ID. Please any help would be greatly appreciated. "


 



__________ Information from ESET Smart Security, version of virus signature database 3944 (20090317) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

New Post
 3/18/2009 7:30 AM
 

Try using the token [FORMID] instead of [FORM:ID]


Enterprise Forms System Admin
New Post
 3/19/2009 4:10 AM
 

I did try the [FORMID] when I called the procedure and it still did not work . Any other suggestions.

 

Thanks

Trina

New Post
 3/19/2009 7:30 AM
 

What is the exact error (including entries from Event Viewer) when you used the [FORMID] token?


Enterprise Forms System Admin
New Post
 3/19/2009 10:56 PM
 
The conditional work flow step is executing and sending the stored procedure
but for some reason the [FORM:ID] is blank.   I don't receive an error. message it just that the FORMID is not passed through it is blank
 
--Thanks
Previous Previous
 
Next Next
ForumsForumsDiscussionsDiscussionsGeneralGeneralCalling a stored procedure from the Advance WorkflowCalling a stored procedure from the Advance Workflow

What's New

Version 05.01.06

Workflow Manager Enhancements

Template Manager Enhancements

Report Manager Enhancements

Other Enhancements & Fixes

  • Enhancement - allow sub-form (state-form) to be printed even if has not been submitted
  • Fixed - issue with the [OWNER] namespace does not parse properly in the NEW workflow state
  • Fixed - issue with Report Manager performing LIKE comparison instead of EQUAL operations for list type fields
  • Fixed - issue databound fields do not persist between pages
  • Fixed - issue PRINT button not displaying of no action buttons available
  • Fixed - issue with Custom Form Roles being cached even after a user role update
  • Fixed - issue with The base class includes the field 'FormLinksPanelTR' for cettain environments

 Minimum Requirements: 

  • Dotnetnuke versions 4.8 - 5.4 inclusive.
  • Microsoft SQL Server 2005 or later

 

Version 05.00.18

Workflow Manager Enhancements

  • Multi-templates Support  - added support for managing multiple form templates per Workflow Manager module instance
  • Multi-template Support - added the ability to view My Forms, Worklist and All Forms for multiple form templates
  • Multi-template Support - added support for filtering to a specific form template in multi-template mode
  • XML Data Export - added support for exporting form data to XML format.  (XML format compatible with standard .NET Data table object)
  • Reminder Notification - Added support for send reminder notifications if form is not submitted after a certain date
  • Read-only mode - changed disabled fields in read-only when viewing form in Print and Read-only mode
  • Print mode - Removed required image from fields in Print mode
  • Date Range - added support for Date Range search in Workflow Search view

Template Manager Enhancements

  • Template Views - added support for filtering different Views of Form Template listing
  • Workflow Conditional Visibility - added support for Conditional Visibility on Workflow actions
  • Template Usage Dashboard - added support for dashboard like view of Form Template Usage
  • View Access Log - added support for Viewing complete Access Log for form instances
  • Edit Form - overhauled the Edit Form Layout page (05.00.02)
    • Edit Field Element, Edit Cell Properties and Form Preview popups have been Ajaxified and are now displayed in the same Browser window
    • Reordered page properties to provide more estate for designing forms
    • Added the ability to customize the styling in both the Workflow Action Buttons and Form Page Navigation buttons bar

Report Manager Enhancements

  • Date Range - added support for Date Range search in Reports
  • XML Data Export - added support for exporting report data to XML format.  (XML format compatible with standard .NET Data table object)
  • Text Size limit - added support to display free-text fields with more than 4000 characters

Other Enhancements & Fixes

  • Added - support for non-standard FORM tokens in Reminder Notification
  • Added - support for default values for checkboxlist, radiobuttonlist and selectlist when using databinding
  • Added - the ability to assign Tab Index to data entry field elements (05.00.02)
  • Added - the ability to remember focus position upon an Ajax callback (05.00.02)
  • Added - the ability lock form template upon an Instant Development action (05.00.02)
  • Added - the ability to Preview Form in the same window in the main Template Listing and Template Details pages. (05.00.02)
  • Added - StartUpScript field element to support Javascript calls upon ajax callbacks (05.00.03)
  • Changed - Ajax popup windows to utilize maximun window size of the browser (05.00.03)
  • Fixed - issue Custom Report Templates not saving after Default Template is generated
  • Fixed - issue with Conditional Visibility (page level) not updating upon post back under certain condition
  • Fixed - issue with Workflow States in lookup lists not being populated after added or removed
  • Fixed - issue with Form Creator able to use Instant Publish to approve and publish form templates
  • Fixed - issue with Change Form Owner advanced workflow processing task when used in initial workflow
  • Fixed - issue caching under certain conditions in DNN 5.0
  • Fixed - issue with Conditional Visibility with file upload element
  • Fixed - issue with upload file type filter for file upload element
  • Fixed - issue with Reminder Notification when Notification Owner is not selected
  • Fixed - issue with validation on conditionally hidden or disabled fields in multi-page forms (05.00.02)
  • Fixed - issue with multiple conditional visibility fields exists in single form cell (05.00.02)
  • Fixed - issued with workflow Forms Details (via Workflow Manager and Report Manager) not displaying correctly for workflow steps that have advanced workflow processing tasks involved (05.00.02)
  • Fixed - issue with Javascript error when editing Cell Properties (05.00.03)
  • Fixed - issue Action Buttons not showing when Hide Action Buttons is enabled for certain pages (05.00.03)
  • Fixed - issued with ajax windows not centering properly for certain Skins in DNN 5.0 (05.00.03)

Version 04.02.02

  • New Feature - Data Archival:  the ability to archive form data for import and export between environments
  • New Feature - Field Element Tooltip: ability to assign a tooltip to a individual form field elements
  • Enhancements - Form Layout Designer:  added compatibility support for new default skin in DNN 4.9 or later
  • Enhancements - Look & Feel: modified the general look & feel to be inline with DNN standards
  • Bug fix: fixed issue with download attachments for anonymous user.

Click here to view the full change log

Version 05.01.06

Workflow Manager Enhancements

Template Manager Enhancements

Report Manager Enhancements

Other Enhancements & Fixes

  • Enhancement - allow sub-form (state-form) to be printed even if has not been submitted
  • Fixed - issue with the [OWNER] namespace does not parse properly in the NEW workflow state
  • Fixed - issue with Report Manager performing LIKE comparison instead of EQUAL operations for list type fields
  • Fixed - issue databound fields do not persist between pages
  • Fixed - issue PRINT button not displaying of no action buttons available
  • Fixed - issue with Custom Form Roles being cached even after a user role update
  • Fixed - issue with The base class includes the field 'FormLinksPanelTR' for cettain environments

 Minimum Requirements: 

  • Dotnetnuke versions 4.8 - 5.4 inclusive.
  • Microsoft SQL Server 2005 or later

 

Version 05.00.18

Workflow Manager Enhancements

  • Multi-templates Support  - added support for managing multiple form templates per Workflow Manager module instance
  • Multi-template Support - added the ability to view My Forms, Worklist and All Forms for multiple form templates
  • Multi-template Support - added support for filtering to a specific form template in multi-template mode
  • XML Data Export - added support for exporting form data to XML format.  (XML format compatible with standard .NET Data table object)
  • Reminder Notification - Added support for send reminder notifications if form is not submitted after a certain date
  • Read-only mode - changed disabled fields in read-only when viewing form in Print and Read-only mode
  • Print mode - Removed required image from fields in Print mode
  • Date Range - added support for Date Range search in Workflow Search view

Template Manager Enhancements

  • Template Views - added support for filtering different Views of Form Template listing
  • Workflow Conditional Visibility - added support for Conditional Visibility on Workflow actions
  • Template Usage Dashboard - added support for dashboard like view of Form Template Usage
  • View Access Log - added support for Viewing complete Access Log for form instances
  • Edit Form - overhauled the Edit Form Layout page (05.00.02)
    • Edit Field Element, Edit Cell Properties and Form Preview popups have been Ajaxified and are now displayed in the same Browser window
    • Reordered page properties to provide more estate for designing forms
    • Added the ability to customize the styling in both the Workflow Action Buttons and Form Page Navigation buttons bar

Report Manager Enhancements

  • Date Range - added support for Date Range search in Reports
  • XML Data Export - added support for exporting report data to XML format.  (XML format compatible with standard .NET Data table object)
  • Text Size limit - added support to display free-text fields with more than 4000 characters

Other Enhancements & Fixes

  • Added - support for non-standard FORM tokens in Reminder Notification
  • Added - support for default values for checkboxlist, radiobuttonlist and selectlist when using databinding
  • Added - the ability to assign Tab Index to data entry field elements (05.00.02)
  • Added - the ability to remember focus position upon an Ajax callback (05.00.02)
  • Added - the ability lock form template upon an Instant Development action (05.00.02)
  • Added - the ability to Preview Form in the same window in the main Template Listing and Template Details pages. (05.00.02)
  • Added - StartUpScript field element to support Javascript calls upon ajax callbacks (05.00.03)
  • Changed - Ajax popup windows to utilize maximun window size of the browser (05.00.03)
  • Fixed - issue Custom Report Templates not saving after Default Template is generated
  • Fixed - issue with Conditional Visibility (page level) not updating upon post back under certain condition
  • Fixed - issue with Workflow States in lookup lists not being populated after added or removed
  • Fixed - issue with Form Creator able to use Instant Publish to approve and publish form templates
  • Fixed - issue with Change Form Owner advanced workflow processing task when used in initial workflow
  • Fixed - issue caching under certain conditions in DNN 5.0
  • Fixed - issue with Conditional Visibility with file upload element
  • Fixed - issue with upload file type filter for file upload element
  • Fixed - issue with Reminder Notification when Notification Owner is not selected
  • Fixed - issue with validation on conditionally hidden or disabled fields in multi-page forms (05.00.02)
  • Fixed - issue with multiple conditional visibility fields exists in single form cell (05.00.02)
  • Fixed - issued with workflow Forms Details (via Workflow Manager and Report Manager) not displaying correctly for workflow steps that have advanced workflow processing tasks involved (05.00.02)
  • Fixed - issue with Javascript error when editing Cell Properties (05.00.03)
  • Fixed - issue Action Buttons not showing when Hide Action Buttons is enabled for certain pages (05.00.03)
  • Fixed - issued with ajax windows not centering properly for certain Skins in DNN 5.0 (05.00.03)

Version 04.02.02

  • New Feature - Data Archival:  the ability to archive form data for import and export between environments
  • New Feature - Field Element Tooltip: ability to assign a tooltip to a individual form field elements
  • Enhancements - Form Layout Designer:  added compatibility support for new default skin in DNN 4.9 or later
  • Enhancements - Look & Feel: modified the general look & feel to be inline with DNN standards
  • Bug fix: fixed issue with download attachments for anonymous user.

Click here to view the full change log

footer
Update :: February 09, 2012