MOST IMPORTANT: Read documentation and, also, check out Michael Washington's site - adefwebserver.com for a world of help... Having said that, here is a quick tip:
1. Your class in View control must implement IActionable:
public class CaseList : DotNetNuke.Entities.Modules.PortalModuleBase,
DotNetNuke.Entities.Modules.IActionable
2. You'll need to implement the following method.
public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
{
get
{
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection Actions = new DotNetNuke.Entities.Modules.Actions.ModuleActionCollection();
Actions.Add(GetNextActionID(),
"Edit My Record", DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent, "", "",
EditUrl("Edit"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
return Actions;
}
}
3. Finally, if you want a button click, for example, to take your user to edit form, use EditURL() method to create a url to that Edit form. There are several overloads for editUrl - so choose the one you need...