I packed my iban4j java library implementation in an AppStore module, the IBAN Module:
https://appstore.home.mendix.com/link/app/52954/First-Consulting/IBAN-Module
Since IBAN check is very simple you can do it with some simple Java code:
// BEGIN USER CODE
// verwijder alle tekens die geen cijfers zijn
bankaccountnr = bankaccountnr.replaceAll( "[^\\d]", "" );
int aantal_tekens = bankaccountnr.length();
int som = 0;
// loop door de 9 cijfers met de 11 proef formule
for (int i = 1; i < 10; i++)
{
int getal = Integer.parseInt(Character.toString(bankaccountnr.charAt(i-1)));
som+=getal*(10-i);
}
// geef resultaat van check terug
if (som % 11 == 0 && aantal_tekens == 9)
{
return true;
}
else
{
return false;
}
Regards,
Ronald
Ok, thanks all for the response. I implemented the iban4j Java library and it also validates against country specific formats