IsSearchEnabled function
Syntax
IsSearchEnabled()
Description
Important:
In PeopleTools 8.55 or later, use either the IsMDSearchEnabled function or the IsStandardSearchEnabled function instead to determine which type of search is enabled.
Use the IsSearchEnabled function to return a Boolean value indicating whether search is enabled on the component.
Important:
Use this function within fluid applications only.
Parameters
None.
Returns
A Boolean value.
Example
If ( Not (IsSearchEnabled())) Then
PT_WORK.PT_BUTTON_NEXTLST.Visible = False;
PT_WORK.PT_BUTTON_RETLST.Visible = False;
PT_WORK.PT_BUTTON_PREVLST.Visible = False;
Else
If (IsFluidSearchStart() Or
Not (IsNextInListEnabled())) Then
PT_WORK.PT_BUTTON_NEXTLST.Visible = False;
Else
PT_WORK.PT_BUTTON_NEXTLST.Visible = True;
End-If;
If (IsFluidSearchStart() Or
Not (IsPrevInListEnabled())) Then
PT_WORK.PT_BUTTON_PREVLST.Visible = False;
Else
PT_WORK.PT_BUTTON_PREVLST.Visible = True;
End-If;
If IsFluidSearchStart() Then
PT_WORK.PT_BUTTON_RETLST.Visible = False;
Else
PT_WORK.PT_BUTTON_RETLST.Visible = True;
End-If;
End-If;
Related Topics