A collection grid allows you to create one question and collect multiple pieces of information. For example, the online application template lets you collect several schools the applicant previously attended, but treats it as one piece of information. If you are sending information back to EX, this means the information will be stored as one row.
Each collection grid should have one or more fields of information that it is collecting. Each field or question the grid is collecting is called a source question. All source questions, including the button that adds the information to the collection grid, is tied to a Stored Procedure.
1. Log in to the campus portal as an administrator and access EX FormFlow - Forms.
2. Click Manage Forms. The Manage Forms page appears.
3. Click on the name of the form you want to update. The form page appears.
4. From the Tools menu, select Stored Procedures. The Procedures page appears.
5. Click New Procedure.
6. From the Database drop-down, select the database from which the stored procedure is derived.
7. For multiple response questions, such as the Collection Grid, you can click New Multi-Response Procedure. This will tell the form to execute the procedure once FOR EACH response to the question.
8. From the This statement should be executed on drop-down, select
· Submit occurs when the Event action Form: Submit is executed. All Save statements are executed automatically prior to the Submit statements being executed.
· Save occurs when the Event action Form: Save is executed.
· Workflow occurs upon receiving a command from the Workflow portlet. This command is sent when a document progresses from a stage that has the “Execute Statements” setting checked
9. From the Procedure drop-down, select the procedure to be executed. The table drop-down options appear. Example
Sample stored procedure
CREATE PROCEDURE dbo.AAA_spNameUpdateSubmission
@ID_NUM int,
@FIRST_NAME varchar(30),
@LAST_NAME varchar(30)
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO AAA_NAME_UPDATES (ID_NUM, FIRST_NAME, LAST_NAME) VALUES (@ID_NUM, @FIRST_NAME, @LAST_NAME)
END
Procedures are created in SQL Server. |
10. From the parameter table drop-downs, select the form question you are mapping to the parameter or the following:
· NULL will enter in a null value.
· Custom Value is defined text that is always be inserted into the column.
· Submission as PNG converts the final form submission into a PNG file and stores it as a byte array in the database. (This functionality is not supported for CX.)
· Submission as PDF converts the final form submission into a PDF file and stores it as a byte array in the database. (This functionality is not supported for CX.)
· Collection Grid: * values indicate the column in the collection grid that should be referenced when inserting into the field. These questions are “Source” questions. Collection Grid: Row Number is generated at submission time and represents the row order where the data exists in the user input.
11. Click Save.
12. Repeat steps 5 - 10 to create as many stored procedures as needed.
13. Click Done.
Create a Collection Grid on a Form
1. Log in to the campus portal as an administrator and access EX FormFlow - Forms.
2. Click Manage Forms. The Manage Forms page appears.
3. Click on the name of the form you want to update. The Form page appears.
4. From the Tools menu, select Stored Procedures. The Procedures page appears.
5. For multiple response questions, such as the Collection Grid, you can click New Multi-Response Procedure. This will tell the form to execute the procedure once FOR EACH response to the question.
6. From the This statement should be executed on drop-down, select
· Submit occurs when the Event action Form: Submit is executed. All Save statements are executed automatically prior to the Submit statements being executed.
· Save occurs when the Event action Form: Save is executed.
· Workflow occurs upon receiving a command from the Workflow portlet. This command is sent when a document progresses from a stage that has the “Execute Statements” setting checked
7. From the Procedure drop-down, select the procedure to be executed. The table drop-down options appear. Example
Sample stored procedure
CREATE PROCEDURE dbo.AAA_spNameUpdateSubmission
@ID_NUM int,
@FIRST_NAME varchar(30),
@LAST_NAME varchar(30)
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO AAA_NAME_UPDATES (ID_NUM, FIRST_NAME, LAST_NAME) VALUES (@ID_NUM, @FIRST_NAME, @LAST_NAME)
END
Procedures are created in SQL Server. |
8. Select the stored procedures you want to execute.
9. From the parameter table drop-downs, select the form question you are mapping to the parameter or the following:
· Collection Grid: * values indicate the column in the collection grid that should be referenced when inserting into the field. These questions are “Source” questions. Collection Grid: Row Number is generated at submission time and represents the row order where the data exists in the user input.
10. Click Save.
11. Click Done.
What kind of stored procedure should I use for a collection grid?
A stored multi-response procedure should be used for a collection grid. This will tell the form to execute the procedure once FOR EACH response to the question.