‎2018 Nov 12 11:59 AM
I have a main CDS view for smart Fiori app. In that CDS there are 2 association. If use for the same field first associated CDS value help works, but if i change to another - doesn't work. I can't understand the difference and why it doesn't work:
Looks something like (for CRH everything works, for f4 - no

)
‎2018 Nov 13 1:39 AM
Hey Aliaksandr
Is it possible the join connection has no data
I see in the F4 statement you are writing $project.dn_no is it correct or should it be $project.doc_no?
This is a custom logic so not sure if it is something that can be checked without looking into the system
regards
Vinita
‎2018 Nov 13 7:36 AM
If i check it in Development tool, i see data. And may be you know, if there is no data F4 help window should looks like (for F4 CDS):

Or even if there is no data it should looks like on this window, but after clicking GO button i will see nothing (for CRH CDS)?

‎2018 Nov 15 1:11 PM
‎2018 Nov 16 8:16 AM
It works the same as in my example. With one CDS ok, with another - no. And i can't understand what is wrong with second CDS ((
‎2018 Nov 16 9:20 AM
‎2018 Nov 20 8:00 AM
Behavior is the same (

here is an example of ztest_f4_dn_no CDS:

‎2018 Nov 21 6:04 AM
I was checking the SAP help and found there are two ways to do it.. I couldn't understand the second way sadly 😞 .
But the first way is what you are doing right now and SAP help says "The ON condition of the referenced association specifies how the value help content needs to be retrieved for the element."

So in your case, you can see the on condition is on 'doc_no' for the value help but not the 'dn_no'.. So what you can do is create a specific F4 help for the dn_no, where it fetches only the dn_no.. else put both of them in on condition(join condition).. It should work after that i guess..
BR,
Mahesh
‎2018 Nov 22 2:08 PM
So, we have found the reason. F4 CDS wasn't in service definition. So we've added it in the SEGW and then wrote in main CDS
@Consumption.valueHelpDefinition: [{ entity: { name: 'ztest_f4...', element: 'dn_no' } }]
end now everything works super!
‎2019 Dec 14 7:44 PM
check your manifest file,
delete
"metadataUrlParams": { "sap-value-list": "none" }
from your model
Hope this helps!
KR,
Vincent
‎2020 Mar 29 9:39 PM
vincentbloem : This helped me to get the Value Help results in WebIDE.
Thanks for sharing !
‎2022 Dec 01 8:03 AM
Thank you vincentbloem for this comment.
You are genius.
I spent 2 days and didn't understand why valueHelp doesn't work.
Could you please explain what's the influence of "metadataUrlParams": { "sap-value-list": "none" }?
Have a good day.
‎2022 Dec 01 6:30 PM
Hi, implement @Consumption.valueHelpDefinition: [{ entity : {name: 'customer', element: 'customerID' } }]