This topic is locked

Dashboard search

4/8/2017 4:44:00 PM
PHPRunner General questions
W
WilliamB authorDevClub member

I have a link that opens a dashboard with 3 objects.

  1. Client view
  2. Client detail view page
  3. Client detail add page
    On the 2nd object I am trying to show the client detail view with the latest session.
    On the Dashboard Before Process I have:

$record = $pageObject->getCurrentRecord();
$max = DBLookup("select max(SessionNumber), ClientID, EMPID from tCaseNote where ClientID='".$record["ClientID"]."' and EMPID='".$record["EMPID"]."'");
$srchObj = SearchClause::getSearchObject("tCaseNote");

$srchObj->setSearchOption("SessionNumber", EQUALS);

$srchObj->setFieldValue("SessionNumber", $max );


I do note that in the documentation on the search API that it only states use on list page.
Has anyone done this?