cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ResultList.SUPPRESS in mapWithDefault?

maxi1555
Contributor
0 Kudos

Hi experts,

I want to use as a default value "ResultList.SUPPRESS" in the node function "mapWithDefault" in the best way, any ideas?.

Kind Regards.

Max.

Accepted Solutions (1)

Accepted Solutions (1)

maxi1555
Contributor
0 Kudos

Hi All,

After a deeper investigation, I found that It's not possible:

"Graphical Mapping" source code:

"mapWithDefault" function source code:

Nothing special there, so I wrote my custom mapWithDefault UDF with a parameter:

so I'm getting the expected result, and I solved it in the best way.

Kind Regards.

Max.

Answers (1)

Answers (1)

former_member190293
Active Contributor
0 Kudos

Hi Maximiliano!

Try this:

Regards, Evgeniy.

maxi1555
Contributor
0 Kudos

Hi Evgeniy,

That's the reason why I added "the best way" 😉

Kind Regards.

Max.

former_member190293
Active Contributor

Hi Maximiliano!

Ok, another way is to use some value for "MapWithDefault" followed by "If" with condition checking for that value and "Keep SUPPRESS value" option checked 🙂

Regards, Evgeniy.

maxi1555
Contributor
0 Kudos

Evgeniy,

As you said It's another way, I'm looking for "the best way" 😛

Kind Regards.

Max.