IsFluidSearchStart function

Syntax

IsFluidSearchStart()

Description

Use the IsFluidSearchStart function to return a Boolean value indicating whether the user has already run a search on this component.

Important:

Use this function within fluid applications only.

Parameters

None.

Returns

A Boolean value.

Example

If (IsFluidSearchStart()) Then
   Local ApiObject &Portal = %Session.GetPortalRegistry();
   &Portal.Open(%Portal);
   Local string &sComponentUrl = GenerateComponentContentURL(%Portal, %Node, @("Menuname." | %Menu), %Market, @("Component." | %Component), "", "");
   Local ApiObject &thisCref = &Portal.FindCRefByURL(&sComponentUrl);
   If &thisCref <> Null And
         All(&thisCref.Label) Then
      PTLAYOUT.PAGETITLE_GROUPBOX.Label = &thisCref.Label;
   Else
      PTLAYOUT.PAGETITLE_GROUPBOX.Label = MsgGetText(124, 522, "Message Not Found: Search"); /* TBD - need message set for label */
   End-If;
Else
   PTLAYOUT.PAGETITLE_GROUPBOX.Label = GetPageTitle();
   AddOnLoadScript("SearchPageClose();");
End-If;