Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 8, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Custom Tasklet with two or more tasks
Tim Zech
Posts: 40
 
Custom Tasklet with two or more tasksYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 12 8:34 AM
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?


 

[Reply][Quote]
Tim Zech
Posts: 40
 
Re: Custom Tasklet with two or more tasksYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 12 7:38 AM
fiogf49gjkf0d

Maybe I should provide some more information:


We're using a slightly customized SLX 7.5.4 via Web Client.


I don't know what more to say. Is there any information you'll eventually need?

[Reply][Quote]
Tim Zech
Posts: 40
 
Re: Custom Tasklet with two or more tasksYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 12 3:55 AM
fiogf49gjkf0d

Okay. Since I created the example only for this thread, the error couldn't occur when testing it. In my original code I made a mistake on the asp:linkbutton:


    <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>

On the second line I forgot the dollar sign on the resource definition (<%$). With a blank text the asp control won't be rendered. That was the problem.


So the code actually works perfectly :D

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/8/2025 12:35:20 AM