make DynamicDateRange.js control available in forms#4130
make DynamicDateRange.js control available in forms#4130stesap wants to merge 1 commit intoUI5:masterfrom
Conversation
This change will add support for forms (`sap.ui.layout.form.Form`) and form container (`sap.ui.layout.form.FormContainer`) on DynamicDateRange control.
|
|
|
Hello @stesap , Thank you for your pull request. I've created an internal record DINC0279997. The status of the issue will be updated here in GitHub. Regards, |
|
Hi @stesap, Could you please share your scenario? Thanks & Regards, |
|
Hi @DMihaylova, in our app we're using the control to provide relative dates:
In addition as we use these values as a relative date in the database, to create schedules for automated runs in the future. To support the binding, we implemented a custom type, which does the parsing and formatting. Maybe, it's possible to support these via interfaces and methods which needs to be implemented by developers? Similar to the -Steffen |
|
This pull request will be tackled via backlog item BGSOFUIBALKAN-8722. |
|
Hey @stesap, Thanks for the request and for taking the time to explain your scenario. At this time, we won’t be moving forward with implementing support for using DynamicDateRange as a form input. The control is designed as a filter component for querying data (similar to Search), not for form-based data submission. Its value structure doesn't map to the simple, serializable values that forms expect. Even if we provided a way to normalize the value before form submission, there's multiple ways we can format the value and whatever we pick wont satisfy all use cases. For scenarios where users need to select from predefined options, we recommend using a Best Regards, |

Change
This change will add support for forms (
sap.ui.layout.form.Form) and form container (sap.ui.layout.form.FormContainer) on DynamicDateRange control.Motivation
The DynamicDateRange control is shown in the UI5 samples page mostly as a filter for a table. It would also be helpful to have this input control in a form as well. At least we tested this successfully in our app and haven't seen any issues so far.