Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: Integer Values for SLX IDs
Ezi Porbeni
Posts: 11
 
Integer Values for SLX IDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Sep 07 8:23 PM

What if I have turned on the autoincrement feature on a custom table but now I want to use integer values for the primary key instead of the standard SLXID (Char, 12)...
1) How do I set make the provider use integer values with the auto-increment?
2) What might i be concerned about? (E.g., mainviews built on that table?)

Hope someone can help.

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Integer Values for SLX IDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Sep 07 10:53 PM
As I mentioned here http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=87&#c, not going to happen



-Ryan
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: Integer Values for SLX IDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Sep 07 6:55 AM
EZI,

Integer value key are not scalable. In the sense that they do not work with Remotes, and Mobile. To ensure that no key collisions occurr a key is required to be calculated based on various items. This distinction is made by the SiteCode which is a indicator of a unique system and the base 36 7 char incremented value. As you can imagine FFFFFFFF gives a greater range of values then 9999999.

IMHO except for legacy systems there is little value for using integer value primary keys.


Mark
[Reply][Quote]
John H. Hedges
Posts: 62
 
Re: Integer Values for SLX IDsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Sep 07 12:15 PM
Ezi, are you being asked to provide a single strict numeric sequence over multiple databases, for something like pre-printed bank-check numbers? Or do you just prefer integer keys in general?

If it's a situation like pre-printed checks, where SLX is being used to fill in the amount and payee but the number is already printed on the check, one possible solution is to write a program that runs automatically before and/or after the sync server runs, and have that program be the only process that assigns (and therefore increments) the numbers. The check number (or whatever it is) won't be available immediately, but at least it will be strictly sequential.

If you know that all users are going to be connected to the internet when they process whatever it is that has to be sequentially numbered, and there's a webserver of some sort available, you could set up one of those neato XML web services to do it instead... That way everyone would get the number back immediately.

Either way, as has already been suggested, you should never try to use a simple integer as a primary key in a SalesLogix table...
[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 © 2024 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): 11/26/2024 8:20:44 AM