Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

build a data entry form on the fly, not knowing in advance how many rows I'll need

$
0
0

I'm trying to figure out how to build a data entry form on the fly, not knowing in advance how many rows I'll need.

This is for a system that will record the user's responses to Joint Commission Standards review.

A user enters/selects two parameters in a form
* typeOfAudit (inpatient or outpatient as radio buttons)
* typeOfReviewer (tech or provider as radio buttons)

The typeOfAudit and typeOfReviewer parameters are passed to a stored procedure run against a sql table returning the standards that need to be reviewed.


The standards are a period-separated string in the form AA.NN.NN.NN, e.g., IM.02.02.01, where AA = alpha and NN = numeric (often with a leading zero).  I'll be using the standard later to write to a table holding the user's responses for each standard.

The number of standards returned varies depending on the parameters passed to the sproc.

In addition to displaying the standard itself (which is read-only) I need to have 3 columns for user input:
*numerator
*denominator
*comment

Each row of the input columns relates to that particular standard, so I imagine we'll need to build in some kind of reference to the standard.

I'm trying to figure out how to render the input form.  Do I use a table or some type of grid control? 
Obviously I need to iterate through the standards as I build the input form; is a for-each the best mechanism?
The standard itself is no problem, but I'm not sure how to create and reference the additional input columns.

I'm new to WebMatrix but am impressed with the simplicity of the Razor approach.  This is my most ambitious test so far of WebMatrix.

Thanks in advance for any guidance.

Christian Bahnsen


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>