Skip to Content
avatar image
Former Member

MDM Validation - Getting triggered in Portal

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 05, 2010 at 05:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 06, 2010 at 04:27 PM

    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

    Add comment
    10|10000 characters needed characters exceeded