Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: OnCheckColumnToggle Column properties
Paul VanderWaal
Posts: 23
 
OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Aug 07 1:33 PM
I am trying to get the name of the Column. The syntax for this event is

Sub grdDataCheckColumnToggle(Sender, Column, AText, State)

MsgBox Column
MsgBox Column.Name
MsgBox Column.Heading
MsgBox Column.Item(0).Name
MsgBox Text

End Sub

All of the above MsgBox's result in "Object doesn't support this property or method". How do I get the column name from this? What are the other properties? Is there documentation for this stuff? I see nothing in the forums on this topic.

Many thanks.
[Reply][Quote]
Lane
Posts: 121
 
Re: OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Aug 07 2:36 PM
assume you need visual studio for this stuff, one breakpoint and a watch window cover a world of issues.

column.Caption
column.fieldname

look at the grid, columns property.
edit a column and the label "generally" is the property name
format is formattype I think.
[Reply][Quote]
Paul VanderWaal
Posts: 23
 
Re: OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Aug 07 2:46 PM
Duh...feel pretty stupid. Of course it is .Caption. Thanks Lane.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Aug 07 12:09 AM
Column.Caption will give you the Column Header

Column.FieldName will give you the DB field associated with the column.


Also, I second the advice that you want to do this with a Good Debuger on hand. Add a Stop statement and when the debuger breaks you will find more information that what you probably wanted to know.
[Reply][Quote]
Ted Urquhart
Posts: 7
 
Re: OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Aug 07 8:35 AM
Paul,

Did you get this to work using .Caption (or anything, for that matter)?

I was working with this just last week. I tried every variation (.caption, .fieldname, etc.). Whereas AText and State values could be drawn, I received the "Object doesn't support this property or method" on any attempt to pull the value for column.

Ted
TASK
Raleigh NC
[Reply][Quote]
Paul VanderWaal
Posts: 23
 
Re: OnCheckColumnToggle Column propertiesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Aug 07 9:21 AM
Yes, I did get it to work with Column.Caption (which is the same as the field name). Are you sure you used "Column" and not "Columns"?
[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/20/2025 10:31:16 AM