Translate

Friday, 8 February 2013

Difference between setsearchdefault and setsearchdilogbehavior

SetSearchDefault
Syntax:

SetSearchDefault([recordname.]fieldname)
Description
Use the SetSearchDefault function to set system defaults (default values set in record field definitions) for the
specified field on search dialog boxes. It does not cause the FieldDefault event to fire.

EMP1.DEPTNO.Value = "20";
EMP1.EMPID.Value = "000000000003443";
SetSearchDefault(EMP1.DEPTNO);

output is :
 

 SetSearchDialogBehavior

Syntax
SetSearchDialogBehavior(force_or_skip)

Description
Use the SetSearchDialogBehavior function in SearchInit PeopleCode to set the behavior of search and add
dialog boxes before a page is displayed, overriding the default behavior. There are two dialog behavior
settings: skip if possible (0) and force display (1).

0: sets the dialog behavior to skip if possible.
1: sets the dialog behavior to force display.




Note: using this function search page is skiped but you should be carefull that all  search keys should be initallized to a value.if u not initialize one key (in above ex:empid then we can't skip page and it acts like
SetSearchDefault function .
 like this 



No comments:

Post a Comment