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!
|
|
Data link property?
Posted: 09 Nov 07 8:22 AM
|
Does anyone know of a way that I can determine the Data link of a control? I need to be able to see which Table/Column a control is linked to in order to validate it. |
|
|
|
Re: Data link property?
Posted: 12 Nov 07 12:50 PM
|
The LINKID property should have the return of the Lookup's LookupID property returned to it.....if that is in fact a RowID for the table being looked up then you can run a SQL statement to determine if that is actually a valid selection...... |
|
|
|
Re: Data link property?
Posted: 13 Nov 07 8:54 AM
|
Thanks for the reply, but it's not quite what I'm looking for. Further investigations and searching the forums have thrown up the fact that the active controls do not have a property which reproduces the Legacy DataPath property. I'm attempting to write a simple rules engine that uses Regular Expressions to validate data in a control by looking up the rule for the column the control is bound to.
I have a feeling I'll need to make a request to Sage on this one... |
|
|
|
Re: Data link property?
Posted: 16 Nov 07 9:25 AM
|
That's correct. You have to explicity name the linkid in a script.....can't you have the scripter call your data validater OnPopupReturn? |
|
|
|
Re: Data link property?
Posted: 19 Nov 07 5:48 AM
|
I could, but that then negates what I'm really trying to achieve. I'd like to be able to iterate a control collection, and validate the fields by looking up the relevant Regular Expression in a table. Without the data link value being visible, it looks like I'll have to check every control in code. |
|
|
|