RekhaJ
25th February 2004, 11:13
When device selected for any report is ASCIF is there any way to automatically change the device path i.e spool fileout depending on the company for which the session is being run without touching the program script

LittleJohn
25th February 2004, 18:15
You could probably write a 3GL program and activate that object in the "after.field" or "after.input" of the Device selection.
Once you know which company you are in, you can change that path accordingly in the ttaad300 table (presuming you are on BaanIV & "tt" tables have not changed in BaanV).
Once the printing is done, you can change it back.

Hope this helps

Regards
Minhaaj

LittleJohn
25th February 2004, 18:18
Correction... You could activate the 3GL in the form (field) of that device selection as automatic zoom.
If not that device name field, you can call it in the Device path field itself.

Cheers
Minhaaj

RekhaJ
26th February 2004, 06:27
Thanks Minhaaj
Actually I didnt get the part where u mentioned that it is possible to make changes at form level of the device selection.

As of now I have found a solution wherein I have written a 3GL program and called it in place of ttstpconv..At the end of the 3 GL program I have written a shell which calls the object of ttstpconv which takes in parameters as the input file (which is the tmp file generated ) and the output file(which is the filename where the company parameter can be included)

If the solution u have given is simpler than this do let me know


Regards
Rekha