8/24/2025 8:38:09 AM
|
|
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!
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.
|
|
|
|
set "timeless" check box on scheduling new activity
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? |
|
|
|
Re: set "timeless" check box on scheduling new activity
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. |
|
|
|
Re: set "timeless" check box on scheduling new activity
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 |
|
|
| |
|
Re: set "timeless" check box on scheduling new activity
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. |
|
|
| |
|
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!
|
|
|
|
|
|
|
|