Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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: Creating a group from a grid
Jordan
Posts: 61
 
Creating a group from a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Nov 09 11:34 AM
A grid has existed with AccountIDs (invisible). What I need is as follows:
(1) there is a button "Create group" on the form.
(2) After the button is clicked, a group based on the grid will be created on the fly and displayed.

Is it possible?
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Creating a group from a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Nov 09 3:43 AM
Yes, very much so - you simply grab the id's and then create a tempadhocgroup from that. So, simply create a loop, GetCurrentField("ACCOUNTID") and push that into a string/array. You can then build the group from that.
[Reply][Quote]
Jordan
Posts: 61
 
Re: Creating a group from a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Nov 09 11:06 AM
Thanks Mike. I'd like to conform something more:

For example, if the structure of my grid is AccountID, Account (in the Account table) and Expiry Date (in a custom SLX table “X” which has an one to one relationship with Account table), in terms of

CreateTempAdHocGroup
Function Creates a temporary ad hoc group from a list of CRLF keys.
Object Application.BasicFunctions.CreateTempAdHocGroup
Syntax CreateTempAdHocGroup MainTable, GroupName, IDs, StartingID
Parameters
MainTable (String) Name of the Main Table this group is based on.
GroupName (String) Name of the group to be created.
IDs (String) A CRLF delimited list of Keys from the Main Table.
StartingID (String) First ID within the ID list to begin creation from. If empty, the complete ID list is used.

(1) should the Main Table be “Account” or “Account JOIN X ON Account.AccountID = X.AccountID” ?
(2) if there are there are 3 records on the grid and the AcccountIDs are A6UJ9A006QLK, A6UJ9A006QM6 and A6UJ9A006QLR, Does “(String) A CRLF delimited list of Keys from the Main Table” mean
lDs = “A6UJ9A006QLK” & vbCRLF & “A6UJ9A006QM6” & vbCRLF & “A6UJ9A006QLR” ?
(3) what should be the StartingID in this case?
(4) how to populate the Layout in the group in this case if we want to display the AccountID, Account and Expiry Date in the group?

Thanks
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Creating a group from a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Nov 09 1:26 PM

1) Will be Account (has to relate to T/A/C/O)
2) Yes, it does
3) Nothing, just leave blank
4) You cannot - it will inhert the layout from the options for the user.

Regards
Mike
[Reply][Quote]
Jordan
Posts: 61
 
Re: Creating a group from a gridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 09 10:47 AM
Thanks Mike
[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): 7/8/2025 5:40:44 PM