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 / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Finding out the value returned by a child window
  • Limits
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
The ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
WINDEV Reminder: A window opened by function Open up can return a result when closed.. This value is returned:
  • by the Resend keyword in the window closing code,
  • by the Farm function,
    Remark: The Farm function can be used to return several values.
  • by the ReturnedValue property used before closing the window.
WEBDEV - Código Servidor Reminder A page opened by function PageDisplayDialog may return a result when closed. This value is returned:
  • by the Resend keyword in the page closing code,
  • by the PageCloseDialog function,
  • by the ReturnedValue property used before closing the page,
  • by the ContextClose function.
AndroidiPhone/iPadIOS Widget Used on the MyChildWindow keyword, the ReturnedValue property is used to get the value returned by a child window in a mobile application.
WINDEViPhone/iPadIOS Widget Reminder: A report printed by function iPrintReport can return a result at the end of its printing.. This value is returned:
  • by the Resend keyword in the report closing code,
  • by the ReturnedValue property used before closing the report.
WEBDEV - Código Navegador The ReturnedValue property gets and sets the value returned by a popup in a Combo Box Popup control.
Ejemplo
WINDEVJava
// Code used to open the "WIN_EditPassword" window
MyPassword = Open(WIN_EditPassword)
IF MyPassword <> "" THEN
Info("Wrong password")
END
 
// --------------------------------------------------------------------------------
// -- Click code on the "OK" Button control in "WIN_EditPassword"
// The user types his password in the "EDT_Password" control
// and validates the window
Close()
 
// --------------------------------------------------------------------------------
 
// -- Closing code of the window
WIN_EditPassword.ReturnedValue = EDT_Password
AndroidiPhone/iPadIOS Widget
// Evénement "Fermeture d'une fenêtre fille de FEN_Liste_Clients"
// -------------------------------------------------------------
// Actualise la liste des clients
LooperDisplay(ZR_Clients, taReExecuteQuery)

// Pour tout retour (sauf la suppression)
IF MyChildWindow.ValeurRenvoyée <> -1 THEN
	nIndice is int
	// Recherche la ligne du client
	nIndice = LooperSearch(ATT_NumClient, Client.NumClient)
	IF nIndice > 0 THEN
		// Positionne sur la ligne du client
		LooperPosition(ZR_Clients, nIndice)
	END
END
Sintaxis

Finding out the returned value Ocultar los detalles

<Result> = <Element used>.ReturnedValue
<Result>: Any type
Value that will be returned:
  • when closing the current window, page or report.
  • if the option is selected in the radio button.
<Element used>: Name of window, page, report, option
Name of element used:
  • Name of the window, page, report or internal report used. This window, page or report must be opened.
  • Name of the option in the radio button. This name is in the form: <Selector Field>[<Option Number>].

Modifying the returned value Ocultar los detalles

<Element used>.ReturnedValue = <New value>
<Element used>: Name of window, page, report, option
Name of element used:
  • Name of the window, page or report used. This window, page or report must be opened.
  • Name of the option in the radio button. This name has the following format: <Radio Button control>[<Option number>].
<New value>: Any type
New value to return. The following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • array
  • associative array
  • queue
  • stack
  • list
Observaciones
AndroidiPhone/iPadIOS Widget

Finding out the value returned by a child window

In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open up.
You can get the value returned by a child window in the "Close a child window" event of the window that opened it (the one that called OpenMobileWindow or OpenChild).
For example:
  • In the closing code of the child window, Farm is used to return a parameter:
    Close("", MyParameter)
  • The name of the child window as well as the returned value can be retrieved in the "Close a child window" event of the calling window, using the MyChildWindow keyword:
    // Close a child window
    NameChildWindow = MyChildWindow.Name
    ValueChildWindow = MyChildWindow.ReturnedValue

Limits

The ReturnedValue property is applied:
  • WINDEVAndroidWidget Android Java windows,
  • WEBDEV - Código Servidor pages,
  • WINDEVAndroidJava options in Radio Button controls.
  • WINDEV internal windows only if they are opened with Open up.
  • WINDEVReportes y ConsultasiPhone/iPadIOS Widget reports.
  • WINDEVReportes y ConsultasiPhone/iPadIOS Widget internal reports (in read-only).
  • WEBDEV - Código Navegador popups used via a Popup Combo Box control.
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: 04/10/2024

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