Focus problem while opening new browser Forms 10g [message #237523] |
Mon, 14 May 2007 14:18 |
saisworld
Messages: 2 Registered: May 2007
|
Junior Member |
|
|
Hi All,
Problem-
Currently my application is running on Forms 9.0.4.2 and my form calls another third party which displays the image in image viewer in new browser. When user clicks on the button to display image, then I m using the following Code -
-- Method: displayDocuments ([Ljava/lang/String;)Ljava/lang/String;
FUNCTION displayDocuments(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JARRAY) RETURN VARCHAR2 IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'com/hli/imaging/adapter/LK_FormsImagingAdapter', 'displayDocuments', '([Ljava/lang/String;)Ljava/lang/String;', args);
END;
Image is displaying fine but the focus is staying on the newly opened browser. I want it to get back the focus to the forms window.Is this possible ???
Suggest your valuable inputs.
Thanks in advance
Sai
|
|
|
|
Re: Focus problem while opening new browser Forms 10g [message #239622 is a reply to message #237640] |
Tue, 22 May 2007 14:54 |
saisworld
Messages: 2 Registered: May 2007
|
Junior Member |
|
|
Thanks for your reply.
It didnt work. I m using WEB.SHOW_DOCUMENT to open the new browser and I placed GO_ITEM(..) after that, it didnot work.
Is there any other way I can open browser window other than WEB.SHOW_DOCUMENT ? through which I can let the window remain low and my applet(form) window on top always.
Sai
|
|
|