Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 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: set "timeless" check box on scheduling new activity
topknot
Posts: 16
 
set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 08 4:36 PM
Hello,
I want that "timeless" check box was checked by default when user schedule new activity. I need to call that dialog from my code.

it seems like neither

Application.BasicFunctions.CreateActivity

no

Application.BasicFunctions.DoInvoke "Function","Schedule:PhoneCall"

have functionality to specify this property.

For some reason, latter solution with DoInvoke seems to have that checkbox checked, but not in all SXL databases (probably exist something else, what affect this behavior). This confuses me further.

Is there a way how this functionality may be controlled? Maybe some global settings for this present? or maybe I can somehow obtain schedule dialog object and set those control in it after creation?
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Jun 08 12:23 AM
You can set this in the client options for the user. Tools > Options > Activities > select activity type and change the time in the drop down. I am on an older version but I imagine the option should still be there.
[Reply][Quote]
Lee
Posts: 22
 
Re: set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Jun 08 7:50 AM
You can use the following code to alter any setting you wish... I've copied it from one of my customisations so you would have to bend to suit (not sure if its the best coding in the world but it works for me!):

set objSLXDB = new SLX_DB

set objRS = objSLXDB.getnewrecordset

strsql = "select * from Activity where 1=2"

objRS.open strsql, objSLXDB.Connection

objRS.addnew

objRS.fields("ActivityID").value = Application.BasicFunctions.GetIDFor("Activity")
objRS.fields("TYPE").value = "262147"
objRS.fields("ACCOUNTID").value = Application.BasicFunctions.CurrentAccountID
objRS.fields("CONTACTID").value = Application.BasicFunctions.CurrentContactID
objRS.fields("OPPORTUNITYID").value = Application.BasicFunctions.CurrentOpportunityID
objRS.fields("PROJECTID").value = ""
objRS.fields("ACCOUNTNAME").value = strAccount
objRS.fields("CONTACTNAME").value = strLast & ", " & strFirst
objRS.fields("OPPORTUNITYNAME").value = strOpportunity
objRS.fields("PHONENUMBER").value = ""
objRS.fields("PRIORITY").value = "None"
objRS.fields("CATEGORY").value = "Category"
objRS.fields("STARTDATE").value = newDate & " 00:00:05"
objRS.fields("DURATION").value = "0"
objRS.fields("DESCRIPTION").value = "Description"
objRS.fields("ALARM").value = "T"
objRS.fields("ALARMTIME").value = alarmDate & " 23:45:05"
objRS.fields("ACTIVITYBASEDON").value = ""
objRS.fields("PROCESSID").value = ""
objRS.fields("PROCESSNODE").value = ""
objRS.fields("RECURRING").value = "F"
'objRS.fields("RECURITERATIONS").value = ""
'objRS.fields("RECURPERIOD").value = ""
'objRS.fields("RECURPERIODSPEC").value = ""
'objRS.fields("RECURSKIP").value = ""
objRS.fields("TIMELESS").value = "T"
objRS.fields("ROLLOVER").value = "F"
objRS.fields("USERID").value = "U6UJ9A00005R"
objRS.fields("ORIGINALDATE").value = newDate & " 00:00:05"
objRS.fields("CREATEDATE").value = Now
objRS.fields("CREATEUSER").value = Application.BasicFunctions.CurrentUserID
objRS.fields("MODIFYDATE").value = Now
objRS.fields("MODIFYUSER").value = Application.BasicFunctions.CurrentUserID
objRS.fields("NOTES").value = ""
objRS.fields("LONGNOTES").value = ""
objRS.fields("ATTACHMENT").value = ""
objRS.fields("FOREIGNID1").value = ""
objRS.fields("FOREIGNID2").value = ""
objRS.fields("FOREIGNID3").value = ""
objRS.fields("FOREIGNID4").value = ""
objRS.fields("USERDEF1").value = ""
objRS.fields("USERDEF2").value = ""
objRS.fields("USERDEF3").value = ""
objRS.fields("TICKETID").value = ""

objRS.update

objRS.close

set objSLXDB = nothing
set objRS = nothing
[Reply][Quote]
Martin Rudnick
Posts: 52
 
Re: set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Jun 08 9:21 AM
If on version 7, you can change the property on the activity form to Unchecked
[Reply][Quote]
topknot
Posts: 16
 
Re: set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Jun 08 6:05 PM
2 Martin, 2 Leon:
Sorry for not specifying in clearly previously, I'm on version 6.2.6.1007 and I have following options in tools -> options -> activities:
http://i73.photobucket.com/albums/i219/atthe/355_options.png (not sure if forum supports images, so direct link to photobucket).
I can't see that settings there, maybe I just blind?

2 Lee:
Thanks for the code, but the idea is not to change existing activity, but set check box in scheduling dialog when it opens, and then user will decide - leave it or clear. They want default to be checked.
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: set "timeless" check box on scheduling new activityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Jun 08 12:14 AM
Second drop down in the "When Scheduling Prompt For" Changing to "off" for each type of activity should leave the "timeless" check box checked.
[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/24/2025 9:12:18 AM