https://bugs.documentfoundation.org/show_bug.cgi?id=120603
--- Comment #6 from Julien Nabet <serval2...@yahoo.fr> ---
(In reply to Lionel Elie Mamane from comment #5)
>...
> Giving a different error message when the "input required" bit comes from
> the form or from the database can still be considered a worthy enhancement.
If I understand well, you want to distinguish these 2 cases:
- xFirstControlWithInputRequired
- xFirstGridWithInputRequiredColumn
see
https://opengrok.libreoffice.org/xref/core/svx/source/form/formcontroller.cxx?r=cec7ae9f#219
So in function FormController::approveRowChange
(cf
https://opengrok.libreoffice.org/xref/core/svx/source/form/formcontroller.cxx?r=cec7ae9f#3706)
instead of:
3706 OUString sMessage( SvxResId( RID_ERR_FIELDREQUIRED ) );
3707 sMessage = sMessage.replaceFirst( "#", rColInfo.sName );
It would be something like:
OUString sMessage( xFirstControlWithInputRequired?SvxResId(
RID_ERR_FIELDREQUIRED _DB):SvxResId( RID_ERR_FIELDREQUIRED_FORM ));
(or reuse RID_ERR_FIELDREQUIRED for DB and change the content to explicitly
quote database and add RID_ERR_FIELDREQUIRED_FORM)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs