Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi. I'm trying to get reload status in script. For instanse, if I reload onse the document, for the second time i want to get that reload status for my script efficiency.
For example, in case of the first reload I address to tables, I getting their properties, number record, number of fields, a field with date, minimum and maximum. But in case of the following reload I it shouldn't do.
Thnx. OM.
May be something like this?
If ReloadTime()= null() Then // this checks if this is the first time reload or not
let vVar=0;
Else
vVar=10;
End ifTRACE $(vVar); SLEEP 1000; // merely to check if it works
Now you can check the variable and put your conditional script under that.
May be you need to read the log file using the script. Before that you must enable the log file generation.
I created a variable at the end of a script
LET vReload = 1;
Also I want to create a condition if vReload <>1, then read this piece of a script, else - not to read.
But a problem that it in case of each reload will accept NULL status, and it is necessary for me 1. How it can be done?
Go to Document Properties>>General Tab>>Enable the Generate Log File.
Every time the QVW is reloaded Log file will generated and you can see the status, error, lines fetched, time taken etc.
But in this case everytime you reload the QVW, Log File will be overwritten. YOu can't see the old Log File.
If you need multiple versions of Log File , after enabling Generate Log File, enable the Timestamp in LOg File.
This will create Log file with timestamps.
Regard!!!
May be something like this?
If ReloadTime()= null() Then // this checks if this is the first time reload or not
let vVar=0;
Else
vVar=10;
End ifTRACE $(vVar); SLEEP 1000; // merely to check if it works
Now you can check the variable and put your conditional script under that.