Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autocomplete
#5
You can find an example of the Reference Autocomplete in the coreBOS Webservice Development tool:


https://github.com/tsolucio/coreBOSwsDevelopment/blob/master/testcode/334_getReferenceAutocomplete.php

this is the method we use to implement autocomplete on satellite (webservice) applications.

It is also available from inside the application calling via AJAX to:


PHP Code:
index.php?module=Utilities&action=UtilitiesAjax&file=ExecuteFunctions&functiontocall=getReferenceAutocomplete&searchinmodule={modules}&limit


The getFieldAutocomplete is the same just that it permits you to specify on what fields you want to search, while the getReferenceAutocomplete always searches on the modules' reference field

As to the module, each ui10 field has two other fields associated to it, one ending in _type and the other ending in _display. The first holds the current module and the second is the value shown on screen. So, for example, if we have a uitype10 field called related_to which can be selecting Accounts or Contacts you will have:


PHP Code:
<select id="related_to_type" name="related_to_type"....>two optionsone for accounts and the other for contacts....
<
input type="hidden" id="related_to" name="related_to">
<
input type="text" id="related_to_display" name="related_to_display"

HTH
Joe
TSolucio
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)