BaanTech
14th August 2002, 20:10
I'm trying to create a session that will combine tt (session, company) authorizations with the DEM details to list what
sessions users can actually see via their desktops. Standard session tgbrg4450m000 does not provide the details I
need.
My problem is that there can be nested processes where in
the DEM menu the session is found only after opening up
several sub-menus (processes).
eg. Role: FGL102 (General Ledger II), Activity (Process): FGLB01 (Transaction Processing), Activity (Process): FGLB03 (Maintain), session tfgld1101m000.
General Ledger II -> Transaction Processing -> Maintain -> tfgld1101m000.
The error is 'Query should be in Exec Status or Eval Status'.
The same scenario is applicable to utilities, however I have
gotten around this through the use of arrays as there was no
standard index that met my needs.
I could get around this problem by creating new functions
(with unique names) to allow to go down multiple levels,
however I do not know the maximum depth at this point.
Is there any way to make a function name dynamic ?
Code is as follows:
function select.where.used.as.nested.business.process() |#XCH002v5
{
select tgbrg520.*
from tgbrg520
where tgbrg520._index2 = {:tgbrg520.proc}
order by tgbrg520._index2
selectdo
select.business.model.by.business.process()
select.where.used.as.nested.business.process()
selectempty
| break
endselect
}
Thanks.
BaanTech
sessions users can actually see via their desktops. Standard session tgbrg4450m000 does not provide the details I
need.
My problem is that there can be nested processes where in
the DEM menu the session is found only after opening up
several sub-menus (processes).
eg. Role: FGL102 (General Ledger II), Activity (Process): FGLB01 (Transaction Processing), Activity (Process): FGLB03 (Maintain), session tfgld1101m000.
General Ledger II -> Transaction Processing -> Maintain -> tfgld1101m000.
The error is 'Query should be in Exec Status or Eval Status'.
The same scenario is applicable to utilities, however I have
gotten around this through the use of arrays as there was no
standard index that met my needs.
I could get around this problem by creating new functions
(with unique names) to allow to go down multiple levels,
however I do not know the maximum depth at this point.
Is there any way to make a function name dynamic ?
Code is as follows:
function select.where.used.as.nested.business.process() |#XCH002v5
{
select tgbrg520.*
from tgbrg520
where tgbrg520._index2 = {:tgbrg520.proc}
order by tgbrg520._index2
selectdo
select.business.model.by.business.process()
select.where.used.as.nested.business.process()
selectempty
| break
endselect
}
Thanks.
BaanTech