Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 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: Move to next record in Current Group
Steve Garner
Posts: 22
 
Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Aug 09 3:08 PM
Version 7.2.1
I have code on the contact detail that moves a record to a seccode that the user does not have permission to when the contact is set to inactive. This works well to remove the contact, however I need to refresh the group to have then new set of records.
None of the following works:
Application.BasicFunctions.RefreshMainView
Application.BasicFunctions.DoInvoke "Function","View:Refresh" Application.BasicFunctions.DoInvoke "Function","View:RefreshCurrent"

Does anyone know how to do a refresh a group or move to the next record?

Thanks.

Steve
[Reply][Quote]
Steve Garner
Posts: 22
 
Re: Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Aug 09 3:19 PM
I just thought of a workaround:

You see the problem was that when the user hit refresh right after losing visibility, SLX failed to present the "Invalid Record" form, but instead showed a blank record. When the user then moved to Account, the form validation fired and required a status. They had to give a status to get out of the record, even though the record was blank.

I found that resetting the current contact, will force the Invalid Record screen and get around the problem:
contactID = application.BasicFunctions.CurrentContactID
application.BasicFunctions.SetCurrentContactID contactID

Of course, I would much prefer to refresh the group if anyone knows how.

Thanks.
Steve
[Reply][Quote]
Steve Garner
Posts: 22
 
Re: Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Aug 09 3:33 PM
Scratch that ... my inspiration still prompts for a status ... Need to refresh or move off that record.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 09 6:07 AM
--edit

Sorry - I posted stuff here without reading your posts in enough detail ... please ignore!

--edit 2

Can you put a your code in the OnChange event - to check status and, if InActive, to do the back-end SQL update just before navigating to the next record?
[Reply][Quote]
Steve Garner
Posts: 22
 
Re: Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 09 7:09 AM
I need to navigate to the next record in the group, but do not know how to do that in code. FYI the group I have been testing is the Lookup Results group from double-clicking an Account-Contact at the account level, hence, not found with GetCurrentGroup.
If I could get the list of ID's of the current group, I suppose I could find the next contactID in it and then navigate to that contactID, but then I would lose my group, wouldn't I? Is the current group recordset available anywhere to do a rst.movenext?
[Reply][Quote]
Steve Garner
Posts: 22
 
Re: Move to next record in Current Group Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 09 7:09 AM
duplicate
[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/29/2025 1:58:55 PM