Hi,
I've got a set filter not evaluating what it should be and I've tried every way that won't work. I cannot get the set filter to express a control's displayvalue into a static value within the set filter expression. I'm sure I've done this sort of thing a thousand times before, but everything I've tried has failed. Here is what I've tried and their results. The first way works, but hardcoded, while all others fail to get me the same string as the top one...
Set Filter To Alltrim(Upper(division_id)) = 'SLA-KY' In 'AR_invoice'
set ("filter") returns ALLTRIM(UPPER(DIVISION_ID))="SLA-KY"
This works correctly, but I'm hardcoding in the value string.
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = ALLTRIM(UPPER(Thisform.cboDivisionSelector.DisplayValue))
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=ALLTRIM(UPPER(Thisform.Cbodivisionselector.DISPLAYVALUE))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = EVALUATE(ALLTRIM(UPPER(Thisform.cboDivisionSelector.DisplayValue)))
set ("filter") returns errors out with error #12
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = cc
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=CC
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = &cc
set ("filter") returns errors out with error #12
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = (cc)
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=(CC)
cc = ALLTRIM(upper(Thisform.cboDivisionSelector.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = (cc)
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=(CC)
cc = ALLTRIM(upper(Thisform.cboDivisionSelector.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = eval(cc)
set ("filter") returns errors out with error #12
Any ideas?
Thanks, Stanley
I've got a set filter not evaluating what it should be and I've tried every way that won't work. I cannot get the set filter to express a control's displayvalue into a static value within the set filter expression. I'm sure I've done this sort of thing a thousand times before, but everything I've tried has failed. Here is what I've tried and their results. The first way works, but hardcoded, while all others fail to get me the same string as the top one...
Set Filter To Alltrim(Upper(division_id)) = 'SLA-KY' In 'AR_invoice'
set ("filter") returns ALLTRIM(UPPER(DIVISION_ID))="SLA-KY"
This works correctly, but I'm hardcoding in the value string.
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = ALLTRIM(UPPER(Thisform.cboDivisionSelector.DisplayValue))
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=ALLTRIM(UPPER(Thisform.Cbodivisionselector.DISPLAYVALUE))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = EVALUATE(ALLTRIM(UPPER(Thisform.cboDivisionSelector.DisplayValue)))
set ("filter") returns errors out with error #12
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = cc
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=CC
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = &cc
set ("filter") returns errors out with error #12
cc = ALLTRIM(upper(This.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = (cc)
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=(CC)
cc = ALLTRIM(upper(Thisform.cboDivisionSelector.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = (cc)
set ("filter") returns ALLTRIM(UPPER(Ar_invoice.DIVISION_ID))=(CC)
cc = ALLTRIM(upper(Thisform.cboDivisionSelector.DisplayValue))
Set Filter To ALLTRIM(UPPER(AR_invoice.division_id)) = eval(cc)
set ("filter") returns errors out with error #12
Any ideas?
Thanks, Stanley