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 / Desarrollar una aplicación o un sitio web / RAD / 
  • Overview
  • The different parts of the window description
  • 1. The characteristics of the window
  • 2. Description of the buttons
  • 3. Code of the buttons
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
Advertencia
A partir de la versión 2024, está funcionalidad no estará disponible.
Overview
The MDL file is the file used to generate a RAD window. This file contains the entire description of the pattern to generate. This description is made of two distinct parts:
  • the description of the pattern,
  • the description of the window.
This help page only presents the code used to describe the window. To present this code in details, the script of a Form.mdl pattern is used.
ATTENTION: In version 12, the RAD has been completely redesigned.. MDL files are kept for backward compatibility. For more details, see New RAD patterns.
The different parts of the window description

1. The characteristics of the window

##############################################################
#
# F I C H E
#
###############################################################
###############################################################
#
# Description de partie fiche
#
###############################################################
[ZoneFiche]
#############################
Fichier=A
NomZone=Fiche
DescZone=Choisissez le fichier ou la requête associé à la fenêtre
Coord=6,6,200,500
TYPEFIC=SaufRelation
The different elements used in this code are as follows:
[FormArea]Marks the beginning of the section for describing the window
FileFile associated with the area (the window in this case)
AreaNameName of the area
AreaDescDescriptive sentence used to choose the element associated with the window
CoordCoordinates of the area, specified in the following format: <X>, <Y>, <Width>, <Height>
FileTypeType of accepted files: All, Relation, ExceptRelation

2. Description of the buttons

##############################################################
#
# Description des boutons de validation associés à la fiche
#
##############################################################
[ZoneBouton]
#############################
NomZoneAssoc=Fiche
Coord=212,6,80,54
AUTOEXTENSION=4
NomZone=Bouton_Fiche_Modif
#############################
# Bouton de modification
#############################
BOUTON=OK,OK,Validation,GP_MODIF,BoutonOK
BOUTON=Annuler,Annuler,Abandon,GP_MODIF,BoutonAnnuler
The different elements used in this code are as follows:
[ButtonArea]Marks the beginning of the section for describing the window buttons
NameAssocAreaIndicates the name of the control area associated with the button area
%ifdefSignals the beginning of a conditional code. The entire statement is as follows: %ifdef .... %else %endif
CoordCoordinates of the button area, specified in the following format: <X>, <Y>, <Width>, <Height>
AUTOEXTENSIONThe area can be enlarged:
1. Vertical move
2. Vertical enlargement
4. Horizontal move
8. Horizontal enlargement
AreaNameName of the button area
BUTTONDescription of one of the buttons: Name of the button, caption, type of the button, associated group, associated style in the skin template of the project. This style must be selected among the following styles:
NewButtonModifyButtonDeleteButton
CloseButtonBrowseButtonFirstButton
PreviousButtonNextButtonLastButton
PrintButtonVisionButton

3. Code of the buttons

#############################
# code du bouton OK
#############################
CodeBouton=Debut,OK
%define PCODE Clic
%ifdef PROC
@// indique que la fiche n'est plus modifiée
gbFenetreModifiee = gbFenetreModifiee OU MaFenetre..Modifié
MaFenetre..Modifié=faux
// selon le mode de la fenêtre
SELON Gauche(ExtraitChaîne(gModeFenetre,1,"="),8)
// mode création
CAS "Création"
// Mise en place de l'enregistrement et validation
SI RADEnregistre() ALORS
@
%ifdef SQL
@ // ajout de l'enregistrement
SI PAS HExecuteRequete({RAD_REQ_INSERT_A},hRequeteDefaut, ...
@
%repeat XXXX
@ {RAD_RUB_A},...
@
%endrep
@ {RAD_DERNIER_RUB_A}) ALORS
Info("Impossible d'ajouter un enregistrement"+RC+HErreurInfo())
...

@
%endif
%enddef PCODE
Code=Fin
The different elements used in this code are as follows:
ButtonCode=Beginning,OKMarks the beginning of the code for the OK button. The end of the code is signaled by Code=End
%RepeatSignals a repetition in the name of the items to insert.
In our example, all the items selected by the user are inserted into the code. The last item is indicated by the RAD_LAST_ITEM_A variable.
SI PAS HExecuteRequete
({RAD_REQ_INSERT_A},hRequeteDefaut,...
@
%repeat XXXX  
@ {RAD_RUB_A},...
@
%endrep
@ {RAD_DERNER_RUB_A}) ALORS
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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