go to post Mindy Caldwell · Apr 26, 2023 Edward, Thanks for your suggestion. Class modified as suggested. Index rebuilt. Select command still fails unless I put the leading space. TRAX:SELECT ISELLER WITH FundraiserId = "HTE_FSG_SPRING2022" [401] No items present. TRAX:SELECT ISELLER WITH FundraiserId = " HTE_FSG_SPRING2022" 505 Items selected to list #0 TRAX>>clearselect TRAX:SELECT SALESREP WITH FundraiserId = "HTE_FSG_SPRING2022" 505 Items selected to list #0 TRAX>>clearselect TRAX:
go to post Mindy Caldwell · May 5, 2022 Well, I won't win any prizes but I just wanted to rejoice in writing my first classmethod in objectscript. Here is my less than elegant solution ClassMethod Detector(a As %String, b As %String) As %Boolean { SET a=$CHANGE(a," ","") SET a=$ZCVT(a,"l") SET b=$CHANGE(b," ","") SET b=$ZCVT(b,"l") SET c = "" FOR i = 1 :1 :$L(a) { SET p = $F(b,$E(a,1)) if p { SET $E(b,p-1)="" } else { set c=c_$E(a,1) } set $E(a,1)="" } if ($L(a) + $L(b) + $L(c) ) { q 0 } else { q 1 } } }
go to post Mindy Caldwell · Dec 10, 2020 Sample code and common apps. Would love to have a shopping cart example.