Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 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!
 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: Complete and Create Activity - Custom (UPDATED)
Andrew Grandin
Posts: 272
 
Complete and Create Activity - Custom (UPDATED)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 09 8:43 AM
Hi All, i have completed a customisation on the Activity Detals View form. I have added a button which saves the details on the form (mimic of OK) then fires a custom form i have made asking the user some questions related to the activity they have carried out.

Once the user has answered the final question the complete activity screen comes up for them to complete the activity and the next activity in the process if automatically fired. I use the following code to complete the activity and create the next one:

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim closeid
closeid = Application.BasicFunctions.GlobalInfoFor ("ActivityPrimaryKey")
Dim strActID9
strActID9 = Application.BasicFunctions.CompleteActivity(closeid)
notes = getfield("NOTES","sysdba.HISTORY","ACTIVITYID = '" & closeid & "'")

Dim strActID
Dim user
Dim cid
Dim regarding

user = Application.BasicFunctions.CurrentUserID
Dim acc
acc = Application.BasicFunctions.GlobalInfoFor ("SCAccount")
Dim contact
contact = Application.BasicFunctions.GlobalInfoFor ("SCContact")
Dim opp
opp = Application.BasicFunctions.GlobalInfoFor ("SCOpp")

if status = "CIC First" then
regarding = "CIC Second"
else if status = "CIC Second" then
regarding = "CIC Final"
else
regarding = "Deferred"
end if
end if
if outcome = "Deferred" then
exit sub
else
strActID = Application.BasicFunctions.CreateActivity("Phone Call", contact, opp, regarding, notes, user)
if strActID = "" then
msgbox "User Cancelled"
Else
'msgbox "Activity created: " & strActID
End If
end if
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Now when the second activity is created the Alarm check box in UNCHECKED. But when the user clicks OK to actually schedule the activity the alarm box appears saying the activity is overdue. When the user goes back in to the activity the alarm box is checked.

Since the OK button saves the details on the form how is the Alarm box getting checked????? Any ideas?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: Complete and Create Activity - CustomYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Oct 09 3:44 AM
Hi Guys, After a but more testing i have found the problem but still not sure of the solution. When i call the create activity form the start time defaults to now. When the user clicks ok an alarm automatically fires despite being unchecked as the activity is become overdue immediately. I have tested this with activities scheduled normally having nothing to do with my process and it seems you can not remove the alarm from an overdue activity.
The following code i use to create the activity lets you pass certain variables but is there any way to set the start time when the create screen pops up? If not i will have to rely on users to change the time which id prefer not to have to do!!

strActID = Application.BasicFunctions.CreateActivity("Phone Call", contact, opp, regarding, notes, user)
[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): 8/29/2025 3:21:53 PM