cancel
Showing results for 
Search instead for 
Did you mean: 

How to take over both Key and Description into input Field

Rekha_DR
Developer Advocate
Developer Advocate
0 Kudos

Hello All,

I have a F4 help annotated in the CDS view for Fiori Elements List Report. In the Quick Actions Dialog, I am using a Field with F4 help, I have a Requirement that both key and description should be taken over into the Input field once the value is selected from the F4 help Result list. How can I achieve this ?

Best Regards,

Rekha f4-help-key-description.jpg

Accepted Solutions (0)

Answers (4)

Answers (4)

Rekha_DR
Developer Advocate
Developer Advocate
0 Kudos

Hello Tejas,

Thank you for the inputs.

@UI.hidden annotation is on field level. It is only for ColorCode attribute and does not apply to MaintPriorityDescription.

Still I remove it and tried. No Luck so far. Same behaviour as before.

If there is any way to do bring ID/description together( In Controller) once the value is selected from the F4 help result list, it would be good.

Best Regards,

Rekha

former_member182874
Active Contributor
0 Kudos

Rekha,

may be @UI.hidden is preventing it to display. @UI.hidden annotation will not show your values in UI.

and Semantics work for 2 fields as far as my experience.

Remove the color code field and keep it later. Try if it works.

-----------

MaintPriority

@semantics.text true

MaintPriorityDescription

------------

It seems the semantics true is currently applied on hidden field and the priority description.

former_member182874
Active Contributor
0 Kudos

Hi rekha,

how about using standard Interface view for Priority type and Priority provided by SAP : I_PMNotificationPriority . You can directly use that.

Or try to add Semantic.text : true and use the same for your property in the value help.

Regards,
tejas

Rekha_DR
Developer Advocate
Developer Advocate
0 Kudos

Hello Tejas,

Thank you for the suggestion. I have been using the std interface view I_PMNotificationPriority ( via association _PMNotificationPriority). Semantic.text : true has been added on MaintPriorityDesc field and used as text element for MaintPriority as shown below. Even after these, only key is taken over( As shown in the origianl post). Both CDS view and Data binding are as shown. I am using the change event( right now empty) . can anything be done in the change event so that even description can be taken over along with key?

former_member182874
Active Contributor
0 Kudos

Hi,

You can make use of semantics and foreign key association in your key and value help.

Regards

Tejas

Rekha_DR
Developer Advocate
Developer Advocate
0 Kudos

Hello Tejas,

Thank you for the inputs. The semantics and Foreign key association has been used in the CDS view.

However, if you can take a look at the attachment, in the UI I need to take over description along

with the key from the F4 help results into input field. Right now only key is taken over.

Best Regards,

Rekha