PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Special cases
  • Required application feature
  • Application in the background: Specific case from Android 10
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens the form of a contact in the native application for contact management of the device (Android, iPhone or iPad, Universal Windows).
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Syntaxe conservée par compatibilité
// Ouvre la fiche du premier contact présent sur le téléphone
IF ContactFirst(contactPhone) = True THEN
ContactDisplay()
END
// Procédure permettant d'afficher le contact sélectionné dans un champ Zone répétée
PROCÉDURE AfficheContact(nNumContact is int)
 
tContact is Contact
 
IF nNumContact <= gtabContacts..Count THEN
tContact = gtabContacts[nNumContact]
 
// Initialise le contact
VariableReset(gContactEnCours)
gContactEnCours = tContact
ContactDisplay(gContactEnCours)
END
Syntax
Versions 17 and later

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
New in version 17

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.

Displaying a contact from a Contact variable (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Displaying a contact from a Contact variable (before Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactDisplay([<Contact identifier>])
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Contact identifier>: Optional character string
Identifier of contact to display. This identifier is found in the mContact.ID variable of the Contact structure.
If this parameter is not specified or is an empty string (""), the current Contact record will be displayed.
Reminder: To browse the contacts found on the device, use the following functions: ContactFirst, ContactNext, ContactPrevious and ContactLast.
Remarks

Special cases

  • ContactDisplay gives control back to the application as soon as the form of the contact is displayed.
  • ContactDisplay can be used in the emulator. It cannot be used in the simulator.
Versions 22 and later
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
Versions 25 and later
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactDisplay can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
New in version 25
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactDisplay can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
ContactDisplay can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Component: wdandroid.jar
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment