• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

NAB Filter Program

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

  • NAB Filter Program

    Sample program EXNABFLT shows "opr" possible values as = <= > >= <> between

    Does this mean if you have a filter operation that is "contains" you can't manipulate it with SetValue? If so, would I have to build the entire filter and not use WriteAllFilters() and return the filter string in vvOut_toJSONpair

    Thanks




  • #2
    SetValue will allow you for anything that you pass it. So if you wanted to change a particular field to behave like "contains", the following should work:

    Code:
    lMyFieldValue = GetValue('MY_FIELD':'value');
    SetValue('MY_FIELD':'opr':'like');
    SetValue('MY_FIELD':'value': '%' + %trim(lMyFieldValue) + '%');

    Comment


    • #3
      Great! Thanks for the "Advanced Technique" ..lol

      Comment

      Working...
      X