Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autocomplete
#6
Again, good to have you around.

Ah, and so the action function definition is in "include/utils/utils.php" or "include/utils/CommonUtils.php". These functions return one value at a time I'm guessing? So for let's say a hook that fills out address fields on account selection in (for instance) an Invoice or SO we'd have to write some additional javascript that hooks into the selection of an autocomplete function?

I'll do some exploring and see if I can set up a testcase.

I checked a UI10 field (for salesorder selection on an invoice), the HTML looked like:

Code:
<input name="salesorder_name" readonly="" style="border:1px solid #bababa;" value="" type="text">
<input name="salesorder_id" value="" type="hidden">&nbsp;
<img src="themes/MajorLabel/images/select.gif" alt="Selecteer" title="Selecteer" onclick="selectSalesOrder();" style="cursor:hand;cursor:pointer" align="absmiddle">&nbsp;
<input tabindex="" src="themes/images/clear_field.gif" alt="Leegmaken" title="Leegmaken" onclick="this.form.salesorder_id.value=''; this.form.salesorder_name.value='';return false;" style="cursor:hand;cursor:pointer" type="image" align="absmiddle">

I could get the module name from the hidden input field name, but I don't see the fields you were talking about. Am I checking the wrong place or the wrong fieldtype?
Reply


Messages In This Thread
Autocomplete - Guido1982 - 09-17-2016, 12:01 PM
RE: Autocomplete - Guido1982 - 10-21-2016, 12:49 PM
RE: Autocomplete - joebordes - 10-21-2016, 02:24 PM
RE: Autocomplete - Guido1982 - 10-21-2016, 03:27 PM
RE: Autocomplete - joebordes - 10-21-2016, 05:40 PM
RE: Autocomplete - Guido1982 - 10-23-2016, 11:23 AM
RE: Autocomplete - joebordes - 10-23-2016, 03:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)