Skip to Content
0
Dec 06, 2022 at 10:12 AM

valueHelp Annotation: How to display columns and define default filter

355 Views Last edit Dec 06, 2022 at 12:01 PM 2 rev

Hi there,

so im using a smartField with a valueHelp and an annotation like this:

<Annotations Target="Metadata.Aenderungsstamm/ZzLmmail" xmlns="http://docs.oasis-open.org/odata/ns/edm"><br>                <Annotation Term="Common.ValueList"><br>                    <Record><br>                        <PropertyValue Property="CollectionPath" String="LMMailSet"/><br>                        <PropertyValue Property="SearchSupported" Bool="true"/><br>                        <PropertyValue Property="Parameters"><br>                            <Collection><br>                                <Record Type="Common.ValueListParameterOut"><br>                                    <PropertyValue Property="LocalDataProperty" PropertyPath="ZzLmmail"/><br>                                    <PropertyValue Property="ValueListProperty" String="Email"/><br>                                </Record><br>                                <Record Type="Common.ValueListParameterIn"><br>                                    <PropertyValue Property="LocalDataProperty" PropertyPath="Zzeiu"/><br>                                    <PropertyValue Property="ValueListProperty" String="Eiuver"/><br>                                </Record><br>                                <Record Type="Common.ValueListParameterDisplayOnly"><br>                                    <PropertyValue Property="ValueListProperty" String="Eiuver"/><br>                                </Record><br>                            </Collection><br>                        </PropertyValue><br>                    </Record><br>                </Annotation><br>            </Annotations>

Thats working fine and i have the valueHelp with 2 shown columns: "Email" and "Eiuver"

First Question:

How can i now display more columns in this valueHelp from the LMMailSet?

Second Question:

How can i pass a default filter to the value Help? The property "Zzeiu" in the main Entity is also a SmartField. The user can change this field and according the value i want to prefilter the valueHelp for the field ZzLmmail. How can i do this?

Thanks!