gous99
27th October 2004, 17:59
Hi all,

Using Baan5c, I'm trying to create a function server program to create financial transactions. The starting point is session tfgld1101m000, for this session I have no problem. When I mark my record and execute the exec.cont.process, it opens session tfgld1103s000, this session is really weird, even manually. I can not seem to be able to make this session work with function server.

Is there anybody here that was able to make this work? If yes, can you share your code with me (us)? Thanks in advance.

rvaalst
31st May 2005, 14:52
Hi,

I'm also struggling to get this session 'tfgld1103s000' to work with AFS.
But everytime I want to insert and save the record I got the message 'Adding on this display field not allowed' (translation from Dutch).
Tried to api.update instead of api.insert -> dit not work

Baanversion: 4c4 Service Pack 6

I was hoping you've got this session to work yet?
Or has anyone else got this session working?

With kind regards,
Ronald van Aalst

RaymondH
31st May 2005, 15:45
I had the same problem with the session tfgld1114s000.

With the following lines you can fill the top section of the form.

stpapi.put.field("tfgld1114s000", "tfgld102.ttyp", "IDU")
ret = stpapi.change.view("tfgld1114s000", error.msg)

This will fill the top section fields with the default value.

This has to be done once. After this you can insert the remaining fields using stpapi.put.field and stpapi.insert.

Hopefully this will help you.

rvaalst
31st May 2005, 16:17
Many thanks, it works

With kind regards,
Ronald van Aalst