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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...
Byrnes
Posts: 43
 
Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 12:42 PM
fiogf49gjkf0d
We just upgraded our system to 7.0 and now when completing a scheduled activity, (phone call, etc) the notes added upon completion are not saved when the activity is converted into a history record. Note that they are saved when completing an unscheduled activity - we've verified that this is a (rather large and annoying) bug out of the box. (We got the exact same results on a fresh install...)

After testing this I've discovered that the history record details are copied directly from the Activity details from the database directly - completely ignoring the memo field on the form and the added/changed text in it.

I'm attempting to remedy this issue as this is very important core functionality and we need it to work properly...

I'm digging around the scripts and I find that everything relating to this seems to be placed into System:Global Activity. It looks like my best option would be to insert code in the 'Sub Application_BeforeCreateHistory(Activity, Sender)' area that will update the Activity record notes with the text from the memo field, so when it creates the History record directly from the database, the new text will be there.

I'm able to get the text by assigning a variable to Activity.Notes (or Activity.Longnotes) but I have no idea how to get the Activity ID to find the exact record to update.

The only two properties passed to this function are Activity (which, strangely enough lacks an ActivityID) and Sender, which I'm not making much progress with. Heck, my script blows up when I have 'msgbox Sender.name' so I'm pretty sure sender is null or unusable...

Any thoughts on how I can fix this?

Thanks...
[Reply][Quote]
Byrnes
Posts: 43
 
Re: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 2:48 PM
fiogf49gjkf0d
Here's a fix I found on the newsgroups for this problem. Simply edit Application_AfterCompleteActivity in System:Global Activity to appear as the following:

Sub Application_AfterCompleteActivity(Activity, HistoryID)
'Temporary Fix for Defect 1-47955
' Completing activities lose notes
' TO BE officially fixed in 7.0 HotFix 2
dim rs, sql
sql = "SELECT LongNotes FROM History WHERE HistoryID = '"
sql = sql & HistoryID & "'"
set rs = CreateObject("ADODB.Recordset")
rs.CursorLocation = 3 'adUseClient
rs.CursorType = 3 'adOpenStatic
rs.LockType = 3 'adLockOptimistic
rs.Open sql, application.GetNewConnection
'See if the LongNotes got copied correctly - if not, fix it.
If Not (("" & rs.Fields("LongNotes").Value) = Activity.LongNotes) Then
rs.Fields("LongNotes").Value = Activity.LongNotes
rs.Update
End if
rs.Close
RefreshMySalesLogix
End Sub
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 3:43 PM
fiogf49gjkf0d
I just wanted to point out for anyone else that comes accross this thread that this is listed as defect #1-47955 and is fixed in SLX7 HF2 (just released today!)

-Ryan
[Reply][Quote]
Byrnes
Posts: 43
 
Re: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 3:49 PM
fiogf49gjkf0d
Released today?! That's my luck... sheesh...
thanks Ryan....
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 4:21 PM
fiogf49gjkf0d
Hehe. About an hour and a half ago
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Notes not saved when completing scheduled activities in 7.0 - Attempting a work around, could use some help...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 06 5:01 PM
fiogf49gjkf0d
(to Business Partners). I don't see any hotfixes listed on the support site yet. I suppose that'll happen shortly.
[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 10:59:18 PM