Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: Issue when attaching files into accounts.
Karna Taneja
Posts: 26
 
Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 3:31 AM
fiogf49gjkf0d

Hi,


I am getting an issue where when a user attach a file into SLX under Accounts: Attachments tab it seems to duplicate itself. I can see multiple copies of same attachment.


I tried attaching with Admin user and it is working fine.


Any idea/suggestion?


Thanks,


Karna

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 3:43 AM

Hi,


This sounds like an old bug. You need to edit the Attachments form and change the join on the RemoteAttachments table from an Inner to a Left Join (If I remember rightly)

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 3:48 AM
fiogf49gjkf0d

Yep, tought so! Found it (Assuming it is the same issue)


Duplicate values are displayed in the Account.Attachments tab


Defect ID: 1-51287 & 1-51314


Description:


Duplicate values are displayed in the Account:Attachments tab.


Two tables are used with the Attachments datagrid. Attachment and RemoteAttachments with a one to many relationship from Attachment to RemoteAttachments.  If the child table has multiple records in it for the same file then a network user will see multiple values for the same attachment.


SELECT A1.ATTACHID, A1.DESCRIPTION, A1.USERID, A1.ATTACHDATE, A1.FILESIZE, A2.STATUS A2_STATUS, A1.ACCOUNTID, A1.FILENAME FROM ATTACHMENT A1 LEFT OUTER JOIN REMOTEATTACHMENTS A2 ON (A1.ATTACHID=A2.ATTACHID) WHERE A1.ACCOUNTID = '<Accountid>'


Steps to reproduce:


This can be duplicated by having two remote users request the same attachment from the same account.  When the Account:Attachments tab is viewed from the host multiple results will be displayed for the same file.


Workaround:


Sub OnFormOpen


    Dim col


    InitSec


    Set col = grdAttach.Columns.Item("A2_STATUS") 'DNL


    If Not (col Is Nothing) Then


       col.Visible = Not gBlnHostDB


       Set col = Nothing


    End If


    'Fix begins here for duplicate attachments appear for network users


    Dim strCurrentUser, strSiteCode


    strCurrentUser = Application.BasicFunctions.CurrentUserID


    strSiteCode = Trim(GetField("PrimarySite", "UserSecurity", "UserID='" & strCurrentUser & "'"))


    strSQL = grdAttach.SQL


    strSQL = Replace(strSQL, "ON (A1.ATTACHID=A2.ATTACHID)", _


                             "ON (A1.ATTACHID=A2.ATTACHID) AND (A2.SITECODE='" & strSiteCode & "')")


    grdAttach.SQL = strSQL


    'End-Fix for duplicate attachments appear for network users


End Sub


Possible Resolution:


This is a know reported issue in SalesLogix version 7.0.1. To resolve:



  • Apply service pack 2,

  • Upgrade to version 7.2.1 or later


[Reply][Quote]
Karna Taneja
Posts: 26
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 4:04 AM

Thanks, We are using SLX V 7.0.2. Also I have checked the query in data grid. It is:


SELECT A1.ATTACHID, A1.DESCRIPTION, A1.USERID, A1.ATTACHDATE, A1.FILESIZE, A2.STATUS A2_STATUS, A1.ACCOUNTID, A1.FILENAME FROM ATTACHMENT A1 LEFT OUTER JOIN REMOTEATTACHMENTS A2 ON (A1.ATTACHID=A2.ATTACHID) WHERE A1.ACCOUNTID = :BindID


I guess this is the right one?


Also Wanted to know when we apply this solution,will it correct the previous duplicate entries under account:attachment?

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 4:08 AM
fiogf49gjkf0d

Thats the one!


Also, it will correct the previous 'duplicates' (They are not actually duplicates, just displayed as duplicates)

[Reply][Quote]
Karna Taneja
Posts: 26
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 4:33 AM
fiogf49gjkf0d

But still I can see multiple entries under that tab.


Also I ran this query for a account on database and there are multiple entries as well with same attachid.


 


 

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: Issue when attaching files into accounts.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 10 4:51 AM

Change the join from a Left to an Inner on the Account | Attachments view. Failing that, upgrade to SP2

[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 © 2024 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): 11/26/2024 2:39:56 AM