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 - 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: How to unbind a datagrid
Steve Myers
Posts: 6
 
How to unbind a datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 06 9:46 AM
fiogf49gjkf0d
I've got a legacy form with an unbound datagrid. The datagrid has several tables joined together. I used the form conversion in v6.2 to convert this to an active form. When I view the SQL statement of the converted grid, it uses BindID as part of the WHERE condition: "AND (A2.CONTACTID = :BindID)". This is not in the SQL statement of the grid on the legacy form.

I also tried adding a new datagrid to this active form to see if that would get around the bind problem. When I first specified the table the grid is based on and added a Condition, the SQL showed as "SELECT A1.LITREQID FROM LITREQUEST A1 WHERE (A1.FILLUSER IS NULL OR A1.FILLUSER = '') ".

Once I joined the CONTACT table, the BindID became part of the WHERE condition as follows:

"SELECT A1.LITREQID FROM LITREQUEST A1 INNER JOIN CONTACT A2 ON (A1.CONTACTID=A2.CONTACTID) WHERE ((A1.FILLUSER IS NULL OR A1.FILLUSER = '')) AND (A2.CONTACTID = :BindID) ".

How do I get rid of "AND (A2.CONTACTID = :BindID)", but keep the rest of the SQL statement?
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: How to unbind a datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 06 9:55 AM
fiogf49gjkf0d
I believe it this is being picked up from the BindID property for the DataGrid.
[Reply][Quote]
Steve Myers
Posts: 6
 
Re: How to unbind a datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jun 06 10:10 AM
fiogf49gjkf0d
Actually I found out from another source that the forms converter does not handle grids very well. And beyond that I had a misunderstanding of how to create an unbound grid from scratch where it needs to be based on multiple tables.

It's not necessary to "manually" join the tables. Instead the join is done automatically when the columns from the various tables are selected as part of the layout.

It was the "manual" join of dragging and dropping of the common id that was causing the BindID condition to get added. So, I think I'm squared away now. Thanks.
[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:56:39 AM