How to hide defalt preview search in SmartField Value help in UI5?

I am trying to hide the helpful help advance search by default. When this dialog box opens, the category and category description appears by default. The presearch options will appear, I want this to be hidden.

Please help us solve this problem.

That's what i am enter image description here

This is what I want: (Advance search to be hidden, not removed at all) enter image description here

+3


source to share


1 answer


You seem to have used the Explored-Example from here You can also download the encoding there. You may need to customize the paths to the layouts to get them up and running.

What happens if you try: sap:filterable="false"

in the .xml metadata? See also the related document . It says, "We notice that we have set sap: filterable =" false "for the CURR property. We do this because otherwise we would also have a currency code lookup box in the dialog that we want to avoid (default sap: filterable is true).

Now, your adjusted metadata.xml from the above SmartField example might look like this:



                                           <EntityType Name="VL_SH_H_CATEGORY" sap:content-version="1">
                                                           <Key>
                                                                           <PropertyRef Name="CATC" />
                                                           </Key>
                                                           <Property Name="CATC" Type="Edm.String" Nullable="false"
                                                                           MaxLength="4" sap:display-format="UpperCase" sap:label="Category"
                                                                           sap:text="LTXT" sap:filterable="false" />
                                                           <Property Name="LTXT" Type="Edm.String" Nullable="false"
                                                                           sap:label="Category Description" sap:filterable="false" />
                                           </EntityType>
      

Is this what you are looking for?

0


source







All Articles