Bruce21
31st March 2006, 09:00
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

ARijke
31st March 2006, 09:38
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

Bruce21
31st March 2006, 09:47
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?

ARijke
31st March 2006, 13:46
Maybe this helps:
#include <bic_dam>

It is not document like this. But you can try.

Rajeshwari_Aher
21st December 2017, 08:46
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

manish_patel
22nd December 2017, 07:26
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.

alex.rodionov
24th December 2017, 21:58
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

Amit_Jain
25th December 2017, 10:41
The function should be 'dal.change.object' rather than 'dal.change.objet'

Please correct it and compile again.