Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 25th May 2005, 16:24
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Excute a form command of AFS session

When hitting a button in session A, AFS is activated on session B. What I need is that session B will be started in API mode, and will activate its form command of type session - let's call it session C - while session C should be started in user interface mode. I.e. user should not go through session B, but should get session C with its forms etc, so that the user can select a record from session C, and this will be returned again through the AFS via session B to session A.

Can anyone help me out here please? I am new to AFS
Reply With Quote
Sponsored Links
  #2  
Old 25th May 2005, 17:32
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,906
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
I do not think this can be done. I know of no method that would allow you to start session A & B thru AFS, then bring up session C for user interaction. Typically what I do is I give the user what fields they would need on my AFS session and I run sessions A,B, C in the background using AFS code. Maybe if you mentioned what sessions you are talking about using this with others can make recommendations or relate how they handled what you are talking about.
__________________
Mark

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
  #3  
Old 25th May 2005, 23:05
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,906
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Okay - trying to fix a problem with all the wms crap that baan added into receiving I found that if you set api.mode=true, then the next session called will come up interactively. It was not pretty in my case. I was testing maintain approvals and it brought up the tdilc4123s000 session. I could enter information and save, but I could not close it. I did not play with this more so I do not know if it would really work - plus you probably need the code to the session.
__________________
Mark

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
  #4  
Old 30th May 2005, 13:19
en@frrom en@frrom is offline
Guru
 
Join Date: Aug 2003
Location: Belgium
Posts: 1,219
en@frrom will become famous soon enough
Baan: B50B - DB: Oracle 8.0 - OS: Win2k AS
Mark, first of all thanks for the responses, and second: my apologies for the late reply. What do you mean with your second post? DOn't get it? You mean I should set api.mode = true/false? In which session (A,B,C)? How/why would that work? Please explain in detail; I'm completely new to AFS.

Regarding the sessions in question: all three sessions are fully customized sessions.

Thanks,

En
Reply With Quote
  #5  
Old 30th May 2005, 14:54
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,906
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
What I have is the maintain approvals session - when you click in the quap field it should launch tdilc4123s000 on our system. Using the API commands would not work. I looked and the source code and in the before input Baan had put code that was something like this:
Code:
field.tdpur045.quap:
before.input:
if somecheck and somecheck and NOT API.mode then
  zoom.to.ilc()
endif

So what I played with(using qkey) was doing something like this:
Code:
field.tdpur045.quap:
before.input:
if var = "MARKAPI" then
   api.mode = false
endif
if somecheck and somecheck and NOT API.mode then
  zoom.to.ilc()
endif

Not the exact code but something in this format. Anyway, when my program did an stpapi.update on tdpur4121m000, it launched the tdilc4123s000 session and brought it to the foreground. The program was no longer in api.mode, I entered my fields and clicked continue. The receipt finished okay, but I then could not close tdilc4123s000. So in your case in session C in the before.program you could always set api.mode = false. This would cause session C to come to the foreground and the user could enter data. The only problem is closing and going back into api.mode for sessions a and b. I am not sure what all would happen since I stumbled upon this - I thought api.mode was a read only variable.
__________________
Mark

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
Reply


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
Call a customized session form Standard Session das_k_tushar Tools Development 20 2nd September 2004 16:11
AFS - problem running session in a job aobrien AFS/DDC/OLE: Function servers 15 2nd April 2004 14:51
Form in session tdpur0510s000 flashes klixy23 Tools Development 6 29th May 2002 10:17
tfacp9450m000 FIBU Brush Up Kai's Forum Users Deutsches Forum 1 16th November 1999 00:00
Herstellkostenberechnung in BaaN 4c Kai's Forum Users Deutsches Forum 4 5th July 1999 00:00


All times are GMT +2. The time now is 11:13.


©2001-2017 - Baanboard.com - Baanforums.com