ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
// Event "Adding additional elements"
TableAddInProgress(TABLE_InfiniteTable, True)
ThreadExecute("ThreadFill", threadNormal, myProcGetAdditionalResult)
 
INTERNAL PROCEDURE myProcGetAdditionalResult()
QRY_MoreData.MinID = TABLE_InfiniteTable[TABLE_InfiniteTable.Count].ID
HExecuteQuery(QRY_MoreData)
HReadFirst(QRY_MoreData)
arrLines is array of strings
WHILE NOT HOut(QRY_MoreData)
Add(arrLines, QRY_MoreData.Title + TAB + QRY_MoreData.ArticleID)
HReadNext(QRY_MoreData)
END
ExecuteMainThread(ProcAddIntoTable)
INTERNAL PROCEDURE ProcAddIntoTable()
FOR EACH sLine OF arrLines
TableAdd(TABLE_InfiniteTable, sLine)
END
TableAddInProgress(TABLE_InfiniteTable, False)
END
END
Syntax

Modifying the visibility status of internal wait window Hide the details

TableAddInProgress(<Table control> , <Visible>)
<Table control>: Control name
Name of the Table control to be used.
<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>)
<Result>: Boolean
  • True if the internal wait window is displayed,
  • False otherwise.
<Table control>: Control name
Name of the Table control to be used.
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 event "Adding additional elements".
  • 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 event "Adding additional elements" of the Table control is not run.
  • To hide the refresh bar, the following code must be called:
    TableAddInProgress(<Table control>, False)
    as many times as the code
    TableAddInProgress(<Table control>, True)
    was run.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help