on ā2025 Feb 20 8:26 PM
Hi Experts,
I am default value for date field in smartfilterbar which is working fine. But when I try to click on F4 searchhelp to replace the date field value, error message is shown in console which doesn't allow me to proceed further. Can someone help me to fix this issue ?
Error message is {name: 'FormatException', message: 'Illegal sap.ui.model.odata.type.DateTime value: '}
Code that is used in filter initializing method to display default date:
Error in console:
Thanks in advance.
Request clarification before answering.
Do you want to set a fixed date? This is how we did this for the last week:
var oDefaultFilter = {
"createTimestamp": {
"conditionTypeInfo": {
"name": "sap.ui.comp.config.condition.DateRangeType",
"data": {
"operation": "THISWEEK",
"value1": null,
"value2": null,
"key": "createTimestamp",
"calendarType": "Gregorian"
}
}
}
}
oSmartFilter.setFilterData(oDefaultFilter);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.