Forum Discussion

blatec's avatar
blatec
Occasional Contributor
9 years ago
Solved

Array Type mismatch in javascript

Hi,

 

if i call this function csSetControlValue("ctrlInterestRateTypeSleList",['003','004']) in the chrome console (F12) it work correct.

 

But if i try to call this -> Aliases.browser.MainPage.contentDocument.script.csSetControlValue("ctrlInterestRateTypeSleList",['003','004']) from Testcomplete Javascript, i get an type mismatch error.

 

If i provide a single string instead of an array it works. -> Aliases.browser.MainPage.contentDocument.script.csSetControlValue("ctrlInterestRateTypeSleList","003")

 

Maybe someone can help me.

 

best regards

 

Horst