04-02-2015 03:48 AM
{
name : "alfresco/forms/controls/TextBox",
config : {
fieldId : "PRODUCT_NAME",
label : "Product Name",
name : "prop_cm_name",
description : "Provide a Unique Value for the Product Name.",
requirementConfig : {
initialValue : true
},
validationConfig : [ {
validation : "validateUnique", //This doesn't do case-insensitive validation
itemsProperty : "response.productNameList",
errorMessage : "The Product Name already exists!",
publishTopic : "ALF_CRUD_GET_ALL",
publishPayload : {
url : "retrieve-library-list?retrieve=Product%20Library"
}
} ]
}
}
"The Product Name already exists"
only when I type the exact case as it is returned by the Json Array, sample JSON Response shown below,{
"productNameList": [
{
"prop_cm_name": "Banner Small"
},
{
"prop_cm_name": "Business Vertical"
},
{
"prop_cm_name": "Banner Medium"
},
{
"prop_cm_name": "Business Accessories"
},
{
"prop_cm_name": "Banner Large"
}
]
}
"Banner Small"
, I'll get the error, but if I type "banner small"
, I won't get the error.04-02-2015 11:11 PM
04-05-2015 01:23 PM
04-13-2015 04:09 AM
04-14-2015 02:04 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.