PA_RelateMany

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_RelateMany (tableNum)

ParameterTypeDescription
tableNumshortTable number

Description

The routine PA_RelateMany establishes all One-to-Many relations for the table tableNum.

It changes the current selection for each table that has a One-to-Many relation to the table tableNum.

Example

Activate all relations after using PA_GotoRecord.

   void GotoRecordAndRelations(short tableNum, long recordNum)
   {
      PA_GotoRecord(tableNum, recordNum)
      if(PA_GetLastError() == eER_NoErr)
      {
         PA_RelateOne(tableNum);
         PA_RelateMany(tableNum);
      }
   }

See Also

PA_RelateOne, PA_UseAutomaticRelations, RELATE MANY.

Error Handling

Use PA_GetLastError to see if an error occurred (bad table number)


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next