PA_RelateOne

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

version 2003


PA_RelateOne (tableNum)

ParameterTypeDescription
tableNumshortTable number

Description

The routine PA_RelateOne activates the many-to-one relation(s) for the current record of the table tableNum.

This works like the 4th Dimension command RELATE ONE, when using the syntax RELATE ONE([aTable]).

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_RelateMany, PA_UseAutomaticRelations, RELATE ONE.

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