Am I able to add multiple Actions via the overridden ModuleActions Property when implementing IActionable? Thus far I've been unsuccess ful.
Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
Get
Dim NavText() As String = {"Contact.Search.Text", _
"Contact.Add.Text", _
"BusinessContact.Add.Text", _
"PassengerContact.Add.Text", _
"Contact.View.Text" _
}
Dim NavUrl() As String = { _
NavigateURL(PortalSettings.ActiveTab.TabID, "Search", "mid=" & ModuleId.ToString()), _
EditUrl(), _
NavigateURL(PortalSettings.ActiveTab.TabID, "Search", "mid=" & ModuleId.ToString()), _
EditUrl() & "type=1", _
EditUrl() & "type=2" _
}
Dim SecurityAccess() As Integer = {SecurityAccessLevel.View, SecurityAccessLevel.Edit, SecurityAccessLevel.Edit, SecurityAccessLevel.Edit, SecurityAccessLevel.View}
For i As Integer = 0 To UBound(NavUrl)
Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
Actions.Add( _
GetNextActionID, _
Localization.GetString(NavText(i), LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
NavUrl(i), _
False, _
SecurityAccess(i), _
True, _
False _
)
Next i
Return Actions
End Get
End Property