Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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!
 Administration Forums - Database Administration
Forum to discuss SQL Server or Oracle database administration related to SalesLogix databases. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Database Administration | New ThreadView:  Search:  
 Author  Thread: Changing a userfield from string to a number
SLX_Novice
Posts: 246
 
Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 11:50 AM
fiogf49gjkf0d
Hi all.

I created a userfield to store the number of beds a facility may have, but I realize that if I do a query to display all facilities that have more than 100 beds, it gives me facilities with 90 and 60 etc. I think it's because the field is a string, so it's doing a comparison based on 100 being a string.

How can I change the field type from string to a number (long etc.) I tried creating a new userfield but it defaults to string and it grays it out.

Any ideas?

Thank you in advance.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:04 PM
fiogf49gjkf0d
If you want to create a new field you would:
Start the Architect
Select Manage Database from the menu
Select your table
Click the "New Field" icon
Enter a field name
Change the Data Type to Long Integer (or Short Integer)
Click OK


You may be able to issue a SQL command to change the data type in place. What version of SalesLogix are you running?
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:16 PM
fiogf49gjkf0d
v6.2.3
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:19 PM
fiogf49gjkf0d
When I go to the Architect, Manage Database, select the table it does not let me click the New Field icon, it's grayed out. When I try to used one of my userfields it grays out the ability to change the data type.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:24 PM
fiogf49gjkf0d
Quote:
Originally posted by Fabian Garcia

v6.2.3

You need 6.2.4.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:28 PM
fiogf49gjkf0d
Quote:
Originally posted by Fabian Garcia

When I go to the Architect, Manage Database, select the table it does not let me click the New Field icon, it's grayed out. When I try to used one of my userfields it grays out the ability to change the data type.

Very strange. It should let you modify table that you add.
What is the name of the table that you added?
What is the name of the field that you added?
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:30 PM
fiogf49gjkf0d
I am using the Accounts table, and I am using one of the Userfields.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Changing a userfield from string to a numberYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 06 12:45 PM
fiogf49gjkf0d
When you said "I created a userfield to store the number of beds" in your original post I assumed you had added a field to some table you created. In the current version of the software SalesLogix does not let you change their base tables.

You can add a table that has a 1-to-1 relationship with the Account table (say perhaps pmi_account) then add a field to hold the information you are tracking.

[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/22/2024 3:39:47 PM