on 01-22-2016 10:57 AM
Hello Personas experts,
ive some trouble with check if textfield is empty i do ist with
if (session.findById("wnd[0]/usr/txtPersonas_1453279026246").text == "")
but when the textfield is empty every script stops working and i dont have the possibility to catch this issue is there any solution for this problem ?
Thank you for Helping
kind regards
Florian
Update to the last version has fixed the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by "stops working"? That's pretty hard to help with...
I can't immediately see anything wrong with your code, but I would write that test like this:
if (!session.findById("wnd[0]/usr/txtPersonas_1453279026246").text)
I use this construct through all of my scripts and it works perfectly.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since we have installed Personas 3 SP2 i geht this errormessage when execute my code:
Error during script execution:
TypeError: Cannot read property 'Text' of undefined
at Object.oPrivate.getPropertyValue
and it happens only when i check a textfield if its empty.
In Personas 3 SP1 this works well.
Florian
Just a thought. After installing SP02 did you flush the MIME cache in the Personas admin transaction? Also try flushing the flavour cache and your browser cache. This sort of feels like you might have some of SP01 cached somewhere and there's an internal incompatibility. Worth a try.
This might be the cause of your other problem, with executeScript, also.
Steve.
Ive cleaned now the MIME Cache, the Flavors Cache and my Browser Cache and both scripts do still not working.
But while testing i found out that the issue with empty textfields only appears when the developertools from chrome isnt open. When it is open and i call the debugger everthing works fine.
Florian
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.