7/8/2025 5:29:02 PM
|
|
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.
|
|
|
|
Creating a group from a grid
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? |
|
|
|
Re: Creating a group from a grid
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. |
|
|
|
Re: Creating a group from a grid
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 |
|
|
|
Re: Creating a group from a grid
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
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|