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
  • Application in the background: Specific case from Android 10
  • Required application feature
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
Opens the form of a current contact in edit mode in the native application for contact management found on the device (Android, iPhone, 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
// Ouvre en édition la fiche du contact en cours
// Variables globales
gContactEnCours is Contact
 
...
 
// - Clic sur BTN_Modifier
// Lance l'édition du contact
ContactEdit(gContactEnCours)
AndroidAndroid Widget iPhone/iPad
// Ouvre en édition la fiche du premier contact présent sur le téléphone
// Syntaxe conservée par compatibilité
IF ContactFirst(contactPhone) = True THEN
IF ContactEdit() = True THEN
// Si le contact a été modifié, met à jour la structure contact
// avec les nouvelles données du contact
ContactRead(contactPhone, mContact.ID)
END
END
Syntax
Versions 17 and later

Opening the form of a contact in edit mode (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactEdit(<Contact>)
<Result>: Boolean
  • True if the contact was modified,
  • False otherwise. In case of error, the Variable ErrorOccurred is to True. For more details on the error, use function ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Variable of type Contact corresponding to the Contact whose record is to be opened. This contact must exist in the database of contacts found on the device.
New in version 17

Opening the form of a contact in edit mode (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactEdit(<Contact>)
<Result>: Boolean
  • True if the contact was modified,
  • False otherwise. In case of error, the Variable ErrorOccurred is to True. For more details on the error, use function ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Variable of type Contact corresponding to the Contact whose record is to be opened. This contact must exist in the database of contacts found on the device.

Opening the form of a contact in edit mode (from Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactEdit(<Contact>)
<Result>: Boolean
  • True if the contact was modified,
  • False otherwise. In case of error, the Variable ErrorOccurred is to True. For more details on the error, use function ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact>: Contact variable
Name of the Variable of type Contact corresponding to the Contact whose record is to be opened. This contact must exist in the database of contacts found on the device.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Opening the form of a contact in edit mode (before Android 2.0, iPhone, iPad, Universal Windows) Hide the details

<Result> = ContactEdit([<Contact identifier>])
<Result>: Boolean
  • True if the contact was modified,
  • False otherwise. In case of error, the Variable ErrorOccurred is to True. For more details on the error, use function ErrorInfo.
Versions 22 and later
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<Contact identifier>: Optional character string
Identifier of contact to edit. This identifier is found in the mContact.ID variable of the Contact structure.
If this parameter is not specified or if it corresponds to an empty string (""), the form of the current contact is displayed.
Reminder: To browse the contacts found on the device, use the following functions: ContactFirst, ContactNext, ContactPrevious and ContactLast.
Remarks

Special cases

  • AndroidAndroid Widget iPhone/iPad The ContactEdit function is blocked until the Contact plug is closed by the user.
  • Universal Windows 10 App ContactEdit is a non-blocking function.
  • To update the Contact structure or the Contact variable with the information relative to the contact that was previously edited, use ContactRead.
  • The ContactEdit function can be used in the emulator. It cannot be used in the simulator.
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.
ContactEdit 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.
ContactEdit 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.
ContactEdit 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.
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.
Related Examples:
WM Managing Contacts Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS.
It is used o:
- list the contacts found on the phone
- call the contacts
- send SMSs to the contacts
- ...
Business / UI classification: Business Logic
Component: wd270android.aar
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment