fiogf49gjkf0d Hi, I've tried adding a new task to the common tasks tasklet but I gave up pretty early. Then I found the User tasklet which - after some adjustments - works fine for me on most other entities. Now I'd like to add another entry to the task list. My code looks like this:
<ul id="ticketTaskletContainer" class="task-pane-item-common-tasklist"><br /> <li><asp:LinkButton id="lnkPunchOutTickets" runat="server" Text="<%$ Resources: punchoutticket_link %>"></asp:LinkButton></li> <li><asp:LinkButton id="lnkPunchInTickets" runat="server" Text="<% Resources: punchinticket_link %>"></asp:LinkButton></li> </ul>
<script type="text/javascript" language="javascript"> $(document).ready(function () { var config = { 'links': [{ 'id': '<%= lnkPunchOutTickets.ClientID %>', 'linkText': '<%= GetLocalResourceObject("punchoutticket_link") %>', 'hasAccess': '<%= HasAccess("Entities\\Ticket\\Edit") %>', 'viewModes': ['list'], 'serverCommand': 'PunchOut' }, { 'id': '<%= lnkPunchInTickets.ClientID %>', 'linkText': '<%= GetLocalResourceObject("punchinticket_link") %>', 'hasAccess': '<%= HasAccess("Entities\\Ticket\\Edit") %>', 'viewModes': ['list'], 'serverCommand': 'PunchIn' }], 'entityType': 'ITicket', 'linkContainer': $("#ticketTaskletContainer") // specify which container to use };
var ticketTasklet = new Sage.TaskPane.Tasklet(config); ticketTasklet.showLinks(); }); </script>
The problem is: the second entry doesn't appear. I can't find any documentation about adding custom tasklets to the portal so I don't even know if my approach to adding a second task was right. Can anybody help me with that?
|