Description
This formula is used in combination with the SDZeCOM Rules+ 'Write back result' functionality to set a default value for references based on another object.
Formula(s)
PHP
{=DEFAULTREF("Local target attribute";Target object ID;"Target attribute ID";Allow inheritance;"Record class")}
Result
-
String
Parameters
Parameter
|
Contents
|
Format
|
Default value
|
Explanation
|
|---|---|---|---|---|
|
Local target attribute |
Name or ID of the local reference attribute for which the vale is intended |
Attribute name: String Attribute ID: Integer |
|
|
|
Target object ID |
ID of the target item from which the value is to be taken |
Integer |
|
|
|
Target attribute ID |
ID of the target reference attribute containing the reference |
Integer |
|
|
|
Allow inheritance |
TRUE or FALSE |
Boolean |
TRUE |
TRUE: Also allow inherited references |
|
Record class |
Record class of the target object |
String |
"Pdmarticle" |
e.g. Pdmarticle, Mamfile or Pdamrticlestructure |