Hi Bheki,
By looking into your code and the problem you are facing, its likely that you are calling DirectAccess function in such a way that it is called when the applet itself is not created which means you are trying to access an applet by
document.PeriodBrowser.getQueryObject().setParam(1,Stream); | |
document.PeriodBrowser.getQueryObject().setParam(2,theDate); | |
document.PeriodBrowser.getQueryObject().setStartDate(SDate); | |
document.PeriodBrowser.updateBrowser(true); |
which is not at all created at that particular point of time and that is why the problem is not consistent as the time taken for the applet creation varies everytime.
To elaborate, if I write a function onload of my irpt page and try to set some parameters of an applet in that function, it will give me error as the load of the page is very fast as compared to the applet creation and for this I should call that function on 'CreationEvent' of applet which makes sure that the function is called only after creation of my applet.
If this is the case for your function call, then you will have to add a logic to check for the applet creation.
Hope this adds some pointer to resolve your problem.
Thanks & Regards,
Anuj