Hi,
I have a question about application.showURL(url, ‘_self’). We have a form to show the list of records retrieved from the database. Now we need to export the list into a file. We implemented this in a function. The function will write the list into a file and then call application.showURL(url, ‘_self’). The url points to a jsp page to download the file. This function is run by clicking the menu. If we don’t open any new form when this function is called then the download dialog will show up when we call application.showURL(url, ‘_self’); but now we created a form to show the busy indicator when the list is exported. After we click the “Export list” menu, a busy indicator will show up and ask if you want to continue as this might take couple of minutes; if yes then it begins to export list. At the end of the export function we call a “close” method to close the busy indicator form. But this time the download dialog won’t show up any more as the busy indicator form has been closed and application.showURL(url, ‘_self’) couldn’t find who is the ‘_self’. So we have to use application.showURL(url, ‘_blank’). We don’t want to show url in a new window.
I found that if the procedure is: open a form → call the function without opening any other form —> at the end of that function call application.showURL(url,‘_self’) —> download dialog show up;
but: open a form → call the function and open a new form —> at the end of that function call application.showURL(url,‘_self’) —> No download dialog;
My understanding is when the new form is closed the focus should come back to the parent form. Why ‘_self’ cannot find the parent form?
How to make this work?
Thanks,
bluemoon:
Hi,
I have a question about application.showURL(url, ‘_self’). We have a form to show the list of records retrieved from the database. Now we need to export the list into a file. We implemented this in a function. The function will write the list into a file and then call application.showURL(url, ‘_self’). The url points to a jsp page to download the file. This function is run by clicking the menu. If we don’t open any new form when this function is called then the download dialog will show up when we call application.showURL(url, ‘_self’); but now we created a form to show the busy indicator when the list is exported. After we click the “Export list” menu, a busy indicator will show up and ask if you want to continue as this might take couple of minutes; if yes then it begins to export list. At the end of the export function we call a “close” method to close the busy indicator form. But this time the download dialog won’t show up any more as the busy indicator form has been closed and application.showURL(url, ‘_self’) couldn’t find who is the ‘_self’. So we have to use application.showURL(url, ‘_blank’). We don’t want to show url in a new window.
I found that if the procedure is: open a form → call the function without opening any other form —> at the end of that function call application.showURL(url,‘_self’) —> download dialog show up;
but: open a form → call the function and open a new form —> at the end of that function call application.showURL(url,‘_self’) —> No download dialog;
My understanding is when the new form is closed the focus should come back to the parent form. Why ‘_self’ cannot find the parent form?
How to make this work?
Thanks,
Do you have a small sample to illustrate this problem ?