Login / Register  search  syndication  about

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

SalesLogix 7.5.4 web client error when Generating Print View and having toolbar buttons with Role Security

 I recently ran into an issue looking at the SalesLogix web client's Ticket detail screen.  There is a Print Preview button there that invokes the TicketDetailPrintView.aspx page.  When navigating to the page however, I get an error like:

c:\Inetpub\wwwroot\SlxClient\SmartParts\Ticket\TicketDetails_PrintView.ascx(375): error CS0103: The name 'cmdSave' does not exist in the current context 

Looking at the ascx file that is generated from having the "Generate Print Preview" proprty set on the quick form I can see the following block of code causing the issue:

if (!_roleSecurityService.HasAccess("ENTITIES/TICKET/EDIT"))
{
cmdTicketActivities.Visible = false;
}

The Save button has applied security set so that it only is visible if the current user has edit rights to the ticket. The only issue is that, on the print preview form that is generated, the toolbar buttons are not rendered on the control, however the code to control visibility based on role security still exists.  So we get an error because no control called cmdSave has been created on the print view.

<SalesLogix:SmartPartToolsContainer runat="server" ID="TicketActivities_PrintView_LTools" ToolbarLocation="left">
   
</SalesLogix:SmartPartToolsContainer>
<SalesLogix:SmartPartToolsContainer runat="server" ID="TicketActivities_PrintView_RTools" ToolbarLocation="right">
   
</SalesLogix:SmartPartToolsContainer>

 Lame.

What's This?
  
Bookmark and Share

About Kris Halsrud

   Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.


Related Content
   Saleslogix v7.5.4 Web Client - Unable to Drag and Drop files
I recently had a customer who had one user who was unable to use the drag and drop feature of the Saleslo
Posted on Apr 23, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Sorting an SData base grid in the SalesLogix web client
In the SalesLogix 7.5.4+ web client the "editable grid" control that allows for inline editing
Posted on Aug 16, 2013 by Kris Halsrud to Kris Halsrud's Blog
 
   Calling refresh from the LinkHandler.cs Class
I recently had to figure out how to make the detail view in the SalesLogix 7.5.4 web client refresh after
Posted on Feb 01, 2013 by Kris Halsrud to Kris Halsrud's Blog
 
   Inability to edit or delete sales order or Opportunity products in the SalesLogix 7.5.4 web client
If you are running IIS 7 there is an important step you need to do in order to allow the SalesLogix web c
Posted on Nov 16, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
   A rounding issue in the SalesLogix 7.5.4 Sales Order area and how to fix it.
Those using the Sales Order area in SalesLogix have likely run into a bug where applying discounts causes
Posted on Jul 18, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register