/AWS1/CL_MPILISTINGFACET¶
A facet value with display information and a count of matching listings. Used to build filter and browse experiences.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_value TYPE /AWS1/MPINONEMPTYSTRING /AWS1/MPINONEMPTYSTRING¶
The internal value used for filtering when passed back in a search filter.
iv_displayname TYPE /AWS1/MPINONEMPTYSTRING /AWS1/MPINONEMPTYSTRING¶
The human-readable name of the facet value, suitable for display in a user interface.
iv_count TYPE /AWS1/MPINONNEGATIVECOUNT /AWS1/MPINONNEGATIVECOUNT¶
The number of listings matching this facet value.
Optional arguments:¶
iv_parent TYPE /AWS1/MPINULLABLESTRING /AWS1/MPINULLABLESTRING¶
The parent facet value for hierarchical facets, such as subcategories.
Queryable Attributes¶
value¶
The internal value used for filtering when passed back in a search filter.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VALUE() |
Getter for VALUE, with configurable default |
ASK_VALUE() |
Getter for VALUE w/ exceptions if field has no value |
HAS_VALUE() |
Determine if VALUE has a value |
displayName¶
The human-readable name of the facet value, suitable for display in a user interface.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DISPLAYNAME() |
Getter for DISPLAYNAME, with configurable default |
ASK_DISPLAYNAME() |
Getter for DISPLAYNAME w/ exceptions if field has no value |
HAS_DISPLAYNAME() |
Determine if DISPLAYNAME has a value |
parent¶
The parent facet value for hierarchical facets, such as subcategories.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PARENT() |
Getter for PARENT, with configurable default |
ASK_PARENT() |
Getter for PARENT w/ exceptions if field has no value |
HAS_PARENT() |
Determine if PARENT has a value |
count¶
The number of listings matching this facet value.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_COUNT() |
Getter for COUNT, with configurable default |
ASK_COUNT() |
Getter for COUNT w/ exceptions if field has no value |
HAS_COUNT() |
Determine if COUNT has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TS_TYPETOFACETMAP_MAPROW¶
TYPES: BEGIN OF TS_TYPETOFACETMAP_MAPROW,
key TYPE /AWS1/MPISEARCHFACETTYPE,
value TYPE /AWS1/CL_MPILISTINGFACET=>TT_LISTINGFACETLIST,
END OF TS_TYPETOFACETMAP_MAPROW.
TT_LISTINGFACETLIST¶
TYPES TT_LISTINGFACETLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_MPILISTINGFACET WITH DEFAULT KEY
.
TT_TYPETOFACETMAP¶
TYPES TT_TYPETOFACETMAP TYPE HASHED TABLE OF /AWS1/CL_MPILISTINGFACET=>TS_TYPETOFACETMAP_MAPROW WITH UNIQUE KEY key
.