- Thu Feb 22, 2018 10:34 pm
#813348
Hello,
Greetings from the Philippines. I would like to automatically generate an Output Document via trigger then retrieve the File Path of the Trigger Generated Output Document. However, my code is not executed because of this error:
By the way, here's my trigger code:
Greetings from the Philippines. I would like to automatically generate an Output Document via trigger then retrieve the File Path of the Trigger Generated Output Document. However, my code is not executed because of this error:
Code: Select all
I was searching the Web and couldn't find an answer. I also tried disabling the error by the following code
Non-static method CSSBackgroundColor::default_value() should not be called statically, assuming $this from incompatible context (line 17):
Code: Select all
But still, my trigger is not executed.$mySetErrorCode = error_reporting();
error_reporting(0);
... my trigger Code
error_reporting($mySetErrorCode);
By the way, here's my trigger code:
Code: Select all
$outDocId = '844052989595b2ccdcdf0a2023840721'; // The UID of the Test Report Output Document
PMFGenerateOutputDocument($outDocId); //Generate the Test Report Output Document
//lookup newly generated document
$caseId = @@APPLICATION;
$sql = "SELECT MAX(APP_DOC_CREATE_DATE) AS CREATED, APP_DOC_UID, DOC_VERSION FROM APP_DOCUMENT WHERE APP_UID = '$caseId' AND DOC_UID='$outDocId' ";
$result = executeQuery($query);
if (is_array($result) and count($result) > 0) {
$fileId = $result[1]['APP_DOC_UID'];
$version = $result[1]['DOC_VERSION'];
$pathToFile = PATH_DOCUMENT . G::getPathFromUID($caseId) . PATH_SEP . 'outdocs'. PATH_SEP . $fileId . '_' . $version . '.pdf';
@@Test_Report_FilePath = $pathToFile;
}