Display Class Data on Form

Brenden Kehren asked on June 6, 2014 14:31

Sounds simple enough I thought but not so much.

I've created a custom module very similar to how Online/Biz Forms work and I've worked far too long to find the correct user control to display the data. I'm able to get the DataClassInfo back and capture what is needed, just not able to properly display a form for a user to fill out. Any suggestions/recommendations?

Correct Answer

Joshua Adams answered on June 9, 2014 08:29

There is a control called the <cms:dataform> that has a property will the class name. This will load in a form based on that class definition I think. Is this what you are looking for?

2 votesVote for this answer Unmark Correct answer

Recent Answers


Stefan Lorenz answered on June 8, 2014 14:07

I'm interested in this, too! There is a control to show a custom table's form, so having a form control to show a module class form shouldn't be very different.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 9, 2014 13:05

Thanks Joshua!

I had used that before and thought I set the ClassName property but evidently, I was passing the wrong value. I knew it was something simple.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 10, 2014 07:37

So I have this working perfect in a page but when I place the <cms:DataForm> in a user control and place the user control in the page, it won't load the form. I've got my OnInit method gathering the class name in the page and passing it to the user control. Any ideas on this one?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 10, 2014 07:47

Ignore that, its too early in the morning, I was looking at the wrong page/control...

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.