I applied this lines of codes below and it working but i will like it to do more. I want a situation that
my selection in BRANCH_ID in a case will not appear as part of the dynamic values in my next case.
To explain further:
Case P1000061 - I had the following values :
- 12 Denpsar
13 Meila
14 St Louis
In case P1000062 I will like to see
- 12 Denpsar
14 St Louis
Please is it possible, if yes I really need help !!!
Code: Select all
PROC BRANCH_ID
onfocus
numeric nextEntry = 1;
forcase BRANCH_DICT where TAX_ID = XTAX_ID do
codesString(nextEntry) = key(BRANCH_DICT);
labels(nextEntry) = maketext("%s ", strip(XADDRESS));
nextEntry = nextEntry + 1;
endfor;
if nextEntry = 1 then
errmsg("No BRANCH FOUND");
reenter COMPANY_NAME;
endif;
codesString(nextEntry) = "";
setvalueset(BRANCH_ID, codesString, labels);