Closed whwh656 closed 2 years ago
Have you checked whether the ret
data exist in the workflow log?
And I think there's an error in your javascript code, you can't re-assign a variable that you declared with const
and use let
instead.
let ret = 0
if (textlen == 3) {
ret = 1;
} else {
ret = 'ddd'
}
automaNextBlock({ ret });
The root cause is the automaRefData() don't get value of variable test, if I want to get the length of arrary of get text block in javascript block, How should I write
Have you tried write automaRefData('dataColumns', '0.test')
, it's cause an error because Automa doesn't recognise text
column.
Have you tried write
automaRefData('dataColumns', '0.test')
, it's cause an error because Automa doesn't recognisetext
column.
I try it it doesn't work testbaidu.txt
I try it it doesn't work testbaidu.txt
Can you explain what the workflow suppose to do? Because it's working when I tested it
I try it it doesn't work testbaidu.txt
Can you explain what the workflow suppose to do? Because it's working when I tested it
the workflow is green ,but srceenshot'name doesn't get from javascrit block
It doesn't work because the prevBlockData
object doesn't have the ret
key. Because in the javascript block you write automaRefData({ a })
.
To fix this you can write automaRefData({ ret })
, or if you want to name the screenshot based on the column length you can write automaRefData({ ret: a })
.
const a = automaRefData('dataColumns', '0.test').length;
var ret = 0
automaNextBlock({ ret: a })
thanks
automa v12.0
I try add double quote in {{prevBlockData@ret }} it doesn't work either