I want filter out data from my data set array on basis of any like condition ? (reject function)

I want filter out data from my data set array on basis of any like condition ?

 

Can i use reject function for that ? but how i will do this as its accepting first parameter as function.

reject(fn!isnull, {1, null, 3})

reject("*test*",local!dataset.fieldName) - Syntext might be incorrect but i want something like this

  Discussion posts and replies are publicly visible

Parents
  • You can use something like below. This is just an example you can configure the rules as you need.

    predicate rule content: (i have named the rule as 'Test_checkLike' )

    regexmatch(".*"&"suresh"&".*",ri!valtoCheck)

    the main rule will look like below.

    load(
    local!arraydata:{{name:"test suresh test"},{name:"namal"},{name:"guna"}},
    reject(rule!Test_checkLike,local!arraydata)
    )
    Hope this will give you some idea how to use the check that you are after.

    Note: I have used regexmatch function which you can find in Appian Regular Expression Functions plugin.

    Regards
    Suresh
Reply
  • You can use something like below. This is just an example you can configure the rules as you need.

    predicate rule content: (i have named the rule as 'Test_checkLike' )

    regexmatch(".*"&"suresh"&".*",ri!valtoCheck)

    the main rule will look like below.

    load(
    local!arraydata:{{name:"test suresh test"},{name:"namal"},{name:"guna"}},
    reject(rule!Test_checkLike,local!arraydata)
    )
    Hope this will give you some idea how to use the check that you are after.

    Note: I have used regexmatch function which you can find in Appian Regular Expression Functions plugin.

    Regards
    Suresh
Children
No Data