CONTAINS Operator
 

CONTAINS Operator

3 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    15 Dec 2019
    Link to this post
    I thought I opened a ticker for this a while back but I cannot find one.

    I am asking to add support in the SmartDataBrowser for the CONTAINS Operator. We use a WORD-INDEX on many tables in our database. I have added it to Consultingwerk.Windows.Util.UltraGridFilterRowHelper in the OperatorFromUltraGrid and it does seem to work just fine.

    METHOD PUBLIC STATIC OperatorEnum OperatorFromUltraGrid (poFilter AS FilterComparisionOperator):
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:Equals) THEN
                RETURN OperatorEnum:EQ .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:NotEquals) THEN
                RETURN OperatorEnum:NE .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:GreaterThan) THEN
                RETURN OperatorEnum:GT .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:GreaterThanOrEqualTo) THEN
                RETURN OperatorEnum:GE .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:LessThan) THEN
                RETURN OperatorEnum:LT .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:LessThanOrEqualTo) THEN
                RETURN OperatorEnum:LE .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:StartsWith) THEN
                RETURN OperatorEnum:Begins .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:Like) THEN
                RETURN OperatorEnum:Matches .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:EndsWith) THEN
                RETURN OperatorEnum:Matches .
            IF EnumHelper:AreEqual(poFilter, FilterComparisionOperator:Contains) THEN
                RETURN OperatorEnum:Contains.
        END METHOD .
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    15 Dec 2019 in reply to Roger Blanchard
    Link to this post
    Hi Roger, please log a JIRA ticket for an enhancement request. 
  3. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    15 Dec 2019 in reply to Mike Fechner
    Link to this post
    Done, thanks.
3 posts, 0 answered