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!
|
|
History Details View
Posted: 23 Feb 09 11:19 AM
|
Hi everybody,
I am working on a customization for the History Details View. I haven't figured out how to get a reference to the historyid that the form is going to use when it performs the insert. Does anyone know how to do this? |
|
|
|
Re: History Details View
Posted: 24 Feb 09 2:21 AM
|
1) Add "Edit" control to History Details form. Set "Visible" property to false and "Text" property to (HISTORY:HISTORYID). 2) Use OnValidate or OnAfterPost event of form for get HistoryID: edtHistoryID.Text . |
|
|
|
Re: History Details View
Posted: 24 Feb 09 3:23 PM
|
Thanks for the help Snake. I've been trying that approach but my form isn't firing those events when an activity is being completed, or when a history item is being created.
I found the solution though. I hooked into the events in the Global Activity script and was able to handle the Application_AfterCreateHistory event to reference the activity id. That got me what I needed.
Thanks again! |
|
|
|