Jump to content

Worksheets - Using wildcards to display only devices on a range of Layers (L=)


elc

Recommended Posts

Hi @michaelk,
thanks for looking into this.
I am using wildcards quite a lot and they work everywhere (or at least everywhere I needed them so far 😅) except for the Layers.

 

Lets say you have layers: 1001, 1002, 1003, 2001, 2002, 3004...

but only want to select all devices ('Device'.'name'='*') on layers starting with 1 (L='1*') that does not work for me. The resulting list is empty.

Link to comment

Threads in 2015 and 2016 talk about Layers not being able to use wildcards.

 

Thread in 2022 talks about Layers not being able to use wildcards in Vectorscript.

 

My personal guess as to why is that the Layers are kept in a separate "Name List" from Classes and other objects and wildcards have never be implemented for that list.

Link to comment
3 hours ago, Pat Stanford said:

My personal guess as to why is that the Layers are kept in a separate "Name List" from Classes and other objects and wildcards have never be implemented for that list.


Thanks for the info @Pat Stanford, that's a shame, as it is inconsistent? but...
 

 

18 hours ago, michaelk said:

I wonder if there is a way to use the Left function or a Substring function in the database formula to do what you want.

...thanks a lot for the suggestion @michaelk!
another "why didn't I think of that?! but luckily there is always some very smart person on the forum that knows exactly what to do"-moment. 😅
with the above example

... & (Left(Layer;4)='1*') & ...

worked like a charm.

 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...