Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to dynamically generate and deploy questionnaires to track patient progress [closed]

$
0
0

I am working on a web app in which I want to allow the administrator to generate tests to monitor the patients progress through a treatment program. I am able to successfully do this using a "brute force" approach in which I hard code a model with 6 questions - 36 individual fields and then use the model with individual forms to generate tests. Here's what it looks like:

Main Interface

This generates a test instance that looks like this...

Sample Test

which when submitted and saved in the database looks like this...

Test Answers

However, when I create a Model for the form that includes 6 rows of test items in array that I populate from a database table that I iterate through, it blows up with the message:

InvalidOperationException: EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these.Microsoft.AspNetCore.Components.Forms.EditForm.OnParametersSet()

I've included the source code to my attempts on Github at https://github.com/rswetnam/SequentialTests. Any help figuring this out greatly appreciated.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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