logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jsobell  
#1 Posted : Monday, September 24, 2018 7:07:23 AM(UTC)
jsobell


Rank: Newbie

Joined: 7/24/2014(UTC)
Posts: 3
Australia
Location: Melbourne

Is there any way to either use a regex expression or an IndexOf() type function when setting up a session group Filter?
I currently use
Session Filter: Name LIKE '%:%'
Subgroup Expression: SUBSTRING(Name,1,8)

This means that if I name a machine "Colo :Machine A" it creates a sub group called "Colo" with the machine inside, but I'm locked to 8 characters as a location name and have to make sure I pad it out properly.
If there were an IndexOf type function I could say Subgroup Expression: SUBSTRING(Name,1,IndexOf(Name,":")-1) or something similar to read the group name properly.
Any other suggestions or tips for restructuring the groups would be great.
jsobell  
#2 Posted : Monday, September 24, 2018 11:29:52 PM(UTC)
jsobell


Rank: Newbie

Joined: 7/24/2014(UTC)
Posts: 3
Australia
Location: Melbourne

I just realised I can just add the CustomProperty2 field to the machine edit dialog through the settings, and that looks to be the easiest solution.
Mind you, a position function in the filter such as INSTR() wouldn't go amiss as it's frequently required for use with SUBSTRING().
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.