Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


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

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 15th December 2017, 18:47
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 348
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Looking for alternative coding ideas
Baan: Baan IVc4
C/S: Server

I have used the rushdll 'wrapper' program to create code so I can interact with the Copy Standard Project Structure to Project (tipcs2230m000) session. There are some additional fields on the item master that we need to bring over to the PCS side when an item is copied using the session. Attached is the raw code that the Wrapper program generated. Normally I would insert my code within the on.choice.cont.process() after the wrapper code calls the parent... but in my testing the parent never releases control back to the wrapper program... therefore my code never gets called.

There is no option to use after.choice.continue.process either as it is never called by the parent.

Anyone have a work around for this? I could create a trigger at the db level, but would really prefer not to do that.

Thank you in advance for any ideas!
Attached Files
File Type: txt tipcs2230w.txt (8.6 KB, 39 views)
Reply With Quote
  #2  
Old 15th December 2017, 19:21
vinceco252's Avatar
vinceco252 vinceco252 is offline
Guru
 
Join Date: Mar 2002
Location: Frederick, CO
Posts: 407
vinceco252 is on a distinguished road
Baan: Baan IVc3, IVc4, 5b, 5c, ERP LN 6.1, Infor ERP 10.x - DB: SQL Server, Oracle - OS: Windows, Linux, HPUX, AIX, (a little bit of) Solaris
Did you just try to add a that event to the script? I've been able to add field sections that aren't in the parent script...
__________________
Vincent Murphy
---------------
Senior ERP Consultant
OST
vmurphy@ostusa.com
Reply With Quote
  #3  
Old 15th December 2017, 20:11
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 348
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
after.choice.cont.process()

Yes,

I tried adding the after.choice.cont.process() event and the same thing (or rather nothing) happens. That event is never called.
Reply With Quote
  #4  
Old 17th December 2017, 01:34
mark_h's Avatar
mark_h mark_h is offline
Guru
 
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
When you say it never returns control to the wrapper program does that mean the wrapper has lost control? I mean if you put in debug mode and copy an item - it executes the choice.cont.process section , if after the copy you hit exist does it execute the choice.end.program in the wrapper?

Then again as I am looking at the code - Are you zooming into the session from another I am just wondering if it executes one of the after.zoom sections.
__________________
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
  #5  
Old 18th December 2017, 13:13
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 348
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Referencing the attachment, it executes lines 228 and 229, but then the session sits awaiting the next event. If I Cancel or Save/Exit I can re-enter the script, but not a the after.choice.
Attached Images
File Type: jpg Baanboard_Thread.JPG (115.0 KB, 12 views)
Reply With Quote
  #6  
Old 18th December 2017, 15:53
mark_h's Avatar
mark_h mark_h is offline
Guru
 
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
Well you can try adding some other sections to see if those get hit and you can do the update in there. Thinking like before.choice.update.db or after.choice.
__________________
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
  #7  
Old 19th December 2017, 09:12
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 190
manish_patel is on a distinguished road
Baan: Baan IVc4, Baan 5.0 b - DB: Oracle 11g R2 - OS: HP-UX 11.31
After executing copy statements, it executes choice.again, if it is not running as a background process or in AFS mode in on.choice.continue.

So I would call tipcs2230m000 session from 3GL code.
__________________
Thanks & Regards,
Manish
Reply With Quote
Sponsored Links
  #8  
Old 4th January 2018, 20:30
Eddie Monster's Avatar
Eddie Monster Eddie Monster is offline
Guru
 
Join Date: Nov 2001
Location: Pittsburgh, PA, USA
Posts: 348
Eddie Monster is on a distinguished road
Baan: Baan IVc4 - DB: MS SQL Server 2008 R2 - OS: MS Server 2008 R2
Expound

manish_patel - Can you please explain how I would do this via 3GL.

It has been some time since I've performed any Baan development and I am afraid, I do not follow how you intend to use the 3GL program...

Do you propose I create a new session, call tipcs2230m000 via AFS and then once the AFS session is closed out, write some insert statement based on the tipcs2230m000 selection criteria to update the record outside the normal processing of tipcs2230m000?
Reply With Quote
  #9  
Old 5th January 2018, 06:22
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 190
manish_patel is on a distinguished road
Baan: Baan IVc4, Baan 5.0 b - DB: Oracle 11g R2 - OS: HP-UX 11.31
Quote:
Originally Posted by Eddie Monster View Post
how I would do this via 3GL.
Just create the 3 GL script (lets say tipcs2230m3gl) as below
Code:
long ret

function main()
{
	ret = wait.and.activate("tipcs2230m000") 
}

And then run this 3GL object (otipcs2230m3gl) instead of running tipcs2230m000 directly.


Quote:
Originally Posted by Eddie Monster View Post
Do you propose I create a new session, call tipcs2230m000 via AFS and then once the AFS session is closed out, write some insert statement based on the tipcs2230m000 selection criteria to update the record outside the normal processing of tipcs2230m000?
Create a new session, call tipcs2230m000 via AFS. -- That's all, no further action is required.
__________________
Thanks & Regards,
Manish
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
How to write the coding for count page in the report script tracylee Blogs and Web links 2 25th June 2014 12:22
ideas for a poor man's Baan fax solution pjohns Tools Administration & Installation 10 23rd March 2011 12:05
Coding System Islam.Ismail Distribution, Transportation & Warehousing 1 20th November 2007 20:09
BAAN coding structure argyle Tools Development 2 17th May 2006 04:57
Looking for Leadtime Coding Ideas mark_h Tools Development 4 10th August 2002 04:38


All times are GMT +2. The time now is 08:28.


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