Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
Would you like to see a separate forum on Baanboard for the ION product?
No
14%
Yes
86%
Total votes: 80

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 19th December 2002, 13:02
Warans Warans is offline
Member
 
Join Date: Dec 2001
Location: Bangalore, India
Posts: 52
Warans is on a distinguished road
Baan: Baan IV c4 - DB: Informix - OS: Unix / Win 2000
Serial Number generation in multi-occ forms

Hi,

I have three forms (form type 3) multi-occ with view fields, I want to generate serial number for records...based on step_no value.
step_no is a variable having step number from a table.

how to do validations on multi-occ forms...

i.e, whenever user goes to serial number field, first time it will be from table value...say 1,
he goes to next record, it will become 1+step_no = 2 like that..

but when user presses shift+tab key to go back from next field to serial number field, it should not increment...

all i want is : proper validations on generated serial numbers in multi-occ form...

can anyone help ?!
Reply With Quote
  #2  
Old 19th December 2002, 19:37
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 2,890
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger), SSA-ERP-LN-6.1(Gemini) - DB: Oracle -10g-R1 - OS: HP-UX-11.11, 11.23 (Itanium, RISC)
I think this is very famous issue everyone faces in BaaN.

Here's a sample code -

Code:
field.zmmig101.seqno:
before.input:
	attr.input = false
|* If you dont like the user to change the sequence number, 
|* you can make it a display field.
	if zmmig101.seqno = 0 then 
		do.all.occ(get.seqno)
		zmmig101.seqno = max.seqno + 1
	endif
....
function	get.seqno()
{
	if max.seqno < zmmig101.seqno then
		max.seqno = zmmig101.seqno
	endif
}
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,http://Welcome.to/NPRao
Reply With Quote
Sponsored Links
  #3  
Old 23rd December 2002, 07:36
Warans Warans is offline
Member
 
Join Date: Dec 2001
Location: Bangalore, India
Posts: 52
Warans is on a distinguished road
Baan: Baan IV c4 - DB: Informix - OS: Unix / Win 2000
Thanks NPRao for your reply!!!
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
Creating Multi Occ Display Form ahulikavi Tools Development 20 7th October 2004 14:58
Serial number Veronica Project & Services 1 3rd September 2003 18:05


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


©2001-2013 - Baanboard.com - Baanforums.com