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!
|
| |
| |
| |
|
Re: Determine a control's data binding at runtime...
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. |
|
|
|
Re: Determine a control's data binding at runtime...
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 |
|
|
|
Re: Determine a control's data binding at runtime...
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 |
|
|
|