Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 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: History Table Custom Field
David Joseph
Posts: 13
 
History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Apr 07 8:19 PM
SLX version 7
SQL Server 2005

My sales rep need to specify a product whenever they schedule an activity. I created a new field in the Activity Table and added that field to the Activity Detail view, I made changes to the Global activity script to move this data to a new field in the history table and it works fine.
However, when I add this new history table field to the History Detail view and when the user creates a completed Activity the value for this field is not stored in the DB. if I edit a existing history and modify the field the update is stored. How can I resolve this

I also thought of using the Category field for this purpose but, the category field has a field length of 64 and my data length is more than that

1) how can I increase the length of the Category field in the Activity and History Table to say 255
or
2) How can I make sure that when a new history is created (using completed history) the data is captured using a new field.

As always your help is appreciated
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Apr 07 7:15 AM
It's broken.... I've got tickets in on this issue.
--
rjl
[Reply][Quote]
David Joseph
Posts: 13
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Apr 07 11:34 AM
fiogf49gjkf0d
are there any other work arounds? Can we increase the length of the Category field?
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Apr 07 8:12 AM
Yes you can... BUT remember, any changes to "core fields" is a non-supported action. You will have to do a couple of tricky things to do it since the SaledsLogix DB Manager (even in v7.0.x) does NOT support/allow making changes to core fields.. only adding new fields to core tables>
A - You need to "unlock" the field in question. If you know how to do this.. fine.. but If not, send me an email and I'll tell you how. It's one of those areas where you are "crossing the line".
B - Once unlocked then you can use the SalesLogix DB Manager to change the length
C - Lock the field back down.

Disclaimer: Since there's still a lot of hard-code in Activity/History any changes to existingg core fields has teh possibility of introducing serious problems into SalesLogix. This CAN impact LAN and/or Remotes in in unpredictable manner.
--
rjl
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 07 7:26 AM
fiogf49gjkf0d
I'm just going to put in my .02 and suggest a diferent route..

You stated the requirement was that reps need to associate a product with each history. Instead of creating a field to store the product name (of up to length 128) or hacking existing fields (which is only asking for more trouble)... wouldn't it be more efficient (and normalized) to just add a custom field of length 12 that stores the product ID? You'll need to change the SQL that retrieves the history detail to include the product table, but that should be easy.

John G.
[Reply][Quote]
David Joseph
Posts: 13
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 07 6:52 PM
fiogf49gjkf0d
Hi Bob,

Can you tell me how to "unlock" the field in question? my email address is "jdsk @ hotmail . com"
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 07 6:27 AM
fiogf49gjkf0d
Quote:
Originally posted by David Joseph

Hi Bob,

Can you tell me how to "unlock" the field in question? my email address is "jdsk @ hotmail . com"

Please send me an email directly from your business address.
--
rjl
[Reply][Quote]
David Joseph
Posts: 13
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Apr 07 6:48 PM
fiogf49gjkf0d
What is your email address?
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 07 7:01 AM
fiogf49gjkf0d
Just click on my posting "name" and it will take you to a page on this site where you can send me an email.
--
rjl
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 07 10:01 AM
fiogf49gjkf0d
Quote:
Originally posted by David Joseph

Hi Bob,

Can you tell me how to "unlock" the field in question?


Remember, this is all unsupported. Proceed at your own risk.

1) Execute the following to unlock the history table:

update sectabledefs set userdef = 'T' where tablename = 'HISTORY'


2) Make changes to the table as necessary (increase field lengths add fields, etc)

3) Lock the table again by executing the following:

update sectabledefs set userdef = 'F' where tablename = 'HISTORY'


Have fun.

-Ryan
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 07 10:04 AM
fiogf49gjkf0d
Also keep in mind, this procedure to change the field length won't sync. Your best bet is to recut any remotes after a change like this. There are some tricks you can do to get it to sync but a recut is the safest route. Some things to try is bundling the field (with it's new length set) and applying it to the main database etc.
[Reply][Quote]
David Joseph
Posts: 13
 
Re: History Table Custom FieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 07 1:11 PM
fiogf49gjkf0d
Thanx for your input!! we do not have remote users so its one less think to worry about
[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/18/2025 2:28:52 PM