cancel
Showing results for 
Search instead for 
Did you mean: 

SSLM - JavaScript validation rule

Former Member
0 Kudos

Hi,

Just read a post about JavaScript being supported in iOS as of Agentry Clients 6.0.30.0.

Now, I wanted to perform a validation check on an entered email address (in a transaction) and found a standard validation rule 'ValidateAccountEmailAddress' as an example. The content seemed straightforward, you pass on the transaction property, validate it and return true or false. As far as I can interprete JS (ahum!), this one always returns true since there is actually no logic applied.

When I add this validation rule to my transaction, it doesn't seem to validate 'true' and throws me an error all the time.

Could it be that it compares a string vs. boolean value? I also tried EQBOOL, but no luck either.

Or could it be that it doesn't launch at all..

The client I'm running is 6.0.42.0.

Thanks,

Sebastiaan.

Tags edited by: Michael Appleby

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_latko
Advisor
Advisor
0 Kudos

Sebastian,

See if you can get it to work on a Windows client like the ATE.  That will tell you if iOS is the problem here.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Each line that has a Open or a close bracket must also have the other.  What you can do is like


{ /* } */

return true;

/* { */ }