on 04-04-2024 4:54 PM
Hi Experts,
Please suggest how can I remove the NULL from the context ? tried couple of script but none working.
Dear @das_sappo,
Could you please explain why you want to do this. My understanding is that this, having NULL in the first row, is normal. You cannot remove it. It represents the previous value when the context changed. For the first change there is no previous value. So it is always NULL.
Perhaps you should take a step back and look at why you thought it necessary to remove the NULL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Could you try the following code please?
def void removeNullFromContext(String[] items, Output output) {
items.each { String item ->
if (item != null) {
output.addValue(item)
}
}
}
BR,
Andrzej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.