cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Filters are not shown in Analytical List Page

annevahle
Discoverer
0 Kudos

Hi,

I am trying to make a ALP with compact and visual filters. I have a chart and a table in the content area. In the Filter section, for the compact filter - I have selection fields for the columns of the table. I have created a PresentationVariationQualifier and included a chart which is same as the one included in the content section. However, the visual filter does not show up.

1. metadata.xml

metadata.txt  see below the attachment

2. This is the annotation.xml file .

annotation.txt   see below the attachment

3. This is the manifest.json file

{
	"_version": "1.7.0",
	"sap.app": {
		"id": "com.atos.fiori.gpdbalp.GPDB_ALP",
		"type": "application",
		"i18n": "i18n/i18n.properties",
		"applicationVersion": {
			"version": "1.0.0"
		},
		"title": "{{appTitle}}",
		"description": "{{appDescription}}",
		"tags": {
			"keywords": []
		},
		"dataSources": {
			"mainService": {
				"uri": "/sap/opu/odata/sap/ZGPDB_SRV/",
				"type": "OData",
				"settings": {
					"odataVersion": "2.0",
					"localUri": "localService/metadata.xml",
					"annotations": ["annotation0"]
				}
			},
			"annotation0": {
				"type": "ODataAnnotation",
				"uri": "annotations/annotation0.xml",
				"settings": {
					"localUri": "annotations/annotation0.xml"
				}
			}
		},
		"offline": false,
		"sourceTemplate": {
			"id": "ALP_WebIDE_Plugin.analyticallistpage",
			"version": "1.41.1"
		}
	},
	"sap.ui": {
		"technology": "UI5",
		"icons": {
			"icon": "",
			"favIcon": "",
			"phone": "",
			"phone@2": "",
			"tablet": "",
			"tablet@2": ""
		},
		"deviceTypes": {
			"desktop": true,
			"tablet": false,
			"phone": false
		},
		"supportedThemes": ["sap_hcb", "sap_belize"]
	},
	"sap.ui5": {
		"resources": {
			"js": [],
			"css": []
		},
		"dependencies": {
			"minUI5Version": "1.42.1",
			"libs": {
				"sap.ui.core": {
					"lazy": false
				},
				"sap.ui.generic.app": {
					"lazy": false
				},
				"sap.suite.ui.generic.template": {
					"lazy": false
				}
			},
			"components": {}
		},
		"models": {
			"i18n": {
				"preload": false,
				"type": "sap.ui.model.resource.ResourceModel",
				"uri": "i18n/i18n.properties",
				"settings": {
					"bundleName": "com.atos.fiori.gpdbalp.GPDB_ALP.i18n.i18n"
				}
			},
			"i18n|sap.suite.ui.generic.template.AnalyticalListPage|List1Set": {
				"type": "sap.ui.model.resource.ResourceModel",
				"uri": "i18n/AnalyticalListPage/List1Set/i18n.properties"
			},
			"i18n|sap.suite.ui.generic.template.ObjectPage|List1Set": {
				"type": "sap.ui.model.resource.ResourceModel",
				"uri": "i18n/ObjectPage/List1Set/i18n.properties"
			},
			"": {
				"preload": true,
				"dataSource": "mainService",
				"settings": {
					"defaultBindingMode": "TwoWay",
					"defaultCountMode": "Inline",
					"refreshAfterChange": false,
					"metadataUrlParams": {
						"sap-value-list": "none"
					}
				}
			},
			"@i18n": {
				"type": "sap.ui.model.resource.ResourceModel",
				"uri": "i18n/i18n.properties"
			}
		},
		"extends": {
			"extensions": {}
		},
		"contentDensities": {
			"compact": true,
			"cozy": false
		}
	},
	"sap.ui.generic.app": {
		"_version": "1.3.0",
		"pages": {
			"AnalyticalListPage|List1Set": {
				"entitySet": "List1Set",
				"component": {
					"name": "sap.suite.ui.generic.template.AnalyticalListPage",
					"list": true,
					"settings": {
						"defaultContentView": "charttable",
						"smartVariantManagement": true,
						"multiSelect": false,
						"autoHide": true,
						"defaultFilterMode": "visual",
						"showGoButtonOnFilterBar": true,
						"condensedTableLayout": false,
						"keyPerformanceIndicators": {}
					}
				},
				"pages": {
					"ObjectPage|List1Set": {
						"entitySet": "List1Set",
						"component": {
							"name": "sap.suite.ui.generic.template.ObjectPage"
						}
					}
				}
			}
		}
	},
	"sap.platform.hcp": {
		"uri": ""
	}
}

And this is my result from the ALP

Compact Filter is shown

Visual Filter is not shown

Consol Log

    

Accepted Solutions (0)

Answers (3)

Answers (3)

MioYasutake
Active Contributor
0 Kudos

Hi annevahle,

You need to associate filter properties with PresentationVariant.

Please see Visual Filter (annotation.xml) section of this blog.

https://blogs.sap.com/2018/04/04/create-an-analytical-list-page-using-abap-cds-views-and-annotations...

Regards,

Mio

0 Kudos

HI Anne,

Have you resolved this ? If yes, can you plz share the solution?

VincentBloem
Participant
0 Kudos

delete this in your manifest:

"metadataUrlParams": {"sap-value-list": "none"}