8/29/2025 1:33:37 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.
|
|
|
|
Move to next record in Current Group 
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 |
|
|
|
Re: Move to next record in Current Group 
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 |
|
|
| |
|
Re: Move to next record in Current Group 
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? |
|
|
|
Re: Move to next record in Current Group 
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? |
|
|
| |
|
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!
|
|
|
|
|
|
|
|