4 - Fiori Elements - Filters and Value Helps
ฝัง
- เผยแพร่เมื่อ 18 พ.ค. 2023
- S/4 HANA Full-stack developer - Fiori Elements
- Learn how the value helps modelled with CDS views and used in Fiori Elements
Usage of below Annotations
@Consumption.filter
@Consumption.valueHelp
@Consumption.valueHelpDefinition
@ObjectModel.foreignKey.association
@ObjectModel.text.association
- Modelled ValueHelp CDS views
- Modelled Text CDS views(ObjectModel.dataCategory: #TEXT, @semantics.language, @semantics.text)
@UI.textArrangement
i have a dropdown, i don't want to search the items
I just want like Select control in fiori
what changes i need to do can you suggest
If I understand it correctly, I assume you are developing with Fiori Elements template? or Free Style?
Fiori Elements: you need to extend the template
Free Style: you can just bind the entityset to the Select Control
is it possible to set multiple filter values default at selection screen for list report?
Nope, not through CDS Annotations
But, you might try something around variants(creating public variant and loading it by default)
Hi, I have 2 input fields for create an entity. First input is purchorg and second supplier. I have 2 different cds valuehelps. How can I pass first input of purchorg as a filter to the second valuehelp.
@@patrykzuchowski5044 please see below help document for dependent or conditional filters
help.sap.com/docs/abap-cloud/abap-rap/value-help-with-additional-binding
@@thaarasoft ok, it works. But now i have other requirement. I have a valuehelp for some input field for child entity, and i need filter for the valuehelp based on some field in root entity. It is possible? Example: i have a Suppliergroup(root entity) with key PurchOrg and i want to add some Supplier to the group(child entity). In my valuehelp i can see Suppliers for all of PurchOrg, and i need a filter for Suppliers only in this PurchOrg. So the filter should based on the field PurchOrg from root entity.
@@patrykzuchowski5044 yes, your input helps must be independent, then you can apply filters on all it's dependent entities.