ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
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
Modifies or returns the visibility status of internal wait window when adding additional elements into an infinite Table control.
Example
// Evénement "Ajout d'éléments supplémentaires (par le haut)"
TableAddInProgress(TABLE_TableInfinie, True)
ThreadExecute("ThreadRemplissage", threadNormal, maProcRecupResultatSuppl)

INTERNAL PROCEDURE maProcRecupResultatSuppl()
	REQ_PlusDeDonnées.IDMin = TABLE_TableInfinie[TABLE_TableInfinie.Occurrence].ID
	HExecuteQuery(REQ_PlusDeDonnées)
	HReadFirst(REQ_PlusDeDonnées)
	tabLignes is array of strings
	WHILE NOT HOut(REQ_PlusDeDonnées)
		Add(tabLignes, REQ_PlusDeDonnées.Titre + TAB + REQ_PlusDeDonnées.IDArticle)
		HReadNext(REQ_PlusDeDonnées)
	END
	ExecuteMainThread(ProcAjoutDansTable)
	INTERNAL PROCEDURE ProcAjoutDansTable()
		FOR EACH sLigne OF tabLignes
			TableAdd(TABLE_TableInfinie, sLigne)
		END
		TableAddInProgress(TABLE_TableInfinie, False)
	END
END
Syntax

Modifying the visibility status of internal wait window Hide the details

TableAddInProgress(<Table control> [, <Filling mode>] , <Visible>)
<Table control>: Control name
Name of the Table control to be used.
<Filling mode>: Optional Integer constant
New in version SaaS
Table field filling mode:
taRefreshIndicatorDown
(Default value)
Patience window for cooling from below: elements are added after the last row of the Table field. The patience window is displayed after the last visible Row in the Table field..
taRefreshIndicatorUpPatience window for top cooling: elements are added before the first row of the Table field. The patience window is displayed before the first visible Row in the Table field..

WEBDEV - Browser code This parameter is not available.
<Visible>: Boolean
  • True to display the internal wait window,
  • False to hide it.

Retrieving the visibility status of internal wait window Hide the details

<Result> = TableAddInProgress(<Table control> [, <Filling mode>])
<Result>: Boolean
  • True if the internal wait window is displayed,
  • False otherwise.
<Table control>: Control name
Name of the Table control to be used.
<Filling mode>: Optional Integer constant
New in version SaaS
Table field filling mode:
taRefreshIndicatorDown
(Default value)
Patience window for cooling from below: elements are added after the last row of the Table field. The patience window is displayed after the last visible Row in the Table field..
taRefreshIndicatorUpPatience window for top cooling: elements are added before the first row of the Table field. The patience window is displayed before the first visible Row in the Table field..

WEBDEV - Browser code This parameter is not available.
Remarks
  • When using an infinite Table control, a wait internal window (containing a Progress Bar control) is displayed above the rows of the Table control while adding additional data to the control. This wait window is hidden at the end of the "Adding additional elements" event.
  • TableAddInProgress is used for example to check the display of the wait window when the data found in the Table control is refreshed in a secondary thread. This prevents the application from freezing (the example uses this method).
  • When TableAddInProgress makes the wait window visible, the "Adding additional elements" event of the Table control is not run.
  • To hide the refresh bar, the following code must be called:
    TableAjoutEncours(<Champ Table>, Faux)
    as many times as the code
    TableAjoutEncours(<Champ Table>, Vrai)
    was run.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/15/2024

Send a report | Local help