AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones de contacto (Lotus Notes o Android/iPhone/iPad)
  • Overview
  • Managing the contacts while using the Contact variables
  • Managing the contacts while using the Contact structure (kept for backward compatibility)
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
In your mobile applications, you can directly manage the contacts on your mobile device (Android, iPhone, iPad, etc.).
To do so, WLanguage provides you with:
  • the Contact functions.
  • advanced WLanguage variables: Contact, etc.
Note For compatibility, you can also use the mContact structure in WLanguage. This solution is not recommended and it should only be used for the applications that operate with a version earlier than Android 2.0.
Managing the contacts while using the Contact variables
To manage the contacts found on the mobile device:
  1. Declare a variable of type Contact. This type of variable is used to describe and find out all the characteristics of the contact found in the mobile device.
  2. Use the WLanguage functions according to the requested action:
    • To read and display in your application the contacts found in the mobile device, use ContactList. This function fills an array of Contact variables. This enables you to browse the array of variables in order to add the different contacts into a looper. For example:
      gCurrentContact is Contact
      garrContacts is array of Contact
      
      LooperDeleteAll(LOOP_CONTACTS)
      
      // List of contacts
      garrContacts = ContactList()
      
      IF garrContacts.Occurrence > 0 THEN
      	// Sort the contacts
      	ArraySort(garrContacts, asMember, "+Name")
      
      	// Add into the looper
      	FOR EACH tContact OF garrContacts
      		LooperAddLine(LOOP_CONTACTS, ...
      			tContact.Name, tContact.FirstName)
      	END
      	// Display the number of contacts
      	STC_NbContacts = StringBuild("%1 contacts", garrContacts.Occurrence)
      END
    • To directly handle the contacts with the native application of the phone, use the following functions:
      ContactCreateDisplays the contact creation window of the device's native contact management application (Android, iPhone or iPad).
      ContactDisplayOpens the form of a contact in the native application for contact management of the device (Android, iPhone or iPad).
      ContactEditOpens a contact's current file in the device's native contact management application (Android, iPhone or iPad).
      ContactSelectMuestra la lista de contactos encontrados en el dispositivo (Android, iPhone o iPad).
    • Several WLanguage functions are used to perform all the possible operations:
      ContactAddAdds a contact:
      • in a Lotus Notes or Outlook address book.
      • in the contacts list of your device (Android, iPhone or iPad).
      ContactDeleteDeletes the current contact:
      • from a Lotus Notes or Outlook address book.
      • in the Phone contacts list (Android, iPhone or iPad).
      ContactListSourceEnumera las fuentes (o cuentas) de los contactos guardados en el dispositivo.
      ContactModifyModifies the current contact in a Lotus Notes or Outlook address book.
      ContactResetReinicia:
Managing the contacts while using the Contact structure (kept for backward compatibility)
Advertencia
A partir de la versión 17 (69), this method is kept for backward compatibility. This method is not recommended and it should only be kept for the applications that use a version earlier than Android 2.0.
To manage the contacts of the mobile device, you have the ability to use the mContact structure. This structure is a preset structure of WLanguage used to handle a contact.
To handle the contacts found on the mobile device:
  • Browse the different contacts with the following functions:
    ContactFirstLee la primera Contact en un libro de Lotus Notes o Outlook Address.
    ContactLastLee la última Contact en un libro de Lotus Notes o Outlook Address.
    ContactNextReads the contact after the current contact in a Lotus Notes or Outlook address book.
    ContactPreviousLee el Contact anterior al Contact actual en un libro de Address de Lotus Notes o Outlook.
    ContactReadLee un contacto en una libreta de Lotus Notes o Outlook Address.

    The mContact.Out variable is used to find out whether a current record exists.
  • Handle the current contact with the following functions:
    ContactAddAdds a contact:
    • in a Lotus Notes or Outlook address book.
    • in the contacts list of your device (Android, iPhone or iPad).
    ContactDeleteDeletes the current contact:
    • from a Lotus Notes or Outlook address book.
    • in the Phone contacts list (Android, iPhone or iPad).
    ContactDisplayOpens the form of a contact in the native application for contact management of the device (Android, iPhone or iPad).
    ContactEditOpens a contact's current file in the device's native contact management application (Android, iPhone or iPad).
    ContactModifyModifies the current contact in a Lotus Notes or Outlook address book.
    ContactReadLee un contacto en una libreta de Lotus Notes o Outlook Address.
    ContactResetReinicia:
    ContactSearchBusca un contacto en una libreta de Lotus Notes o Outlook Address.
    ContactSelectMuestra la lista de contactos encontrados en el dispositivo (Android, iPhone o iPad).
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local