Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
What version of Baan have you installed
Baan IV
35%
FP3
4%
FP4
0%
FP5
0%
FP6
0%
FP7
4%
10.2 (incl. 10.2.1)
0%
10.3
9%
10.4
17%
10.5
26%
Other
4%
Total votes: 23

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2006, 09:00
Bruce21's Avatar
Bruce21 Bruce21 is offline
Member
 
Join Date: Jan 2004
Location: Austria
Posts: 46
Bruce21 is on a distinguished road
Baan: 4, ERPLN - DB: Oracle - OS: Win2000, Win2003
Problem with DAL messages and UI-Program Script

Hello,
i created a table with a DAL2-script. (SSA ERP LN SP1).
If i call dal.set.error.message("xxx") in the field hook tablename.fieldnamename.is.valid the message appears automatically in the form.
But if i use dal.set.warning.message or dal.set.info.message nothing happens.

How can i show the users the warnings/info-messages that comes from dal in my form?
Thanks for your help.

Regards Martin
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2006, 09:38
ARijke ARijke is offline
Guru
 
Join Date: Sep 2005
Posts: 461
ARijke is on a distinguished road
Baan: Baan IV upto LN - DB: -- - OS: --
Hi Martin,

You can use show.dal.messages() in your UI script.
from the prog manual:
Syntax
void show.dal.messages( [long i.type] )

Description
Displays messages that are currently on the DAL message stack. Depending on the specified message type, you can display error, warning or info messages, or all messages. If no message type is specified, only error messages will be displayed.

Preconditions
Parameter i.type should be one of the following values:
MSG.ALL, MSG.ERROR, MSG.WARNING, MSG.INFO.

Regards, Adriaan
Reply With Quote
  #3  
Old 31st March 2006, 09:47
Bruce21's Avatar
Bruce21 Bruce21 is offline
Member
 
Join Date: Jan 2004
Location: Austria
Posts: 46
Bruce21 is on a distinguished road
Baan: 4, ERPLN - DB: Oracle - OS: Win2000, Win2003
Got an unresolved reference.

Hello,
thanks for the quick reply.

if i add this to the program script i get the following error:

"Error: Unresolved reference to function 'show.dal.messages'."

and if i add
#include <bic_dal2>
the following appears if i compile the script:
ibicdal0( 38): Error: 'bic_dal' not expected.

Do i have to include another object?
Reply With Quote
  #4  
Old 31st March 2006, 13:46
ARijke ARijke is offline
Guru
 
Join Date: Sep 2005
Posts: 461
ARijke is on a distinguished road
Baan: Baan IV upto LN - DB: -- - OS: --
Maybe this helps:
#include <bic_dam>

It is not document like this. But you can try.
Reply With Quote
  #5  
Old 21st December 2017, 08:46
Rajeshwari_Aher Rajeshwari_Aher is offline
Newbie
 
Join Date: Oct 2017
Posts: 2
Rajeshwari_Aher is on a distinguished road
Baan: 10.4 - DB: sql - OS: windows
Hi,
After adding #include <bic_dam> still i m getting the below error.

Error: Unresolved reference to function 'dal.change.objet'.
Can u plz suggest smthng fof dis
Reply With Quote
  #6  
Old 22nd December 2017, 07:26
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 188
manish_patel is on a distinguished road
Baan: Baan IVc4, Baan 5.0 b - DB: Oracle 11g R2 - OS: HP-UX 11.31
What is the return value in field.is.valid() hook for warning/info condition? It should return(true)

FYI: You have to include bic_dal or bic_dal2 (incase of DAL2) in your DAL script and not in UI script.
__________________
Thanks & Regards,
Manish

Last edited by manish_patel : 22nd December 2017 at 07:35.
Reply With Quote
  #7  
Old 24th December 2017, 21:58
alex.rodionov's Avatar
alex.rodionov alex.rodionov is offline
Junior Member
 
Join Date: Dec 2011
Posts: 9
alex.rodionov is on a distinguished road
Baan: Baan 5.0c, Infor LN fp6,fp7,Infor10.2.0 - DB: MS SQL, Oracle - OS: Microsoft Windows
Hello,
I think that you should use dal.set.error.message() in your table dal script. Type of the message displayed to user is not determined by the function used to post this message but only by the message type you set during message creation.
4GL script will automatically display only messages posted calling dal.set.error.message() in your dal script. Other messages (posted by dal.set.warning.message() or dal.set.info.message()) can be displayed by teaking the message from the message queue dal.peek.error.message() function and displaying it by mess() function
Reply With Quote
  #8  
Old 25th December 2017, 10:41
Amit_Jain's Avatar
Amit_Jain Amit_Jain is offline
Member
 
Join Date: Apr 2006
Location: Hyderabad - India
Posts: 72
Amit_Jain is on a distinguished road
Baan: baan IV,V LN - DB: SQL,Oracle9i - OS: windows 2003 server
Check your spelling

The function should be 'dal.change.object' rather than 'dal.change.objet'

Please correct it and compile again.
__________________
_______________________
Amit
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


All times are GMT +2. The time now is 18:56.


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