We've tried a few ways. It seems I'm missing something (which is not surprising).
The <td> below onchange function calls onchange="ltgExecuteMethod('Ltg_Table_Field_State',this.value);", trying to pass the autocomplete selected record field-value so the correct record can be queried.
There are problems with this:
If the autocomplete is followed by a method attribute AND a onchange attribute, only the method attribute is being triggered. It seems the onchange should occur first, then the method attribute.
The 4D method 'Ltg_GetBool' does get called, but receives "undefined" when $1 is typed as TEXT and 0 when typed as LONGINT.
The 4D method "Ltg_GetBool" must get the record selected in the autocomplete function of the <td>.
<td><ltg-field autocomplete="begins" name="[Table]FieldNo" format="########0;#;" mandatory="true" style="width: 30px;" onchange="ltgExecuteMethod('Ltg_GetBool',this.value);" method="Ltg_Table_NoSelect" /></td>
How do we have both functional method and onchange attributes in the same <td>?
What is the type of this.value when in this case [Table]FieldNo is a longint?
Is there a better way to do this?
Thanks!
David