10-21-2016, 05:40 PM
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:
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:
HTH
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 options, one 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
TSolucio