Hi guys,
I had a separate post about using forms for datalists where I got some answers but not a very comprehensive description of how the setup should look like. And the current documentation is not very clear about setting up what I try to achieve.
long story short, I have a custom table that i want to display on the website and also have the ability to add and edit records.
I believe this should be acomplished with a combination of Datalist and Forms for datalists but it is a bit unclear how to connect the 2.
Displaying the records is pretty easy, I have done it a few times already.
Adding is also easy by using a dedicated Forms for Datalists and using the same table.
Edit functionality on the other hand, seems pretty unclear. I could not find a complete description on how to set it up. The template tag of EditLink returns 1 instead of a link and I am not sure how to use it.
Setting the default templates on the list surfaced the use of 2 URL parameters:FORM_ROW_ID and VIEW_ID
But when I created the link manually, I got this error:
System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.DataManagement.FormFrontend.GetFormRow(FormSetting form, String rowID, Int32 viewID) at Dynamicweb.DataManagement.FormFrontend.GetContent() at Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview)
Clearly, the module does not identify correctly the table or it does not have enough data.
My edit link looks like this: /add-new-skype-bet?FORM_ROW_ID=skypeBetsID&VIEW_ID=413
Is there any setting I need to make on the tabel? Or on the modules?
Can anybody describe a step-by-step setup of the above functionality?
Thank you,
Adrian