Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Users will be limited to the white-listed functions for PHP in PCR-360. A list of the functions can be seen in PCR-360 by clicking on the Help button.

Debug tab

Debug Tab Example

The Debug tab is where any shows the results of the debug function are displayedcalls. This debug information is only available for 24 hours before it is deleted, as the only purpose is it for testing any new Custom Logic your Organization is trying to addcleared after 24 hours.

Prerequisites

This feature is intended for Administrators and an understanding of PHP language and syntax is Required. You must also be aware of language compatibility for the version of PHP installed on the webserver. For validation that requires querying other data, an understanding of SQL is necessary, particularly variants specific to your database platform.

...

These two functions setError() and setWarning() can have a number of different returns. In addition to the type of message set, the return will also determine behavior. The following table explains the expected results of using either function and the return values. In the table, "not-false" means any return that is not Boolean false. False-ish values (0, empty string, etc.) do not count.

Function
Return
Result
setError()
false

Error is issued, Save or Delete fails

setError()
not-false

Warning issued, save or delete passes

setWarning()
false

Error is issued, save or deletefails

Note: An additional generic Error line will display because a false return implies an error message should have been set and was not.

  Generic Message text: "A Validation Error has occurred"

setWarning()
not-false

Warning issued, save or delete passes.

setError() + setWarning()
false

Error issued with both messages, save or delete fails.

setError() + setWarning()
not-false

Warning issued with both messages, save or delete passes.

What this means is that the return dictates whether the action passes (false: no, not-false: yes)and what dialog type Users get (false: error, not-false: warning). Messages just correspond to the type of return sent.

...