Repeating pages using a data source input

Repeating Pages using a Data Source Input

It is possible to use a question as an input on a Data Source question to allow a user to select how many pages to display on a page repeater at run time. The data source needs to call a SQL Stored Procedure which returns a sequential list of numbers based on a maximum number specified in the question.