I try to write a property of a component to the value 1
on the start of a button action performed script,
and to the value 0 at the end.
This component is used for displaying a wait message.
The value stay to 0, and the message is not displayed.
Is it possible to write 2 different values of the same property, or of a same client tag,
inside the same script ?
Are those 0 and 1 values the value that determines if the message is showing or not? Are you trying to display the wait message for a set period of time? What exactly are you trying to do with the message box?
sql = “SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where table_type=‘TABLE’ order by TABLE_NAME asc”
result = system.db.runQuery(sql,dbfrontal)
listeCpt = []
for res in result:
nom_table = res[0]
cpt = system.db.runScalarQuery("SELECT COUNT(*) FROM " + nom_table,dbfrontal)
listeCpt.append([nom_table,cpt]);
sql = “SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where table_type=‘VIEW’ order by TABLE_NAME asc”
result = system.db.runQuery(sql,dbfrontal)
for res in result:
nom_table = res[0]
listeCpt.append([nom_table,0]);
headers = [“Table”, “Nombre Enregistrements”]
result = system.dataset.toDataSet(headers,listeCpt)
event.source.parent.getComponent(‘Table’).data = result
# Now we'll send our results back to the UI
def sendBack(result = result,rootContainer = rootContainer):
import system
rootContainer.getComponent('Table').data = result
system.tag.write("[Client]busy",0)
system.util.invokeLater(sendBack)