We need to manipulate parts of the document based on values in fields from the selected record found in the autocomplete function.

47 views
Skip to first unread message

David Ringsmuth

unread,
Apr 24, 2013, 10:52:05 AM4/24/13
to lightning-...@googlegroups.com
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

Graham Langley

unread,
Apr 25, 2013, 10:57:14 AM4/25/13
to lightning-...@googlegroups.com
David,

Having tried this myself I can see where it is not working how you would expect.

I will need to update the tag processor so that the 2 events/method calls happen in the order required. Please leave it with me and I will provide an update in short order.
Reply all
Reply to author
Forward
0 new messages