Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Tuesday, November 26, 2024
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
11/26/2024 2:24:38 AM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Changing a userfield from string to a number
SLX_Novice
Posts: 246
Changing a userfield from string to a number
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 number
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 number
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 number
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 number
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 number
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 number
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 number
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
|
page cache (param): 11/26/2024 3:08:33 AM