Developer forum

Forum » Templates » Datalist: Edit row

Datalist: Edit row

Rene Poulsen
Reply
Hi,

Haven't used datalists much, so I hope some of you can help me out :-)

I'm creating an intranet where users can post a message through the forms dw7 module and people can reply to those messages as well. I want a specific user to be able to edit each message, but I can't get the "Edit row" feature to work properly - or in other words, I don't know how to get it to work :-)

I have checked "Show 'Edit row' link" and I have chosen a Form page for the datalist edit. But how does that form page has to look? Do i just place the forms dw7 module on the page? If yes, how do I get a form with fields that are not just empty, but actually containing the data from the post i chose to edit?

Please let me know if you don't understand what I need to do.

Thanks in advance.

Replies

 
Vladimir
Reply
Hi Rene!
You should choose also "Show link to detail view " in module paragraph settings. Link for editing is rendered only in detail view.

Best regards,
Vladimir

 
Marco Johannesen
Reply
You could add your ID to the datalist and then do
        <!--@If(Row.ColumnName="ID")-->
        <a class="edit_button" href="Default.aspx?ID=ID_ON_EDIT_PAGE8&FORM_ROW_ID=ID%3d<!--@Row.Value-->&VIEW_ID=YOUR_VIEW_ID">Edit</a>
        <!--@EndIf-->

 

You must be logged in to post in the forum