How to add add validation in AdminPresentationCollection?
Posted: Wed Oct 15, 2014 8:10 am
How we can add validation in @AdminPresentationCollection similar to what we can do with @AdminPresentation.
validationConfigurations is not allowed as part of @AdminPresentationCollection
Please find the attached screenshots for more details.
We want to add validation when user selects some item from the pop up which is opened while pressing 'Add' button as shown in screenshot '2.png'. Pop up is shown in '3.png'.
SO how can we achieve this?
Thanks & Regards,
Hardik Raval
validationConfigurations is not allowed as part of @AdminPresentationCollection
Code: Select all
validationConfigurations={
@ValidationConfiguration(validationImplementation="parentMerchantValidator",
configurationItems={
@ConfigurationItem(itemName=ConfigurationItem.ERROR_MESSAGE, itemValue="Parent can not be a parent or child of other merchant")
})
})
Please find the attached screenshots for more details.
We want to add validation when user selects some item from the pop up which is opened while pressing 'Add' button as shown in screenshot '2.png'. Pop up is shown in '3.png'.
SO how can we achieve this?
Thanks & Regards,
Hardik Raval