cancel
Showing results for 
Search instead for 
Did you mean: 

MDK Validation/ Clear Validation after Input

robert_hunger
Participant
0 Kudos

Hi MDK- Experts,

I use for some FormCell in a Page Validations to indicate whats wrong or what's missing.

After input i want to clear this indication.

I try to use method 'control.clearValidationOnValueChange()' but nothing happen after change.

	clientAPI.executeAction('/..../Actions/.../CheckRequiredFields.action').then((value) => {
		value.data.forEach(control => {
			control.setValidationProperty('ValidationMessage', "Eingabe prüfen");
			control.redraw();
			control.clearValidationOnValueChange();
		})
	})

So i put clearValidation() in a Rule and trigger this on Event ValueChange on my FormCell control

export default function clearValidation(clientAPI) {
clientAPI.clearValidation();
}

This works fine for andriod but on IOS get worst. The entries in the field are absolutely mixed up. I type a number or letter and another number or letter appears.

What i did wrong ?

Thanks a lot,

Robert

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

robert.hunger

Were you able to resolve your issue? If the below response helped you, then please mark the helpful answer by accepting it OR post an answer so others might benefit from your findings and then close this discussion.

Regards,

Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Robert,

What version of MDK are you using?

I just tested on iOS using the latest MDK 5.1 version and on iOS it appears to be working as expected. Can you upgrade and retest if not on the latest version?

Thanks,

--Bill