127
WinDev 20 Perfectionnement WinDev 20, Perfectionnement alphorm.com™© Site : http://www.alphorm.com Blog : http://blog.alphorm.com Forum : http://forum.alphorm.com Présentation de la formation Patrick Antouly Formateur, Développeur et Consultant [email protected]

Alphorm.com Formation Windev 20 Pefectionnement

Embed Size (px)

Citation preview

Page 1: Alphorm.com Formation Windev 20 Pefectionnement

WinDev 20Perfectionnement

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Présentation de la formation

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Page 2: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• La présentation du formateur

• Le cursus des formations PC Soft

• Le plan de formation

• Le public concerné

WinDev 20, Perfectionnement alphorm.com™©

• Les prérequis

Page 3: Alphorm.com Formation Windev 20 Pefectionnement

Présentation du formateur

• Patrick Antouly

• Développeur indépendant

• Chef de projet, expert sur les technologies PC SOFT

• Consultant et formateur indépendant

• Mes références :

WinDev 20, Perfectionnement alphorm.com™©

• Mes références :

� Mon profil LinkedIn : http://fr.linkedin.com/in/patrickantouly

� Site de l’entreprise : http://www.antouly.fr

� Mon profil Alphorm : http://www.alphorm.com/formateur/Patrick-ANTOULY

Page 4: Alphorm.com Formation Windev 20 Pefectionnement

Mes formations sur Alphorm

• Lien :

� http://www.alphorm.com/tutoriel/formation-en-ligne-windev-mobile-20-ios

• Description :

� Dans cette formation vous allez apprendre avec WinDev Mobile pour iOS, par le développement pas à pas d’un logiciel mobile.

Vous allez pouvoir : Configurer l’environnement de développement

WinDev 20, Perfectionnement alphorm.com™©

� Vous allez pouvoir : Configurer l’environnement de développement (WinDev Mobile sur Windows et Xcode sur Mac OS), Comprendre les principes de fonctionnement de WinDev mobile(Compilation, etc.), Utiliser des sources de données hétérogènes(HFSQL locale et client/serveur, Access, la réplication…), Utiliser les principaux champs(Action bar, carte, graphe, etc.), Développer en multiplateforme(Code cible conditionnel, conseils…), Programmer, utiliser les outils mobiles (GPS, SMS, caméra, codes-barres …)et Déployer une application(Simulateur Xcode, appareil et App Store)

• Et beaucoup plus de formation à venir ☺

Page 5: Alphorm.com Formation Windev 20 Pefectionnement

Cursus A.G.L. PCSOFT version 20

Les fondamentaux

Perfectionnement

Android

iOS / Apple

mobile

Lesfondamentaux

Avancé

Le gestionnaire de code source

Base HFSQL

WinDev 20, Perfectionnement alphorm.com™©

Avancé

Expert

Les nouveautés de la version 20

Windows CEmobile

Expert

Page 6: Alphorm.com Formation Windev 20 Pefectionnement

Le plan de formation• La base de données

� Les requêtes simples et paramétrées

� La gestion des répertoires de données

� Les triggers de programmation

� La gestion des accès concurrentiels et des blocages

• L'interface Homme/Machine

� Le champ table

� Le champ jauge

• La programmation et les concepts

� Les règles d'intégration du multilingue

� Les procédures automatiques

� Les fichiers texte

� Les fichiers INI

� Les fichiers XML

� La gestion des mails (POP, SMTP, Outlook)

� La création et l'intégration d'un composant externe

• Les états (reporting)

WinDev 20, Perfectionnement alphorm.com™©

� Le champ zone répétée

� Les champs listes et combos

� Le champ image

� Le champ liste image

� Le champ arbre (treeview)

� Le champ graphe (Histogramme, Secteur, ...)

� Le champ séparateur (splitter)

� Le champ boîte à outils

� La création d'un modèle de fenêtre

• Les états (reporting)

� Les tris

� Les ruptures (totaux, sous-totaux)

� Les codes-barres

� Le passage de paramètres issus de l'IHM

Page 7: Alphorm.com Formation Windev 20 Pefectionnement

Publics concerné

• Tous les développeurs connaissant WinDev et désirant approfondir leurs connaissance du produit

• Les décideurs, chefs et directeurs de projets désirant connaître les fonctionnalités avancées de WinDev

WinDev 20, Perfectionnement alphorm.com™©

Page 8: Alphorm.com Formation Windev 20 Pefectionnement

Connaissances requises

• De bonnes notions en développement informatique

• Avoir suivi la formation « WinDev 19, les fondamentaux »

� http://www.alphorm.com/tutoriel/formation-en-ligne-windev-19-les-fondamentaux

WinDev 20, Perfectionnement alphorm.com™©

en-ligne-windev-19-les-fondamentaux

Page 9: Alphorm.com Formation Windev 20 Pefectionnement

Les autres formations PC Soft sur Alphorm

WinDev 20, Perfectionnement alphorm.com™©

Page 10: Alphorm.com Formation Windev 20 Pefectionnement

Les autres formations dev sur Alphorm

WinDev 20, Perfectionnement alphorm.com™©

Page 11: Alphorm.com Formation Windev 20 Pefectionnement

Vous êtes prêts ? ☺

WinDev 20, Perfectionnement alphorm.com™©

Page 12: Alphorm.com Formation Windev 20 Pefectionnement

WinDev 20Perfectionnement

Présentation du projet

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Présentation du projet de démonstration

Page 13: Alphorm.com Formation Windev 20 Pefectionnement

Projet de démonstration

• Sujets variés et sans liens entre eux

• Projet regroupant des démonstrations diverses

• Plusieurs projets selon le chapitre

WinDev 20, Perfectionnement alphorm.com™©

Page 14: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Présentation des projets de démonstration du cours

WinDev 20, Perfectionnement alphorm.com™©

Page 15: Alphorm.com Formation Windev 20 Pefectionnement

Création du projet et

WinDev 20Perfectionnement

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Création du projet et de la base de données

Page 16: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Création du projet d’exemples

• Création de la base de données d’exemple

WinDev 20, Perfectionnement alphorm.com™©

Page 17: Alphorm.com Formation Windev 20 Pefectionnement

Analyse

WinDev 20, Perfectionnement alphorm.com™©

Page 18: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création du projet

• Création de la base de données d’exemple

WinDev 20, Perfectionnement alphorm.com™©

Page 19: Alphorm.com Formation Windev 20 Pefectionnement

Les requêtes simples

La base de données

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Les requêtes simples et paramétrées

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Page 20: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Requêtes simples

• Requêtes SQL

• Requêtes paramétrées

• Méthodes de passage des paramètres

WinDev 20, Perfectionnement alphorm.com™©

• Programmation

Page 21: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• HExécuteRequête

• ..FichierParcouru

WinDev 20, Perfectionnement alphorm.com™©

Page 22: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Les différentes types de requêtes paramétrées

� Externe

� Interne

� SQL

• Les différentes manières de passer les paramètres

WinDev 20, Perfectionnement alphorm.com™©

• Les différentes manières de passer les paramètres

Page 23: Alphorm.com Formation Windev 20 Pefectionnement

La gestion des répertoires de données

La base de données

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

répertoires de données

Page 24: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Répertoire des données de l’application

• Gestion du fichier .REP

• Programmation

• Autres fonctions de gestion des répertoires de données

WinDev 20, Perfectionnement alphorm.com™©

Page 25: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• HChangeRep

• HSubstRep

• HListeRep

• HGèreRep

WinDev 20, Perfectionnement alphorm.com™©

• fRepDonnées

• fRepDonnéesUtilisateur

• Etc.

Page 26: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Définition des répertoires de données des applications

• Gestion du fichier .REP

• Fonctions WLangages correspondantes

WinDev 20, Perfectionnement alphorm.com™©

Page 27: Alphorm.com Formation Windev 20 Pefectionnement

Les triggers

La base de données

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les triggers

Page 28: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Définition des triggers

• Les triggers simples

• Les triggers serveurs

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 29: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• HListeTrigger

• HGèreTrigger

• HDécritTrigger

• HDécritTriggerServeur

• HDétruitTrigger

• HDétruitTriggerServeur

• HCréeTriggerServeur

WinDev 20, Perfectionnement alphorm.com™©

• HActiveTrigger

• HActiveTriggerServeur

• HDésactiveTrigger

• HDésactiveTriggerServeur

Page 30: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Les triggers simples

• Les triggers serveurs

• Leur programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 31: Alphorm.com Formation Windev 20 Pefectionnement

La gestion des

La base de données

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

La gestion des accès concurrentiels

et des blocages

Page 32: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Gestion assistée des erreurs

• Modes de blocage

• Fonctions de blocage

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 33: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• HSurErreur

• HBloqueFichier

• HBloqueNumEnr

• HMode

WinDev 20, Perfectionnement alphorm.com™©

• …

Page 34: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La gestion des accès concurrentiels

• La gestion des blocages de fichiers et d’enregistrements

WinDev 20, Perfectionnement alphorm.com™©

Page 35: Alphorm.com Formation Windev 20 Pefectionnement

Le champ table

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ table

Page 36: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ table

• Description des différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 37: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• POUR TOUTE LIGNE…

• TableAjouteLigne

• TableAffiche

• TableSélectPlus

WinDev 20, Perfectionnement alphorm.com™©

• Traitements associés aux tables

� Affichage d’une ligne de la table

� Sélection d’une ligne

Page 38: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création et manipulation d’un champ table

• Programmation de la table

WinDev 20, Perfectionnement alphorm.com™©

Page 39: Alphorm.com Formation Windev 20 Pefectionnement

Le champ jauge

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ jauge

Page 40: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ jauge

• Description des différentes options

• Le champ jauge infinie

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 41: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• Propriétés

� ..BorneMax

� ..BorneMin

WinDev 20, Perfectionnement alphorm.com™©

Page 42: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Utilisation des champs jauge dans une application WinDev

WinDev 20, Perfectionnement alphorm.com™©

Page 43: Alphorm.com Formation Windev 20 Pefectionnement

Le champ zone

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ zone répétée

Page 44: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ zone répétée

• Description des différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 45: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• ZoneRépétéeAjoute

• ZoneRépétéeSélectPlus

• ZoneRépétéeAjoute

• ZoneRépétéeSupprime

WinDev 20, Perfectionnement alphorm.com™©

• ZoneRépétéeInsère

• ZoneRépétéeOccurrence

• ZoneRépétéeAffiche

• Etc.

Page 46: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création et manipulation des zones répétées

WinDev 20, Perfectionnement alphorm.com™©

Page 47: Alphorm.com Formation Windev 20 Pefectionnement

Les champs listes et combos

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les champs listes et combos

Page 48: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation des champs listes et combo

• Description des différentes options et formats

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 49: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• ListeAjoute

• ListeOccurrence

• ListeSupprime

• ListeSelectPlus

WinDev 20, Perfectionnement alphorm.com™©

• ListeTrie

• Etc.

Page 50: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création et manipulation des champs liste et combo

WinDev 20, Perfectionnement alphorm.com™©

Page 51: Alphorm.com Formation Windev 20 Pefectionnement

Le champ image

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ image

Page 52: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ image

• Description de ces différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 53: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Créer et manipuler des champs image

WinDev 20, Perfectionnement alphorm.com™©

Page 54: Alphorm.com Formation Windev 20 Pefectionnement

Le champ liste image

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ liste image

Page 55: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ liste image

• Description de ces différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 56: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• ListeAjoute

• ListeAffiche

• ListeSelectPlus

• Propriétés

WinDev 20, Perfectionnement alphorm.com™©

• Traitements

Page 57: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Utilisation et programmation d’un champ Liste Image

WinDev 20, Perfectionnement alphorm.com™©

Page 58: Alphorm.com Formation Windev 20 Pefectionnement

Le champ arbre

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ arbre

Page 59: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ arbre (ou TreeView)

• Description de ces différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 60: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• ArbreAjoute

• ArbreEnroule

• ArbreDéroule

• ArbreCherche

• Propriétés

• Traitements

WinDev 20, Perfectionnement alphorm.com™©

• ArbreOccurrence

• ArbrePosition

• ArbreSelectPlus

• ArbreTrie

Page 61: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Créer et manipuler un champ arbre dans WinDev

WinDev 20, Perfectionnement alphorm.com™©

Page 62: Alphorm.com Formation Windev 20 Pefectionnement

Le champ graphe

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ graphe

Page 63: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ graphe

• Les différents types de graphes

• Description de ces différentes options

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 64: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• grAjouteDonnée

• grAxeVisible

• grChargeParamètre

• grRotation

WinDev 20, Perfectionnement alphorm.com™©

• grRelief

• Etc.

Page 65: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Les différents types de graphes proposés dans WinDev

• La programmation des graphes

WinDev 20, Perfectionnement alphorm.com™©

Page 66: Alphorm.com Formation Windev 20 Pefectionnement

Le champ séparateur

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ séparateur (splitter)

Page 67: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ séparateur (splitter)

• Description de ces différentes options

WinDev 20, Perfectionnement alphorm.com™©

Page 68: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Utilisation du champ séparateur (splitter)

WinDev 20, Perfectionnement alphorm.com™©

Page 69: Alphorm.com Formation Windev 20 Pefectionnement

Le champ boîte à

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le champ boîte à outils

Page 70: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du champ boîte à outils

• Description de ses différentes caractéristiques

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 71: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• ChampClone

• EnumèreChamp

• EnumèreSousElément

• Propriétés

WinDev 20, Perfectionnement alphorm.com™©

• Traitements associés

Page 72: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Utilisation et programmation d’un champ boîte à outils

WinDev 20, Perfectionnement alphorm.com™©

Page 73: Alphorm.com Formation Windev 20 Pefectionnement

La création d'un

L'interface Homme Machine

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

La création d'un modèle de fenêtre

Page 74: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principe des modèles de fenêtre

• Création d’un modèle de fenêtre

• Surcharge du modèle

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 75: Alphorm.com Formation Windev 20 Pefectionnement

Principes

• But des modèles de fenêtre

• Héritage des éléments d’IHM

• Héritage du code

• Rétromodélisation

WinDev 20, Perfectionnement alphorm.com™©

Page 76: Alphorm.com Formation Windev 20 Pefectionnement

Création et programmation

• Création d’un modèle

• Création d’une fenêtre à partir d’un modèle

• Surcharges

• ExécuteAncêtre

WinDev 20, Perfectionnement alphorm.com™©

Page 77: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création et utilisation des modèles de fenêtres

WinDev 20, Perfectionnement alphorm.com™©

Page 78: Alphorm.com Formation Windev 20 Pefectionnement

L'intégration

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

L'intégration du multilingue

Page 79: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principe des applications multilingues

• Multilingue dans les champs

• Multilingue dans le code

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 80: Alphorm.com Formation Windev 20 Pefectionnement

Principes

• Fonctionnement des applications multilingues

• Outils optionnels

� WDMSG

� WDDixio

WinDev 20, Perfectionnement alphorm.com™©

Page 81: Alphorm.com Formation Windev 20 Pefectionnement

Multilingue dans les champs

• Ajouter des langues dans le projet

• Saisir les textes dans les différentes langues dans les fenêtres et les champs

• Utilisation de Google Traduction

WinDev 20, Perfectionnement alphorm.com™©

Page 82: Alphorm.com Formation Windev 20 Pefectionnement

Multilingue dans le code

• Saisie de chaines multilingues

• Nation

• ChangeAlphabet

• ChargeErreur

WinDev 20, Perfectionnement alphorm.com™©

• MessTraduit

Page 83: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La création d’applications multilingues

• Les outils associés

WinDev 20, Perfectionnement alphorm.com™©

Page 84: Alphorm.com Formation Windev 20 Pefectionnement

Les procédures

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les procédures automatiques

Page 85: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principe et intérêt des procédures automatiques

• Les différents types de procédures automatiques

� Timers

� Threads

Programmation

WinDev 20, Perfectionnement alphorm.com™©

• Programmation

Page 86: Alphorm.com Formation Windev 20 Pefectionnement

Programmation

• FinAutomatismeProcédure

• TimerSys

• Timer

• ThreadExecute

WinDev 20, Perfectionnement alphorm.com™©

• ExécuteThreadPrincipal

Page 87: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Création et utilisation des procédures automatiques

WinDev 20, Perfectionnement alphorm.com™©

Page 88: Alphorm.com Formation Windev 20 Pefectionnement

Les fichiers

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les fichiers texte

Page 89: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Les fonctions de gestion des fichiers texte en Wlangage

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 90: Alphorm.com Formation Windev 20 Pefectionnement

Les fonctions de gestion des fichiers texte

• fOuvre

• fCrée

• fLit

• fLitLigne

WinDev 20, Perfectionnement alphorm.com™©

• fChargeTexte

• fSauveTexte

• fChargeBuffer

• fSauveBuffer

Page 91: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La gestion des fichiers texte en WLangage

WinDev 20, Perfectionnement alphorm.com™©

Page 92: Alphorm.com Formation Windev 20 Pefectionnement

La gestion des mails

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

La gestion des mails

Page 93: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Envoi et réception de mails par POP et SMTP

• Connexion avec Outlook

• Programmation

WinDev 20, Perfectionnement alphorm.com™©

Page 94: Alphorm.com Formation Windev 20 Pefectionnement

Envoi de messages par SMTP

• Type EmailSessionSMTP

• EmailOuvreSessionSMTP

• EmailEnvoieMessage

• emailFermeSession

WinDev 20, Perfectionnement alphorm.com™©

Page 95: Alphorm.com Formation Windev 20 Pefectionnement

Réception des messages par POP3

• Type EmailSessionPOP3

• EmailOuvreSessionPOP3

• EmailLitPremier

• emailLitSuivant

WinDev 20, Perfectionnement alphorm.com™©

Page 96: Alphorm.com Formation Windev 20 Pefectionnement

Connexion à Outlook

• EmailOuvreSessionOutlook

• EmailListedossiers

• EmailLitEntêtePremier

• EmailLitEntêteSuivant

WinDev 20, Perfectionnement alphorm.com™©

• EmailFermeSession

• Structure Email

Page 97: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Utilisation de POP3 et SMTP pour envoyer et recevoir des messages

• Connexion à Outlook pour accéder aux messages

WinDev 20, Perfectionnement alphorm.com™©

Page 98: Alphorm.com Formation Windev 20 Pefectionnement

Les fichiers XML

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les fichiers XML

Page 99: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Présentation du XML

• Accès aux fichiers XML

• Exportations vers XML

WinDev 20, Perfectionnement alphorm.com™©

Page 100: Alphorm.com Formation Windev 20 Pefectionnement

Présentation du XML

• Système de balises

WinDev 20, Perfectionnement alphorm.com™©

Page 101: Alphorm.com Formation Windev 20 Pefectionnement

Accès aux fichiers XML

• Variables de type XML

• Variables de type chaîne

• Fonctions :

� XMLDocument

� TexteVersXML

� Etc.

WinDev 20, Perfectionnement alphorm.com™©

� XMLPremier

� XMLSuivant

� XMLDonnées

� XMLNomElément

� XMLSupprime

Page 102: Alphorm.com Formation Windev 20 Pefectionnement

Exportations XML

• Fonctions d’exportation vers XML en WLangage

� TableVersXML

� HExporteXML

WinDev 20, Perfectionnement alphorm.com™©

Page 103: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La manipulation des fichiers XML dans WinDev

WinDev 20, Perfectionnement alphorm.com™©

Page 104: Alphorm.com Formation Windev 20 Pefectionnement

Les composants

La programmation et les concepts

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les composants externes

Page 105: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principe des composants externes

• Création d’un composant externe

• Distribution d’un composant externe

• Utilisation d’un composant externe

WinDev 20, Perfectionnement alphorm.com™©

• Déploiement de l’application

Page 106: Alphorm.com Formation Windev 20 Pefectionnement

Principe des composants externes

• Principes

• Fichiers du composant

WinDev 20, Perfectionnement alphorm.com™©

Page 107: Alphorm.com Formation Windev 20 Pefectionnement

Création d’un composant externe

• Création du projet

• Gestion des droits

• Exemple

WinDev 20, Perfectionnement alphorm.com™©

Page 108: Alphorm.com Formation Windev 20 Pefectionnement

Distribution d’un composant externe

• Les différentes méthodes de distribution

• Visibilité des éléments

WinDev 20, Perfectionnement alphorm.com™©

Page 109: Alphorm.com Formation Windev 20 Pefectionnement

Utilisation et distribution de l’application

• Importer le composant

• Gestion du fichier WDK

WinDev 20, Perfectionnement alphorm.com™©

Page 110: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Le concept de composant externe

• La création et la distribution d’un composant

• L’utilisation d’un composant et la distribution de l’application

WinDev 20, Perfectionnement alphorm.com™©

Page 111: Alphorm.com Formation Windev 20 Pefectionnement

Les tris

Les états

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les tris

Page 112: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principes

• Critères de tri

• Tris sur rubriques

• Tris par procédures

WinDev 20, Perfectionnement alphorm.com™©

• Programmation

Page 113: Alphorm.com Formation Windev 20 Pefectionnement

Gestion des critères de tri

• A la création

• Dans un état existant

• Suppression

• Tris par programmation

WinDev 20, Perfectionnement alphorm.com™©

� Procédures de tri

Page 114: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Les différentes méthodes de gestion des tris dans les états

WinDev 20, Perfectionnement alphorm.com™©

Page 115: Alphorm.com Formation Windev 20 Pefectionnement

Les ruptures

Les états

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les ruptures

Page 116: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principe des ruptures

• Ajout et suppression de ruptures

WinDev 20, Perfectionnement alphorm.com™©

Page 117: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La gestion des ruptures dans les états

WinDev 20, Perfectionnement alphorm.com™©

Page 118: Alphorm.com Formation Windev 20 Pefectionnement

Les codes-barres

Les états

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Les codes-barres

Page 119: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Principes

• Les différents types de code-barres

• L’impression code-barres dans les états

WinDev 20, Perfectionnement alphorm.com™©

Page 120: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• La gestion et l’impression des code-barres dans les états

WinDev 20, Perfectionnement alphorm.com™©

Page 121: Alphorm.com Formation Windev 20 Pefectionnement

Le passage

Les états

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Le passage de paramètres

Page 122: Alphorm.com Formation Windev 20 Pefectionnement

Plan

• Passage de paramètres aux requêtes autonomes

• Passage de paramètres aux requêtes intégrées

• Passage de paramètres aux états

• Impression des états paramétrés

WinDev 20, Perfectionnement alphorm.com™©

• Programmation

Page 123: Alphorm.com Formation Windev 20 Pefectionnement

Ce qu’on a couvert

• Le passage de paramètres aux états

WinDev 20, Perfectionnement alphorm.com™©

Page 124: Alphorm.com Formation Windev 20 Pefectionnement

Conclusion

WinDev 20Perfectionnement

WinDev 20, Perfectionnement alphorm.com™©

Site : http://www.alphorm.comBlog : http://blog.alphorm.comForum : http://forum.alphorm.com

Patrick AntoulyFormateur, Développeur et Consultant [email protected]

Conclusion

Page 125: Alphorm.com Formation Windev 20 Pefectionnement

Des questions ?

Patrick Antouly

• Développeur indépendant

• Chef de projet, expert sur les technologies PC SOFT

• Consultant et formateur indépendant

WinDev 20, Perfectionnement alphorm.com™©

• Consultant et formateur indépendant

• Mes références :

� Mon profil LinkedIn : http://fr.linkedin.com/in/patrickantouly

� Site de l’entreprise : http://www.antouly.fr

� Mon profil Alphorm : http://www.alphorm.com/formateur/Patrick-ANTOULY

Page 126: Alphorm.com Formation Windev 20 Pefectionnement

Bilan

• Gestion des requêtes

• Bases de données : verrouillages, triggers, etc.

• IHM

� Champs Table, Jauge, Image, Listes et combos, arbres, etc.

WinDev 20, Perfectionnement alphorm.com™©

• Programmation :

� Multilangage, procédures automatiques, messagerie, FTP, fichiers texte, INI, XML, composants externes, etc.

• Etats :

� Tris, ruptures, passage de paramètres, code-barres, etc.

Page 127: Alphorm.com Formation Windev 20 Pefectionnement

A bientôt

A bientôt sur les autres formations PCSOFT

WinDev 20, Perfectionnement alphorm.com™©