Function “set_relation()”

Geschätzte Lektüre: 1 Minute
mixed set_relation(array $verkn);

Function to add or remove links (./limbas_src/gtab/gtab.lib).

Parameters:

$verkn

  • Array generated with the function init_relation(), contains information about the data records that should be linked or unlinked.

Return Value:

  • False: No data records could be linked or no links could be removed, e.g. due to an invalid input parameter
  • Number greater than 0: Number of data records examined, to check whether they can be linked or the link can be removed.
  • Null: No data records were specified in the input parameter.

Example

This example links the data record of the ID CONTACT_DAT_ID from the ‘Contacts’ table with the data record of ID CUST_DAT_ID of the ‘Customer’ table.

$relation = init_relation(CUST_TABID,CONTACT_FIELD_ID,CUST_DAT_ID,CONTACT_DAT_ID);
set_relation($relation);
Share this Doc

Function “set_relation()”

Or copy link

CONTENTS