Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 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!
 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: Getting the underlying database field name for a property
Daniel
Posts: 12
 
Getting the underlying database field name for a propertyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Nov 11 3:17 PM
fiogf49gjkf0d

Hi,


Does anyone have any code to get the underlying field name from the database for a property?  I.e. if ACCOUNT.ACCOUNT has a property of AccountName in the Account entity, is there any way of finding out that the underlying field is called 'ACCOUNT'.  Yes I know that shouldn't be necessary but I have some configurable auditing of fields to a table that allows changes to be rejected or accepted.  The properties that are audited can be selected dynamically in an interface by the user.  I can get all the properties for an entity by using system.reflection and display them.  This isn't a problem.  However using Sage.Platform.ChangeManagement is not always picking up changes when changes occur.  I need to use this in an onbeforeupdate event to log changes to the audit table.  Because this isn't working I need to go to the database to get the current value vs the new value as I need to log the 'old' vs' 'new' value to my audit table.  I don't really want to have to hard code the underlying field names if I can help it.


Sorry if that was a bit long-winded.  Just trying to trying to dodge questions about why I'm not using the property itself and going through the entity model!  I really need to know the underlying field name!


Doesn't matter so much about the table name.  Happy to hard-code that and in most instances this is the same as the Entity name anyway.


Cheers


Daniel

[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): 6/28/2025 2:14:35 PM