spartacus
15th February 2007, 14:07
I tried to zoom (from a formfield) to ttadv2500m000, in order to select a session. But in ttadv200, there is no field, with the complete session code, which I can return. So in the best case I get e.g. "4100m000" without package and module.
Does anybody know a way, to select a complete session code, out of a list of all sessions?
_Ralph_
15th February 2007, 15:45
Here is a code of something like what u want to do.
In this case the session zoom to the "Program Scripts/Libraries" session
and unify the Package, Module and the Script Name. And return the value to the field eucom102.libr.o
#define TR(x) strip$(shiftl$(x))
field.eucom102.libr.o
after.zoom:
library.name = TR(ttadv230.cpac&ttadv230.cmod&ttadv230.cprs)
eucom102.libr.o = TR(library.name)
display(eucom102.libr.o)
disable.fields(eucom102.libr.o)
hope it helps! :rolleyes:
NPRao
16th February 2007, 03:19
Ralph,
#define TR(x) strip$(shiftl$(x))
Since you are on LN, you can use the trim$() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_trim) function.
spartacus
16th February 2007, 09:30
Hi,
thank you for your support.
In principel you answered my question twice:
1. It is not possible the get a complete sessionname only with an entry in the formeditor ttadv3500m000.
2. The modification in program-script is not that huge. Think I will realize it (thanks Ralph), even though the user told me he wouldn't need it ;-)
cu
_Ralph_
16th February 2007, 12:46
Ralph,
Since you are on LN, you can use the trim$() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_trim) function.
NPRao thanks man. Didn't know about the trim$() that very usefull =)