Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Storing the values to the History Table
Prathima
Posts: 32
 
Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 7:00 AM
Hi,
In 6.2 Lan client for the controls we have a property called RecordToHistory.

Whenever we change any value, this record will be saved in history table with old value, new value, modified user and modified date.
Do we have similar property in 7.2 webclient.?
What should we do to store it in the history table..

Thanks,
Prathima
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 8:05 AM
Hi,

You would have to code it yourself - you can set a c# code snippet to run on saving, or you could put an onchange event on the required property to record it to history.

Thanks,
Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 10:31 AM
Yes, in the web client you do that at the entity level. On the entity, you'll see a checkbox called "Audited". Check this box for the entity, and then check any properties on the entity you want to record changes for. Then on the "Extended" tab of the entity, you'll see a field labeled "Track History To". Enter "IHistory" there (you can select it from the drop down). Now, any of the "audited" properties will record their changes to history (the audited checkbox for the entity can turn it all on or off for all properties on the entity).

BTW, you can create your own tracking tables to do this as well (instead of using history). I've outlined how to do that here: http://customerfx.com/pages/crmdeveloper/2007/12/31/Creating-Custom-History-Tracking-Tables-for-Entities-in-SalesLogix-Web.aspx

-Ryan
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jul 08 6:10 AM
Quote:
Originally posted by Ryan Farley

Yes, in the web client you do that at the entity level. On the entity, you'll see a checkbox called "Audited". Check this box for the entity, and then check any properties on the entity you want to record changes for. Then on the "Extended" tab of the entity, you'll see a field labeled "Track History To". Enter "IHistory" there (you can select it from the drop down). Now, any of the "audited" properties will record their changes to history (the audited checkbox for the entity can turn it all on or off for all properties on the entity).

BTW, you can create your own tracking tables to do this as well (instead of using history). I've outlined how to do that here: http://customerfx.com/pages/crmdeveloper/2007/12/31/Creating-Custom-History-Tracking-Tables-for-Entities-in-SalesLogix-Web.aspx

-Ryan


Nice one Ryan! I was hoping there was an easier way to do it I didn' t know about
[Reply][Quote]
Prathima
Posts: 32
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jul 08 12:20 AM
Ryan thanks for the information.

Prathima
[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 10 8:24 AM
Ryan,

Thanks for the tip. Is it possible to do the same on LAN? How can I record changes in my own tracking table and on LAN?

Thank you.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Feb 10 9:40 AM
Quote:
Originally posted by Veronka Capone

Ryan,

Thanks for the tip. Is it possible to do the same on LAN? How can I record changes in my own tracking table and on LAN?

Thank you.


On the LAN, to store changes on your own table you need to code something of your own from scratch. There is nothing built in to facilitate this on the LAN client.

-Ryan
[Reply][Quote]
Veronka Capone
Posts: 113
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Feb 10 8:50 AM
Ryan,

I was thinking the quickest is to have a SQL trigger on History table, which will call a .dll. which will hadle insering the Old/New value stuff into the appropiate tables. When tryimg to run SQL assembly from SQL server I am getting this error:

The 'SLXOLEDB.1' provider is not registered on the local machine.

- I insatlled the SLX provider on the SQL server.
- SQL server is a 64 bit machine
- I retsarted SLX service on the SQL server

I am trying to avoid changing every single form on the LAN to audit fields. Any other idea?

Thanks !
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Storing the values to the History TableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Feb 10 8:55 AM
The problem is that you're attempting to use the SLX Provider from something running as a 64-bit service (SQL Server). The SLX provider is 32-bit only and won't be seen from the 64-bit world.

I am not sure if it would work to compile the dll specifically for 32-bit but then call it from the 64-bit SQL server. That is what I would try (and if that works you could run it out of process and just spawn it from SQL).

BTW, do you need this logging table to sync? If not you could just skip using the SLX provider to do this.

-Ryan
[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): 7/1/2025 12:47:45 AM