Skip to Content
0
Aug 02, 2023 at 07:46 AM

MDK - Filter is not shown

174 Views

Hello all,

I am currently trying to build an MDK app that uses a CDS view as a data source. To be able to filter the data, I have also created a filter action and a filter page. My problem is that on the filter page the individual filter items cannot be displayed and selected.

image.jpeg
The screenshot is from the Android App.

In the sample app "Persistent Filters", on the other hand, the filters are displayed.

image.jpeg

Unfortunately, transferring the code from the sample app did not work either.

This is my code from the filter page:

{
"Controls": [
{
"_Type": "Control.Type.SectionedTable",
"_Name": "SectionedTable0",
"Sections": [
{
"Controls": [
{
"_Type": "Control.Type.FormCell.Sorter",
"_Name": "FormCellSorter0",
"IsEditable": true,
"IsVisible": true,
"Separator": true,
"AllowEmptySelection": false,
"Caption": "Sort by",
"SortByItems": [
{
"DisplayValue": "Name",
"ReturnValue": "Ename"
},
{
"DisplayValue": "Date",
"ReturnValue": "BirthDate"
}
]
},
{
"_Type": "Control.Type.FormCell.Filter",
"_Name": "FormCellFilter0",
"IsEditable": true,
"IsVisible": true,
"Separator": true,
"validationProperties": {
"SeparatorIsHidden": true,
"ValidationViewIsHidden": true
},
"AllowMultipleSelection": true,
"AllowEmptySelection": false,
"Caption": "Filter by",
"FilterProperty": [
{
"DisplayValue": "personnel number = 1",
"ReturnValue": "Pernr eq '1'"
}
]
}
],
"Visible": true,
"EmptySection": {
"FooterVisible": false
},
"_Type": "Section.Type.FormCell",
"_Name": "SectionFormCell0"
}
]
}
],
"_Type": "Page",
"_Name": "ZTEST_CDS_BK_Filter",
"Caption": "Filter",
"PrefersLargeCaption": false,
"ActionBar": {
"Items": [
{
"_Name": "ActionBarItem1",
"Caption": "Back",
"Position": "Left",
"IsIconCircular": false,
"Visible": true,
"OnPress": "/MDKCDSTest/Actions/CloseModalPage_Cancel.action"
},
{
"_Name": "ActionBarItem0",
"Caption": "Done",
"Position": "Right",
"IsIconCircular": false,
"Visible": true,
"OnPress": "/MDKCDSTest/Actions/CloseModalPage_Complete.action"
}
],
"_Name": "ActionBar1"
},
"Result": [
"#Page:ZTEST_CDS_BK_Filter/#Control:FormCellSorter0/#Value"
]
}
Can anyone help me further?

Attachments

image.jpeg (26.9 kB)
image.jpeg (86.2 kB)