[jira] [Comment Edited] (OFBIZ-7471) Improve all the service level error messages for missing required field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-7471) Improve all the service level error messages for missing required field

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337907#comment-15337907 ]

Deepak Dixit edited comment on OFBIZ-7471 at 6/18/16 1:53 PM:
--------------------------------------------------------------

We have utility to set error message on service definition as well, I think we can add error message over there.

Here is the example
{code}
        <attribute name="shippingContactMechId" type="String" mode="IN" optional="false">
            <type-validate>
                <fail-property resource="OrderUiLabels" property="checkhelper.select_shipping_destination"/>
            </type-validate>
        </attribute>
{code}


was (Author: deepak.dixit):
We have utility to set error message on service definition as well, I think we can add error message over there.

> Improve all the service level error messages for missing required field
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-7471
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7471
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Upcoming Branch
>            Reporter: Ratnesh Upadhyay
>         Attachments: ImprovedUFMsgs.png
>
>
> Currently when a user submits a form with missing required fields, for instance creating a contactMech (Postal Address) from party profile screen.
> Here, in such scenarios the service engine returns missing field error message as:
> {code}
>     The Following Errors Occurred:
>           The following required parameter is missing: [createPartyPostalAddress.city]
>           The following required parameter is missing: [createPartyPostalAddress.address1]
>           The following required parameter is missing: [createPartyPostalAddress.postalCode]
> {code}
> Such error messages can be improved across the application by making it more user friendly like:
> {code}
> Required Field Missing : Address Line 1.
> Required Field Missing : City.
> Required Field Missing : Postal Code.
> {code}
> I'll review similar scenarios across the application.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)