8/25/2025 9:30:38 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.
|
|
|
|
CreateTempGroup groupName not working?
Posted: 14 Feb 08 11:39 AM
|
I'm having a problem with CreateTempGroup that I haven't been able to figure out how to work around. I searched these forums, but it doesn't look like anyone is quite having the problem I'm seeing.
I'm trying to use the following code: application.BasicFunctions.CreateTempGroup "ACCOUNT", "MY GROUP", "ACCOUNTID", " = ", "'AFJMGA30003Q'", ""
I've tried a few variations of this ("ACCOUNT:MY GROUP" as the group name; "ACCOUNT:ACCOUNTID" as the field name) with the same result. This is a simplified version of the CreateTempGroup to the code that I'm actually using (I have a larger query - I'm not just returning a single accountID), but it gives the same results.
However, every single time I run this line, instead of creating 'MY GROUP', I end up getting the accountID specified in the Lookup Results group, which is unacceptable for my current requirements. 'MY GROUP' does not currently exist anywhere in the system (it doesn't help if it does already exist though).
I see this behavior on versions 6.26, 7.01, and 7.21 of Saleslogix.
Interestingly enough, this works:
application.BasicFunctions.CreateAdHocGroup "account", "MYGROUP", gResults, "", ""
But I want to be able to update the return results to my group dynamically.
Has anyone seen this before, and have any advice how to work around it?
|
|
|
|
Re: CreateTempGroup groupName not working?
Posted: 03 Apr 08 2:45 PM
|
Brian, I have been able to get CreateTempGroup working using:
StrSQL = "Select Distinct a.ContactID from Contact a" application.BasicFunctions.CreateTempGroup "contact", "AAA4", "contactid", " IN ", "( " & strsql & " )", ""
But my results are displaying under "Lookup Results" and not creating a Group named "AAA4" as I want them to. What I want is to have the group saved as "AAA4"(or whatever ), does anyone know how to do that?
Thanks! |
|
|
|
Re: CreateTempGroup groupName not working?
Posted: 24 Apr 08 11:13 AM
|
Any more information on this topic? I'd love to be able to create and save a dynamic group through code if possible. I've got the temporary 'Lookup results' group down pat, but to save a group and have it be dynamic would be a lifesaver.....
|
|
|
|
Re: CreateTempGroup groupName not working?
Posted: 25 Apr 08 8:20 AM
|
No Can Do.. easily..
You cannot (easily) create a new (normal) dynamic group via code... Only AdhocGroups.
You would have to mess with the meta-data of SalesLogix.. and in a bunch of places. In the end you would have a trashed plugin table. -- RJLedger - rjlSystems |
|
|
| |
|
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!
|
|
|
|
|
|
|
|