Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Thursday, August 28, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
8/28/2025 5:29:44 AM
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 Thread
View:
Dynamic
Flat
Tree
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 inserted
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
Re: Where can I get the HistoryID of the note being inserted
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 inserted
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 inserted
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
|
page cache (param): 8/28/2025 5:58:02 AM