I am puzzled by the following.
In the onscriptinit I look if a global variable has a value.
If not then I fill another global variable with the name of the application and do a sc_redir to a filter application.
In this filter application I do a select of a certain field and when I click select, then the global variable gets the value and the application will do a sc_redir to the application which was calling.
The global variable is used in an sql statement and I put it in the header.
Now the odd thing: the header is showing me the correct data. But the sql statement does not. In fact, if you set debug on then the global field is empty (although it is shown correctly in the header). If I do a refresh of the same screen it works well.
** why??? **
what goes wrong?