getAllChecked function returns unchecked values as null

Hello,

I’ve noticed that getAllChecked function returns NULL (just two delimiter characters in a row) for all unselected root nodes.

For example, if there’s a tree with root nodes A, B, C, D, E, F, G, and H, with only A and E checked, getAllChecked will return: A,E,. In order for me to properly use this, I have to regex them out: getAllChecked().replace(/,+/g,‘,’).replace(/,+$/g,‘’).

Is this by design?

I’m using v.2.5 build 91111

Thanks!

-Scott

Hello,

Is this by design?

This is known behaviour, but unfortunately it can be changed. The “,” can be returned if you use smartXMLParsing and getAllChecked is applied for unparsed branch.

Thanks for the reply, Alexandra!

This is known behaviour, but unfortunately it can be changed.
Did you meant “can’t” be changed?

The “,” can be returned if you use smartXMLParsing and getAllChecked is applied
for unparsed branch.
Sorry, but I don’t understand this. What do you mean by “The “,” can be returned”?

Thank you!

-Scott

Did you meant “can’t” be changed?

Yes, it was a typo. I meant “can’t be changed”.

The “,” can be returned

getAllChecked can return the list with empty values.