Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 19, 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: Determine a control's data binding at runtime...
Noah
Posts: 7
 
Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 07 4:12 PM
Does anyone know of a method to access a control's data binding at runtime through code in v7? So what I'm after is "(ACCOUNT:ACCOUNT)" not "Abbott Ltd."

Thanks!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 07 5:23 PM
I don't believe there is anyway to access that info at runtime.
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 07 6:02 PM
If you want to know what record the control is bound to you can read the Bindid.

What is it you are trying to do?
[Reply][Quote]
Noah
Posts: 7
 
Re: Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Jun 07 8:44 AM
Not quite, what I need is the name of the field in the SalesLogix DB that a control is bound to. Apparently this was possible in legacy versions of SLX by using the GetPropertyOf("myObject","DataPath") method, but as far as I can tell this is not possible in v7.

Thanks for your insight Frank and Ryan.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jun 07 6:11 AM
NOT Possible in Activex Forms.. since v6.0 - years ago!

FYI.. The technical direction of Sage SalesLogix is to "abstract" and move toward working at a "meta data" level to reduce the impact of customization(s) vrs OOTB. Also, this provides for the way to support the ".. write once.. deploy many.." approach. IN v7.2 web this is very obvious.

--
rjl
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Determine a control's data binding at runtime...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jun 07 10:02 AM
Well if you script this stuff you can set and keep track of the BIND FIELD being used.....

globalBINDFIELD = "ACCOUNT"
globalBINDTABLE = "ACCOUNT"
globalBINDID = application.basicfunctions.currentAccountID

SQL = "SELECT A1.ACCOUNT, A1.ACCOUNT, A2.STATE A2_STATE, A3.LASTNAME A3_LASTNAME FROM ACCOUNT A1 INNER JOIN ADDRESS A2 ON a1.ADDRESSID = A2.ADDRESSID" LEFT OUTER JOIN A1.ACCOUNTID = A3.ACCOUNTID "
SQL = SQL & " WHERE A1." & globalBINDFIELD & " = " '" & globalBINDID & "' "

GRID.BINDID = globalBINDID
grid.SQL = SQL
Grid.REFRESH

kinds of stuff
[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/19/2025 7:34:40 AM