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!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Datagrid using picklist column type
Kent Sauder
Posts: 2
 
Datagrid using picklist column typeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 7:53 AM
I have a data grid with 4 integer fields that represent text data. I would like to create a picklist where the users sees the text data but the system stores the integer value. I have tried different variations of the picklist (i.e. code is the integer value and item text data / code as the text value and item as the integer value) and nothing seems to work. The system always displays the text data (which is good) but gives an error indicating I'm trying to store non-numeric data in an integer field (this is bad). I have also tried various settings for the Text Type in the PickList properties screen to no avail. What am I doing wrong???
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Datagrid using picklist column typeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 10:02 AM
Desgn time grid or RUn time grid?
Any edit views with this grid? Why dont you have one and edit the info there and let this grid be a RO grid.
how are you saving data to the tables? Script or using the active grid saving it automatically?
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Datagrid using picklist column typeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 10:03 AM
Also if you have a casting exception, why dont you change the type to see if the text is infact captured at the db level?
[Reply][Quote]
Kent Sauder
Posts: 2
 
Re: Datagrid using picklist column typeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 10:04 AM
It's a design time grid. I'm not using an edit grid that I know of. I'm using active grid to save automatically. I'm very new to this so any help is appreciated.
[Reply][Quote]
Karlin High
Posts: 9
 
Re: Datagrid using picklist column typeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Mar 10 3:57 PM
I had the same problem. I got around it by using a 1-character text field instead of an integer. Apparently datagrids panic whenever they see text headed for a numeric field, even if it will end up with a picklist code instead of the displayed text.
[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 5:02:00 AM