Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Not working findNodesByExample on 1.8.16

$
0
0

@Nimesh wrote:

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

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles