goooch
6th August 2004, 07:07
Hi All!
Does anybody take AFS control on ttaad4100 session?
Thank's

mark_h
6th August 2004, 15:51
Not sure that would work. If I was going to work on a table I would just do it through a select with update. Maybe if you could explain what you are attempting someone else will have a better idea.

Mark

Hitesh Shah
6th August 2004, 17:06
Due to uncertain nature of fields and ASCII interface there is high probability that AFS will not work on ttaad4100 .

Probably dynamic query can server ur purpose.

Also u can try a ttaad4100 like session setting pre-defined variable main.table$ in before.program section of a program (don't change this through-out the program). Normal main table io will be taken care by standard program . For mass changes (like choice 4,5 , 6, ) in GTM , u need to write dynamic query .

NPRao
6th August 2004, 22:35
GTM is a 3-GL program and as far as I understand AFS can be used if only you have a 4-Gl Session Interface.

From the AFS guides -

AFS-DLL A Baan ERP DLL, which contains the calls to the API-handler for a specific
Baan 4GL application session
API Application Programming Interface
API-handlerThe program, which serves outside the application to call the functionality
of the Baan 4GL application sessions

Introduction
The preferred method of integration between Baan IV and Baan ERP
systems (Baan IVc, Baan ERP 5.x and Baan ERP 6.1) and third party
products is by means of Business Object Interfaces or BOIs. BOIs provide an
Application Programming Interface (API) for the Baan ERP business logic.
BOIs are executed in the context of BCBE, OpenWorld or OpenWorldX
Adapter.
The high level interfaces provided by the BOIs cannot be used directly
against the Baan ERP business logic due to the Baan ERP architecture. The
business logic is implemented by means of sessions, which are primarily user
interface based. Programmatic access to sessions is provided by means of a
low-level message protocol. This message protocol is encapsulated into a set
of function primitives called the Application Function Server (AFS); these
functions are located in the API-handler. The BOI code accesses the session
business logic by means of the AFS. The public, high-level interfaces
exposed by the BOIs are internally translated to the low level primitives
understood by the AFS, which then communicates with the session logic by
means of the message protocol.

The sessions started by the AFS must be 4GL sessions. 3GL sessions
(without a form and a script of type 3GL (Without Std.Prog)) cannot be
carried out with the AFS.

So my Q is - why do you want to take AFS control on ttaad4100 session?
You should explain your requirements clearly.

goooch
16th August 2004, 08:07
Thank you
I've just interested in did anybody an extraordinary thing or not :)
The idea was to have possibilities to automate ANY (not only 4gl but with tools sessions and other) manual operations and if it possible to use AFS for this purpose.
Unfortunately, it is not.

Hitesh Shah
16th August 2004, 08:34
Not sure what exactly u meant. AFS on 4GL session (including tools session) is possible. U can definitely automate manual tools session like print user history , print GTM log etc if that's frequent and u know the selection parameters in advance. So unique sessions like ttada4100 , ttstpqbf , ttstperrlog, tgbrg process editor , chart browsers etc may be out of the purview of AFS .

goooch
16th August 2004, 09:08
Hi Hitesh Shah!
No (any) limitation to use AFS with 4gl (ordinary) tools sessions?
Baan does not provide any (maybe license and so on) restriction, does it?

Hitesh Shah
16th August 2004, 09:19
All u have to have is Baan tools development license. U can check for AFS on tools (http://www.baanboard.com/baanboard/showthread.php?t=8338&highlight=AFS+tools)