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 13th December 2006, 20:28
Cancoon2000 Cancoon2000 is offline
Member
 
Join Date: Feb 2004
Posts: 41
Cancoon2000 is on a distinguished road
Baan: BaaN IVc3 - DB: Oracle 7.3.4 - OS: Win Nt
Updating specific records in a Multi-Occ Form
Baan: Baan IVc3
C/S: Client

Hello All,
As per screen shot and code attached, I am expecting that while counter x is incrementing this means that I am checking the table field ticst002.qcrs of the corresponding occurrence number (record pointer is also incrementing). If my assumption is right than I have an issue as always the condition is not fulfilled (I think the record pointer is not moving, it is stuck at a single record most probably on the first marked record).

If my coding has something wrong can you enlighten me?


Thank you for your feedbacks
Attached Files
File Type: doc Multi-occ-Code.doc (49.0 KB, 45 views)
Reply With Quote
Sponsored Links
  #2  
Old 13th December 2006, 23:23
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,074
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Here is what I did:
Code:
choice.user.2:		|Pressing on button Update - OPEN
on.choice:
.other code here

long x
for x = 1 to filled.occ
	if(mark.table(x) = 1) then
                          | For each marked record call update.rec
		do.occ(x,update.rec)
	endif
endfor

function void update.rec()
{
| Check ticst002.qcrs for each record and modify accordingly.
	If ticst002.qcrs <> ltoe(1) then
		on case par.qcr.status
		case 1:
			ticst002.qcrs = ltoe(1)
			break
		case 2:
			ticst002.qcrs = ltoe(2)
			break
		endcase
 	             ...set other table fields
		update.occ()
		execute(update.db)
             endif
}
__________________
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 15th December 2006, 04:53
Cancoon2000 Cancoon2000 is offline
Member
 
Join Date: Feb 2004
Posts: 41
Cancoon2000 is on a distinguished road
Baan: BaaN IVc3 - DB: Oracle 7.3.4 - OS: Win Nt
You Rock

Thank you very much Mark, it works great.
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
Multi-Occ Form read specific records Cancoon2000 Tools Development 2 29th November 2006 19:40
Creating Multi Occ Display Form ahulikavi Tools Development 20 7th October 2004 14:58
deleting multi records via form Caner.B Tools Development 3 3rd June 2002 18:40


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


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