learn_ln6
15th December 2006, 17:21
Hi all

I have create one Maintain Session.
i want performe some validation before save default button..

how can i Perform some validation before save..


please help

thanksa
learn_ln6

NPRao
15th December 2006, 20:25
Since you are on LN, you have to code various checks in DAL-

Refer to - before.save.object() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_before_save_object)

fieldname.check() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_fieldname_check)

The programmer's manual is not upto date on this site, check on your local client version which is installed with the DFE.
SSA ERP LN 6.1 Programmers Guide

dal.check.field()
--------------------------------------------------------------------------------
Syntax
long dal.check.field( string fld.name, [ long element, long mode ] )
Description
Checks whether the given field has a valid value. This performs the DAL check hooks in the given mode (default is DAL_UPDATE).

Arguments fld.name the name of the field

element optional element of the field in case of array fields (default is 1)

mode mode for the check (default is DAL_UPDATE)


Return values 0 Field is valid

DALHOOKERROR Field is invalid

Context DAL function.

aliknl64
6th February 2012, 10:13
Hi Rao,

Do you have an example of it?

Since you are on LN, you have to code various checks in DAL-

Refer to - before.save.object() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_before_save_object)

fieldname.check() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_fieldname_check)

The programmer's manual is not upto date on this site, check on your local client version which is installed with the DFE.

aliknl64
6th February 2012, 10:13
Hi Roa,

If you have an example of it, can you please forward it over here?

Thanks,

ALi