Announcement

Collapse
No announcement yet.

Query Service

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Query Service

    Hi,

    SetupFactory does not support case sensitive ?

    E.g. Service running on the system is "serviceNAME" when i query "servicename" the query will return a null value.

    Any help on this is much appreciated.

    Best Regards,
    Braendan

  • #2
    Re: Query Service

    Yes, you are right the Query Service action is case sensitive for the display name.

    I'm certainly no expert on Services, however isn't that standard for queries? Please correct me or point me to any information to the contrary if you believe this should not be the case.

    Comment


    • #3
      Re: Query Service

      I need a way to force the input for the service query to CAPS. The reason for this is some certain services has a mix of small caps and caps which will make the query inaccurate.

      Comment


      • #4
        Re: Query Service

        One idea is the following:

        1) First gather the input from the user and store it in a variable.
        2) Create a variable that contains a string composed of all of the alphabetic characters in lower case.
        3) Create a variable that contains a string composed of all of the alphabetic characters in upper case.
        4) These strings will have indexes for each character, so what you could do is loop through your input string to check each character against the lower case string. If that input character matches any value in the lower case string, get it's index and then take that index to get the character in the upper case string. With each of these upper case letters, build a new variable string using string concatenation. This will require some looping, but I believe it will work.

        Comment

        Working...
        X