Using BrowseFilter in browseAsync (v8 API)

ignition80
#1

I’m attempting to find the tagpaths inside the gateway’s default tagprovider.
Using:

CompletableFuture<Results<NodeDescription>> node=context.getTagManager().getTagProvider("default").browseAsync(TagPath,BrowseFilter);

In browseAsync, how is BrowseFilter configured? Currently, node returns a NullPointerException.

0 Likes

#2

If you don’t need any filtering on results, just use the static com.inductiveautomation.ignition.common.browsing.BrowseFilter.NONE instance. If you do need to add filtering, then construct a new BrowseFilter(), then add various name, property, etc filters to it.

0 Likes