You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a bit of context: Years ago I helped work on a WPF project running on DevExpress. One of the things that blew my mind coming from Web Development was its Scaffolding feature: We just had to create our Database, and then the scaffolder tool would connect to it, parse it, then create views for every single table (CollectionView and ItemView), along with any table they are related to (DetailView). I cannot overstate how much time that saved us during development, as it took care of CRUD in a way I had never experienced before.
So you can see why I was quite excited when I discovered Blitz and its own CRUD generation capabilities. In my mind, either this could be done out-of-the-box, or I could create such a feature myself through the templating engine.
So, using the example from the docs of a Questions table with Choice children, we'd get something that looks like this.
The CollectionView would look like this:
While the ItemView of a particular question would show the details of the question, along with a data table for every connected table DetailView, in this case only Choice.
And so my question is: I'm wondering if creating something like that would be possible through Blitz Templates. I'm not sure how much control the templating engine gives me, and if such a thing is even possible. The template documentation was anemic unfortunately. So if you believe this can be done, any insight would be invaluable.
Apologies for the wall of text. And thank you for your time!
Good day to all.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
For a bit of context: Years ago I helped work on a WPF project running on DevExpress. One of the things that blew my mind coming from Web Development was its Scaffolding feature: We just had to create our Database, and then the scaffolder tool would connect to it, parse it, then create views for every single table (CollectionView and ItemView), along with any table they are related to (DetailView). I cannot overstate how much time that saved us during development, as it took care of CRUD in a way I had never experienced before.
You can see it in action here.
So you can see why I was quite excited when I discovered Blitz and its own CRUD generation capabilities. In my mind, either this could be done out-of-the-box, or I could create such a feature myself through the templating engine.
So, using the example from the docs of a
Questions
table withChoice
children, we'd get something that looks like this.The
CollectionView
would look like this:While the
ItemView
of a particular question would show the details of the question, along with a data table for every connected tableDetailView
, in this case onlyChoice
.And so my question is: I'm wondering if creating something like that would be possible through Blitz Templates. I'm not sure how much control the templating engine gives me, and if such a thing is even possible. The template documentation was anemic unfortunately. So if you believe this can be done, any insight would be invaluable.
Apologies for the wall of text. And thank you for your time!
Good day to all.
Beta Was this translation helpful? Give feedback.
All reactions