Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #16  
Old 21st September 2018, 13:20
giggty's Avatar
giggty giggty is offline
Senior Member
 
Join Date: May 2017
Posts: 104
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Yes, seems we are getting close
Consider this:
Code:
|global declaration
boolean do.we.have.a.new.order
boolean are.we.done.with.it

function extern long after.save.object(long mode)
{
	on case mode
	case DAL_NEW:
		do.we.have.a.new.order = true
		break
	case DAL_UPDATE:
		if do.we.have.a.new.order then
			if not are.we.done.with.it then
				some.functions.to.run()
				are.we.done.with.it = true
			endif
			do.we.have.a.new.order = false
		endif
		break
	endcase
	return (0)
}
Reply With Quote
Sponsored Links
  #17  
Old 26th September 2018, 13:59
vahdani's Avatar
vahdani vahdani is offline
Guru
 
Join Date: Aug 2002
Location: Cologne, Germany
Posts: 438
vahdani is on a distinguished road
Baan: all - DB: all - OS: Unix / Win2K
The created production order must be released sometime!
Can you carry out your function at that time?

if yes then do something like this:
Code:
	domain	tcosta	old.osta

function extern long after.save.object(long mode)
{
	...
	on case mode
	case DAL_UPDATE:
		with.old.object.values.do(get.old.values)
	...
}

function extern long after.save.object(long mode)
{
	on case mode
		...
	case DAL_UPDATE:
		...
		if tisfc001.osta = tcosta.in.prod then
			if old.osta < tcosta.in.prod then
				|Production order has just been released!
				call.my.function()
			endif
		endif
	...
}

function get.old.values()
{	
	old.osta = tisfc001.osta
}
__________________
May the force be with you!
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
[Critical] Tape Backup problem. flysurfing Operating Systems & Databases 14 31st August 2007 07:38
Object Data Management, Currency Initialization and Office Integration? sosrowk Miscellaneous 4 15th October 2003 12:40
mapper extension object bemisgrm Open World, Portal & Decision Manager 0 12th August 2003 18:33
tfacp9450m000 FIBU Brush Up Kai's Forum Users Deutsches Forum 1 16th November 1999 00:00


All times are GMT +2. The time now is 01:16.


©2001-2018 - Baanboard.com - Baanforums.com