on 02-14-2023 5:23 PM
Hi Community,
I'm working as Fiori/UI5 Developer for Stadtwerke München (SWM) - the local Utilities Company in Munich.
I've got an urgent Requirement from our End-Users:
In one of our Fiori Elements List Reports (OData V4), there are 2 filter fields on the filter bar.
At least one of these 2 fields must be filled with a value (provided by the End-User). It's ok if both are filled, but it's not ok, if none is filled.
In this case we need to generate an error message and prevent the framework from calling the OData Service for reading the data.
We cannot simply set both fields to mandatory, because it must be possible to fill just one field.
And simply attaching an event handler to the Go-Button doesn't do the trick, either, because the service-call (read) is triggered beforehand.
So, it would be great to have a hook (e.g. via controller extension) in order to intercept the read trigger after pushing the Go (Start)-Button or the Enter Button with focus on a filter field.
I saw, that there are a couple of framework hooks in Edit mode - but none in read mode 😞
Does anyone had a similar problem and found a solution for it?
Any kind of help is more than welcomed 🙂
I think Durga Prasanth had a similar question:
validation-on-go-button-in-fiori-element-list-report
Unfortunately, the answer didn't solve our problem.
Regards
Thorsten Klingbeil
Hello Thorsten,
my name is Thomas Neuhauser and I'm part of the development team working on Fiori Elements v4.
I checked your requirement with our architects and experts and your analysis and conclusion is correct. Currently there is no hook in the framework supporting what you want to achieve and doing this check in the backend service is the right approach.
However I forwarded your requirement to our product owners so that they may consider this as a requirement for future releases.
Best Regards,
Thomas Neuhauser
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Many thanks thomas.neuhauser - I appreciate your support!
Since it's kind of business logic, doing the validation in the backend is fine for us (our golden rule: business logic belongs in the backend!)
However, in terms of better UX (performance) - a pure frontend option would be very helpful! 🙂
In our Company, SAPUI5 is regularly benchmarked against modern Open Source Frameworks like react, qwik, solid, svelte, etc. 😉
br
Thorsten
User | Count |
---|---|
84 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.