cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FioriElements - Value-Help for SearchField - data should not load immediately

mHambach
Explorer
0 Kudos
306

Hi FioriElements - experts,

I'm a Fiori Elements newbe and work on my first App. The App displays all kind of information from SAP BP, SAP-FSCD (insurance) and DWH. Data are coming from CDS-Views. The annotations are done in both, CDS and XML, depending on where it was easier to achieve…

Most things are fairly easy/straight forward and work fine.

However, i'm struggeling with a couple of issue. I found information in the community, but they did not work… 😞 So i decided to bring them up here, hoping to find some advice.
Thanks in advance for any response!
Best regards from Germany
Matthias

Here is the list of all issues. So please check my other posts as well 🙂

ListReport - relatet:
1. Value-Help that does not load the data immediately
ObjectPage - relatet:
2. Dynamic SemanticObject (for SemanticNavigation)
3. Display Labels for a ColumnMicroChart
4. Grouping of table-entries
5. Two tables per section with CollectionFacet-annotation
6. ToolTip for a FieldGroup - Table-Column

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

 

1. Value-Help that does not load the data immediately

There is a ValueList - Property "FetchValues" to achieve this. However, when I annotate the respective SelectionField-entity BusinessPartner in the following way:

<Annotations Target="cds_zcds_bp360_serv.bp_mainType/BusinessPartner">
    <Annotation Term="Common.Label" String="PartnerNr (+VSNr-Suche)"/>  
    <Annotation Term="Common.ValueList">  
        <Record Type="Common.ValueListType">
            <PropertyValue Property="Label" String="PartnerNr (+VSNr-Suche)"/>
            <PropertyValue Property="CollectionPath" String="f4_bp_vo"/>
            <PropertyValue Property="SearchSupported" Bool="true"/>
            <PropertyValue Property="FetchValues" Int="2"/>
            <PropertyValue Property="DistinctValuesSupported" Bool="true"/>
            <PropertyValue Property="Parameters">
                <Collection>
                    <Record Type="Common.ValueListParameterOut">
                        <PropertyValue Property="LocalDataProperty" PropertyPath="BusinessPartner"/>
                        <PropertyValue Property="ValueListProperty" String="f4_bp"/>
                    </Record>
                    <Record Type="Common.ValueListParameterDisplayOnly">
                        <PropertyValue Property="ValueListProperty" String="f4_vo"/>
                    </Record>
                    <Record Type="Common.ValueListParameterDisplayOnly">
                        <PropertyValue Property="ValueListProperty" String="f4_vo2"/>
                    </Record>
                </Collection>
            </PropertyValue>
        </Record>
    </Annotation>
</Annotations>

… the result is, that the value-help-dialog does not feature any visible column:

mHambach_0-1740394991291.png

 

 

When I delete this entity-navigation, the columns are displayed, but the data are loaded immediately.

 

View Entire Topic
junwu
SAP Champion
SAP Champion
0 Kudos

check how the original annotation(regarding valuehelp) looks like

and then adapt it to your needs(disabling auto load)

mHambach
Explorer
0 Kudos

Hi junwu, thanks again for looking into it...

I was checking documentation again and finally got the problem:
I annotated the @Consumption.ValueHelpDefinition in CDS
and the Common.ValueList in XML...

After removing the CDS-annotation, it works...

Oh my God.... Matthias