on 01-05-2010 5:17 PM
Hi All,
I have bunch of validation in MDM (data manager) ;
during my Portal screen traverse ( am in the middle of the process - the record is not yet committed to MDM), is it possible to call MDM validation(MDM Java API) to validate the fields values entered so for?
really glad if you could revert back asap.
thanks,
Alexander
Create an empty record set all the values in it or update existing record with the new values without committing it.
RetrieveValidations Command - get the validations array, use the validation name to find the appropriate validation you want to execute or you can execute all in loop.
ValidateRecordsCommand for existing record or ValidateNewRecordCommand for New records(empty record) to execute.
Returns you ValidationResult.
ValidationResult contains getFailedValidations() that returns array of ValidationProperties of those validations that failed. Loop through the array to get the Error Message you would have set to display.
and after doing all this... Chill and Enjoy:-)
Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can run specific validations before the record is in MDM and before the save. You can use the RetrieveValidationsCommand to get the validations from MDM and loop through the results to find the exact validations you want to run. Then use the ValidateNewRecordValuesCommand passing in the specific validations to run.
Hope this helps.
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.