Hi Team,
I have script which uses findNodesByExample on 1.8.6 and it returns nodes with regex as expected.
When I upgrade go js to 1.8.16 same script is not working as expected.
Used function as below
getNodesFromDialog = function (dialog, nodeText)
{
var out = undefined;
var regex = new RegExp(nodeText, “i”);
var results = dialog.findNodesByExample({name: regex});
if (results.count > 0)
{
out = [];
results.each(function (n) {
if (!n instanceof window.go.Node)
return;
out.push(n);
});
}
return out;
}
please, suggest how to resolve this ?
With Regards, NV