Skip to Content
0
Dec 10, 2022 at 10:32 AM

UI5 How to use a Smart Field as a Selection Parameter Input Field

346 Views

In a UI5 application, I want to use a Smart Field with input help (F4 help) as selection parameter for a report data.

I found this example on demokit : Smart Field with Value Help
and I read the related documentation on this page : Smart Field with Value Help - Documentation

Smart Field works according to the metadata file and properties declared in the related entity types, it's all okay so far.

But in these examples , Smart Field on the view is always bound to a record returning from OData service as below :

image.png

So if the record "/Products('4711')" exists, then everything works on the view including the Input help.
But if the record doesn't exists , then Smart Field is not even rendered.

I want to use Smart Field just as an input for selection parameters in the beginning of my application with the Input Help feature, so I can't bind the value to any record from the OData service. Is there any way to achieve this ?

Or if Smart Field is not the correct way for what I needed, what's the proper way to implement a parameter selection screen including Input Helps ?

Thanks in advance,

Bülent Balcı

Attachments

image.png (25.1 kB)