I have the following use case. The user enters a numeric code. There are a lot of possible numeric codes. Each of the numeric codes corresponds to a text description stored in a lookup table. When the user enters the numeric code and hits enter I would want a non-editable field to the right to display the corresponding text. If the numeric code cannot be found it would show N/A.
Is this something I just need to implement with a textfield and a valuechangelistener that updates the description field, or can one of the existing lookup fields (LookupField, PickerField, LookupPickerField, SearchPickerField) be used for this purpose? The use case for all of those seems to be selecting the value based on the lookup. I just want to show the corresponding value after the user enters the code in and N/A if unavailable?
<dsContext>
<collectionDatasource id="sparePartsSearchDs"
class="com.company.demo.entity.SparePart"
view="_local">
<query>
<![CDATA[select e from demo$SparePart e where cast(e.code varchar(10)) = :custom$searchString]]>
</query>
</collectionDatasource>
</dsContext>
<searchPickerField id="searchPickerField"
caption="Search by code and set to field"
optionsDatasource="sparePartsSearchDs"></searchPickerField>