ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
MaxSourceCardinality (Property)
In french: CardinalitéSourceMax
HFSQL ClassicHFSQL Client/ServerAvailable only with these kinds of connection
The MaxSourceCardinality property sets the characteristics of a link. You can:
  • Get the maximum cardinality of the source item in the link.
  • Change the maximum cardinality of the source item in the link.
Example
// Change the maximum cardinality
LinkClubPerson.MaxSourceCardinality = hInfiniteCardinality
Syntax

Getting the maximum cardinality of the source item Hide the details

<Cardinality> = <Link>.MaxSourceCardinality
<Cardinality>: Integer
Maximum cardinality of the source item for the link. The hInfiniteCardinality constant identifies the "n" cardinality.
<Link>: Character string
Name of the link defined in the data model editor or via the Link Description type.

Changing the maximum cardinality of the source item Hide the details

<Link>.MaxSourceCardinality = <New cardinality>
<Link>: Character string
Name of the link defined in the data model editor or via the Link Description type.
<New cardinality>: Integer
New maximum cardinality for the source item of the link. The hInfiniteCardinality constant defines the "n" cardinality. By default, when a link is defined programmatically, the maximum cardinality of the source item is 1.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2024

Send a report | Local help