Agus Mujtahid
26th October 2009, 12:27
Dear all,
We have problems when we develop session&program script.
We have form field (3 fields for input, is not table field) in session type 3 (multi occurence form with view). these field are "wh.to", "lokasi.to" and "verification". we wish, if we run this session, the cursor move to "wh.to" field and after we input for this field, we wish cursor move to "lokasi.to" field directly and after we input in this field ("wh.to"), we want cursor move to "verification" field. and the last after we input in "verification" field, we want run a function.
to move cursor directly, we made script with to.field() function and field event secsion.But, everytime we run this session, cursor didn't move to "wh.to" field, and after we input in this field, the cursor didn't move to "lokasi.to" field directly. and after we put value for "verification" field, the function was not run.for detail, see attachment.
Please help me to solve it, thanks
Mujtahid
mark_h
26th October 2009, 15:53
Post the relevant code. Did you set the form field order correctly? What mode does the session start with find,modify, etc? It should be possible, but everything needs to be in the correct sections. At least I assume 5 is the same as 4c4.
_Ralph_
26th October 2009, 19:00
Do you know the funtion to.field()?
Agus Mujtahid
27th October 2009, 03:04
Post the relevant code. Did you set the form field order correctly? What mode does the session start with find,modify, etc? It should be possible, but everything needs to be in the correct sections. At least I assume 5 is the same as 4c4.
Please see attachment. In our attachment you can see start command for this session, script and field order for this form.
Agus Mujtahid
27th October 2009, 03:08
Do you know the funtion to.field()?
we use this function to move cursor to destination field that we want, we can override field order in form editor with this function.
is it wrong?
mark_h
27th October 2009, 15:39
According to the help to.field can only be used in after.input, after.display, after.field. Maybe in the after.display for batch number. I do not really know baan 5, so I do not know what the default mode is - you made need to start it in a different mode(like modifiy).
Agus Mujtahid
28th October 2009, 02:54
Hi Guru,
In this case, we made script, after input data on "wh.to" field we use function it to move it directly to "lokasi.to" field. but it is not run for these 3 fields, "wh.to", "lokasi.to" and "verification.to".
rberti
28th October 2009, 13:08
Hi Mujtahid.
Does Baan 5 suport the Tools Interface Version (TIV) concept? In LN, sometimes, you have to change the tiv number of the script to a lower number to assure backwards compatibility. There is more information in help about supported tiv numbers, at least for LN...
Hope it helps!
Agus Mujtahid
29th October 2009, 03:06
Hi, we have not enough knowledge about it.
We ever open session ttaad0500m000,but we don't know about this session. please tell me, thanks.
rberti
29th October 2009, 13:13
I just saw that TIV concept is only avaliable on LN...
Take a look at the topic down:
SSA ERP LN 6.1 Programmers Guide
Tools Interface Version (TIV)
--------------------------------------------------------------------------------
The Tools Interface Version (TIV) is a concept supported by the SSA ERP LN Enterprise Server to guarantee backwards compatibility. By setting a TIV number to each object the behaviour can be different for incompatible features executed with different versions of the porting set or SSA Enterprise Engine. The TIV number is a property of the program and library scripts, and can be defined in session "Program Scripts / Libraries (ttadv2530m000)". The bshell also have its own TIV number.
Supported TIV numbers
The supported TIV numbers related to porting set versions are listed below.
TIV Description
0 - 999 Supported TIV levels for porting set 7.5a and 7.6a
1000 Initial TIV level for porting set 7.5a
1001 Ftp functions added for portingset 7.5x
1010 Initial TIV level for porting set 7.6a
1011 Ftp functions added for portingset 7.6x
1012 Functions for Outbound Publishing
1020 New functions in Bundle 2
I´ve had trouble once with some functions that didn't work within the tiv version I was, and there is also some posts about it in the forum.
http://www.baanboard.com/baanboard/showthread.php?t=27444&highlight=%22TIV%22
http://www.baanboard.com/baanboard/showthread.php?t=54072&highlight=%22TIV%22
http://www.baanboard.com/baanboard/showthread.php?t=53246&highlight=%22TIV%22
Sorry couldn't help more.
Regards,
Rafael