Hello,
I have a stored procedure that I have succesfully attached to in the connector but when I go to add an expression there is no result for me to add. That is, the box "Choose Published Fields" pops up but there are no fields to choose.
What do I need to do with my stored procedure for that to happen?
Is there any guidelines as to what the stored procedure should be using as output?
Cheers
Leo
Tags:
Permalink Reply by Keith Govender on February 14, 2012 at 2:16pm
Let me know if this does help you.
Sage Accpac Intelligence supports the use of Stored Procedures as the source for Data Containers for certain Database systems. For a list of the supported systems please go to Stored Procedure Supported Databases.
Adding a Stored Procedure Container - Step by Step
When prompted to Specify the Stored Procedure details enter the name of the Stored Procedure and any Input Arguments for the stored Procedure. In the example below the Stored Procedure is called sp_sales_by_region and it expects a integer argument for the Year and a string argument for the Continent.
Dynamically Setting Stored Procedures Input Arguments at Report Run Time - Step by Step:
To dynamically parameterize reports that use a Stored Procedure that expects input arguments the Container must be used in conjunction with Pass Through Variable(s). The defined Pass Through Variables must in turn be defined as Parameters on the report.
@YEAR@, @CONTINENT@where @YEAR@ and @CONTINENT@ are the Expression Source (or Variable Code) property values of defined Pass Through Variables within the Container. Note: When a stored procedure expects non numeric (e.g. text based inputs) then the Variable code must be prefixed and suffixed with a single quotation mark (').
The following limitations exist when using Stored Procedures as Data Containers:
© 2012 Created by Admin.