Go Back > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor


Google search

For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
Installation Wizard into new VRC
Manual into existing VRC
Manual into new VRC
Total votes: 45

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 6th November 2008, 10:09
indian_sumesh's Avatar
indian_sumesh indian_sumesh is offline
Join Date: Dec 2004
Location: Pune
Posts: 93
indian_sumesh is an unknown quantity at this point
Baan: B40c4in5 - DB: Oracle10g - OS: Sun Solaris
Question Steps to create AFS

Dear Baan Friends,

I wants to learn AFS, so Please explain me the steps to be taken to develop a AFS for any standard session. Also Please clear my doubts as

1)Some sessions are not AFS friendly - what it means?
2)Is BOI is different than create a AFS -DLL ?
3) If BOI is different then How to create it for a session and how to use it?
4) Is it ncessary to create AFS DLL for every session which we want to use in AFS? or only the standard stpapihand - DLL is sufficeint?

In short Please give me the steps to create a AFS for Standard session with one example.

Thanks & Regards
Reply With Quote
Sponsored Links
Old 6th November 2008, 17:32
mark_h's Avatar
mark_h mark_h is offline
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,070
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Not familiar with BOI's, but to create a AFS using the stpapi commands I do a couple of things before writing the code.
(1) Practise using the session. Document what happens when - keep track of questions, error messages, etc.
(2) If necessary check for other sessions which might provide the same functionality.
(3) Run ttstpcreatdll to just see the command that baan thinks are available. This is not always correct for all sessions. I do not do this anymore.
So for example the user might always zoom to a subsession to change production planning - you can do this but sometimes it is easier to use main sessions versus zoomed to subsessions.

Basically from the documentation from step (1) you can write the code. So example if you wanted to insert an item you would know from step (1) above the fields you had to enter, so the first thing you do is stpapi.put.field, then the second thing was hit save button - so you do a stpapi.insert. Read the documentation in the sticky thread in this forum for a list of commands. You can always search this forum for examples and maybe even find working code for your session. ALWAYS keep in mind what works on one system may not work on yours. Also read my mantra.

Note using the api commands you typically just put fields first and then an action. So put fields, find record, change record, perform update.
Here is a quick simple sample from one of my API libraries for print goods received notes.
function extern print_goods_received(domain  tcorno	print.order,
				domain	tdpur.kofl	print.line.type,
				ref     string          msg())
	msg = ""

|012304 - over write and user defaults for all fields.  Found some users
|saved defaults for this session - need to override all fields.
	if isspace(msg) then

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use AFS to create a patch file. Ruskin AFS/DDC/OLE: Function servers 4 24th December 2013 11:22
Question about AFS in tdsls4101m000 baanfans AFS/DDC/OLE: Function servers 4 31st July 2006 07:47
AFS : Create a sales Order Line for a Generic Item van_math AFS/DDC/OLE: Function servers 2 1st June 2004 14:32
AFS (tfgld1101m000) don´t run fine since a user with a Dynamic menu (DEM) garias AFS/DDC/OLE: Function servers 4 20th January 2004 14:24
Try to create AFS for session ttadv6420m000 gous99 AFS/DDC/OLE: Function servers 6 9th January 2003 18:27

All times are GMT +2. The time now is 23:35.

©2001-2017 - -