Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
8%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 77

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 4th November 2019, 12:27
RavCOder's Avatar
RavCOder RavCOder is offline
Senior Member
 
Join Date: Jul 2019
Posts: 106
RavCOder is on a distinguished road
Baan: 10.3 - DB: SQL Server - OS: Windows
Error in my DAL
Baan: Other/Unknown
C/S: None/Unknown

Hi,
I'm on debug mode in a DAL that I wrote. But I see that it say that I have a warning and it say "Source file ptdsls900 more recent than object file" and I don't know exactly what it means.

My purpose was to see if deleting values ​​from the table, reusing the DAL inserted me again the values ​​I had deleted.

This is my DAL :
Code:
#include <bic_dal>
#include <bic_dam>


table ttdsls900  
table ttdsls400  
table ttdsls401 
table ttccom100 

extern domain  tcdate   data.start  
extern domain  tcdate   data.end  
||extern domain  tdsmo   sum
||extern  domain  tcyesno  txta.txt
||extern  domain  tcyesno  txtb.txt






function extern long dal.get.object()
{	
long res

dal.set.message(MSG.ERROR, "@Test")
show.dal.messages()


 select tccom100.nama
 from tccom100
 where tccom100.bpid = :tdsls401.ofbp
 	selectdo
 endselect
      db.retry.point()
	select tdsls900.*
	from tdsls900 for update 
	where tdsls900._index1 = {  :tdsls401.ofbp , :tdsls401.item}
 selectdo 
	dal.change.object("tdsls900")
	dal.set.field("tdsls900.dates",data.start)
	dal.set.field("tdsls900.datef", data.end)
	dal.set.field("tdsls900.bpid" , tdsls400.ofbp)
	dal.set.field("tdsls900.nama" , tccom100.nama)
	dal.set.field("tdsls900.item" , tdsls401.item)
	dal.set.field("tdsls900.cuni", tdsls401.cups)
	dal.set.field("tdsls900.qoor", tdsls401.qoor)
	res = dal.save.object("tdsls900",db.retry)
	res = commit.transaction()

 selectempty 

 	
 	dal.set.field("tdsls900.dates",data.start)
	dal.set.field("tdsls900.datef", data.end)
 	dal.set.field("tdsls900.bpid",tdsls400.ofbp)
 	dal.set.field("tdsls900.nama", tccom100.nama)
 	dal.set.field("tdsls900.item", tdsls401.item)
 	dal.set.field("tdsls900.cuni",tdsls401.cups)
 	dal.set.field("tdsls900.qoor",tdsls401.qoor)
 	res = dal.new.object("tdsls900") 
 	res = commit.transaction()
endselect
	return (0)
}

function extern long before.open.object.set()
{

	return(0)
}

function extern long before.save.object(long type)
{
	return(0)
}
When I compiled i have this warnings:

ptdsls9000( 48): Warning: Return value of function 'dal.change.object' ignored.
ptdsls9000( 85): Warning: Function 'dal.get.object' in DLL 'ottstpamdll' ignored. Taken from ptdsls9000(30)
Maybe it has something to do with the fact that it doesn't recharge my data again?

Regards,
RavCoder
Reply With Quote
  #2  
Old 5th November 2019, 08:58
andreas.toepper andreas.toepper is offline
Senior Member
 
Join Date: Jun 2004
Posts: 180
andreas.toepper is on a distinguished road
Baan: Baan4, LN6.1 - DB: MSSQL - OS: Linux&Windows
Quote:
Originally Posted by RavCOder View Post
I have a warning and it say "Source file ptdsls900 more recent than object file" and I don't know exactly what it means.
It meens you saved your source but did not compile it. Now the compiled object is older than the saved source.

Quote:
Originally Posted by RavCOder View Post
Warning: Return value of function 'dal.change.object' ignored
This means you are not using the return-value of function dal.change.object(..)

Quote:
Originally Posted by RavCOder View Post
Warning: Function 'dal.get.object' in DLL 'ottstpamdll' ignored. Taken from ptdsls9000(30)
This means your function dal.get.object() is ignored and never executed. If you want to execute Code automatically, you'll need to use given object hooks (function names defined by Infor; please check the developer guide, "Data Access Layer/Object Hooks").
Reply With Quote
Sponsored Links
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
Insert fields DAL RavCOder Tools Development 0 25th October 2019 13:49
ue.before.after.destroy.object pralash Tools Development 8 6th August 2018 14:37
bpmdm001 DAL Sandy Blondino Tools Development 4 6th November 2014 16:12
DAL will be permanently Active Mode on ttaad4100 sujeetkumar Tools Administration & Installation 4 7th October 2014 21:14
When DAL 1 or DAL 2 in Infor LN 6.1 gget79 Tools Development 5 27th May 2009 11:23


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


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