11/25/2024 6:22:46 PM
|
|
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!
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.
|
|
|
|
Where are the columns of a data grid defined?
Posted: 04 Apr 06 5:18 PM
|
fiogf49gjkf0d My experience developing for the network client has mostly been adding new forms (w/o grids) and moving/change controls on the page, all in 6.1. 6.2 is obviously different, but now I'm also looking at grids. For example, the product tab for opportunities. I'd like to remove the "price level" column from that grid, and have searched for the text and commented it out. Still, it persists in the grid. As I try to find where the grid's parameters are being defined I keep coming across functions whose definition I can't find anywhere in Architect -- and definitely not in the script behind the Opportunity Product form. Where should I be looking, or is there a quick and easy way to change this that I've overlooked?
TIA! |
|
|
|
Re: Where are the columns of a data grid defined?
Posted: 04 Apr 06 5:27 PM
|
fiogf49gjkf0d Zaurusman,
The columns for a datagrid could be defined in several places. The datagrid control itself has a SQL property where the SQL statement is defined (which includes columns that will be selected for the data the grid is bound to. The datagrid also has a Columns property where you can define columns and datatypes for columns that display in the grid. The datagrid also has an exposed Recordset property where the grid can be bound to a live recordset. However, all of this can be done via code as well. So, this means that aside from looking at the properties of the grid, there are many places in the code where those columns could be set as well.
My experience is that many of the OOTB plugins, especially those with grids are overly complicated and a real pain to customize. So.... keep digging |
|
|
|
Re: Where are the columns of a data grid defined?
Posted: 04 Apr 06 5:52 PM
|
cialis cena cialis 20mg vs 10mg go fiogf49gjkf0d Thanks, Ryan. I don't see any data in the properties (that would be too easy, right?) There is a PopulateDataGrid routine in which I've commented the line giving that column a value, and removed it from the SQL string in that routine. I'm thinking it may have something to do with this:
DefineProductsGrid(strOpportunityID)
Problem is, DefineProductsGrid() is in the script behind the form. Do you know where's that function's code is located? I've found several in the script behind this form that are not defined in the code anywhere. |
|
|
|
Re: Where are the columns of a data grid defined?
Posted: 04 Apr 06 6:28 PM
|
fiogf49gjkf0d You might have disabled the code that populates the data, but there is possibly still other code that sets up the columns for the grid.
To locate the DefineProductsGrid check the included scripts as well. You could also do a find in the Architect to locate that string in *all* scripts which might help you find it (but if it is used there then it would have to be either in the script behind the form or in an include script) |
|
|
| |
|
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!
|
|
|
|
|
|
|
|