cancel
Showing results for 
Search instead for 
Did you mean: 

Suggested items for input field

Former Member
0 Kudos

Hi Fiori Expert,

Now I have a problem about the fiori suggested item. What I want to achieve is that when I input characteristic 'i' in an input field, then all items that any column includes 'i' should shows in suggestion item list.

For example, now I have value help like below for 'Created By' field.

And when I type an 'i', then all the User Name includes 'i' shows up.

But I want all the items which User Name or User ID includes 'i' shows up. Let's make it easier, when I input my User Name, I can get my User Name and ID as suggested item, also when I input my User ID, I can get the same suggested item.

Does anybody know how to achieve it?

Thank you and Regards,

Emily

Accepted Solutions (0)

Answers (1)

Answers (1)

gill367
Active Contributor
0 Kudos

HI

You need to modify the filter function used for suggested item population.

Please share your view and controller code for more help if required.

Regards,

Sarbjeet Singh

Former Member
0 Kudos

Hi Sarbjeet,

Thanks for your reply.

Current I have a suggested item, which is according to user name. And this is implemented by CDS View. I bind a CDS view for value help to the field, then I get the automatic suggested item. There is no any code in UI view and controller.

Below is CDS View source code for filter bar, I bind a value help view including User Name and User ID to the field ProductStructureCreatedByUser:

Then in UI view, there is a filter field 'Created By' bound to property 'ProductStructureCreatedByUser'.

Like this, I get the current existed suggested item, but it only for User Name.

It could be perfect if I can also get suggested item according to User ID.

Thank you ,

Emily