I am trying out event tmed and @DTL variables. What I want to do is, select a Tender and identify if the action done is "VOID". However, for some reason, @DTL_SELECTED is always 0 even if the Tender has been selected.
Is there anything wrong with what I am doing below?
[ol 1]
[li]Select a Partial Tender[/li]
[li]Click default VOID button[/li]
[li]Script below runs but all DTL_SELECTED is 0[/li]
[/ol]
Is there anything wrong with what I am doing below?
[ol 1]
[li]Select a Partial Tender[/li]
[li]Click default VOID button[/li]
[li]Script below runs but all DTL_SELECTED is 0[/li]
[/ol]
Code:
event tmed : *
for i= 1 to @NUMDTLT
if @DTL_TYPE[i] = "T"
errormessage i,":", @DTL_TYPE[i], ":", @DTL_NAME[i], ":", @DTL_SELECTED[i], @DTL_IS_VOID[i]
endif
endfor
endevent