mvanta
10th July 2019, 15:34
Hello all.
We try to create a script to limit the selection option of the user on a session.
we have a field that is zooming in tcemm170 and returns the company number. We want to give to the user the option to select either the logistic or the financial company.
we have the financial company from the code comp=get.compnr() and the logistic from the sql below,
extern domain tcncmp comp
select tfgld003.bcmp
from tfgld003
where tfgld003._compnr=:comp and tfgld003.indt=0
selectdo
endselect
But when trying to use query.extend.where.in.zoom we get no result and a lot of errors.
for example if we try this code,
query.extend.where.in.zoom( "tcemm170.comp= :comp" )
we get the error,
Process 431 - Error : SQLState HYL04: External variable 'comp' not found (301) (rcdset.onfinddata() in object ottstpstandard)
We are about to give up!
Please advice,
Maria
We try to create a script to limit the selection option of the user on a session.
we have a field that is zooming in tcemm170 and returns the company number. We want to give to the user the option to select either the logistic or the financial company.
we have the financial company from the code comp=get.compnr() and the logistic from the sql below,
extern domain tcncmp comp
select tfgld003.bcmp
from tfgld003
where tfgld003._compnr=:comp and tfgld003.indt=0
selectdo
endselect
But when trying to use query.extend.where.in.zoom we get no result and a lot of errors.
for example if we try this code,
query.extend.where.in.zoom( "tcemm170.comp= :comp" )
we get the error,
Process 431 - Error : SQLState HYL04: External variable 'comp' not found (301) (rcdset.onfinddata() in object ottstpstandard)
We are about to give up!
Please advice,
Maria