Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 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: Where can I get the HistoryID of the note being inserted
Rob Bartram
Posts: 98
 
Where can I get the HistoryID of the note being insertedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Dec 08 12:26 AM
Hello, I've modified the HistoryDetail form and I'm inserting records into another table when the user saves a note. In the AXFormAfterPost routine, I'm creating my other records, but I can't figure out how to obtain the HistoryID of the note just created. Can anyone please let me know if it's possible to get the HistoryID at this point?

We're running 7.2.2

Thank you, ...Rob
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Where can I get the HistoryID of the note being insertedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Dec 08 9:13 AM
When you open up the form....check if an edit box you've added and is databound to the historyid has a value.....if it doesn'
t (like on an insert), then create your own and put it into the edit box.....

SUB AXFormChange(Sender)
If txtHistoryID.TEXT = "" THEN
txtHistoryID.TEXT = application.basicfunctions.getidfor("HISTORY")
END IF
then add a global variable
application.GlobalInfo.ADD "CurrentHistoryID", txtHistoryID.TEXT
END SUB

During your formOK Cancel stuff you can clear out the CurrentHistoryID if they cancel.....

application.GlobalInfo.DELETE "CurrentHistoryID"
[Reply][Quote]
Rob Bartram
Posts: 98
 
Re: Where can I get the HistoryID of the note being insertedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Dec 08 10:47 AM
Perfect!

I've added an edit box called edtHistoryID to the HistoryDetail form and bound it to the HistoryID field. Once the form has posted, as evaluated in the AXFormAfterPost event, the edtHistoryID field is populated with the HistoryID.

Thank for your insight.
[Reply][Quote]
robert
Posts: 3
 
Re: Where can I get the HistoryID of the note being insertedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Feb 09 1:28 PM
I have the same requirement for a History Details View customization we are writing. I tried implementing your suggested method, however for some reason AXFormChange(Sender) and AXFormAfterPost(Sender) aren't firing. The events are wired up in the designer. Am I missing something? Thanks so much for your help!

We are on version 7.0.1.1075
[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/28/2025 10:10:39 AM