Home » Developer & Programmer » Forms » Focus problem while opening new browser Forms 10g
icon5.gif  Focus problem while opening new browser Forms 10g [message #237523] Mon, 14 May 2007 14:18 Go to next message
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 #237640 is a reply to message #237523] Tue, 15 May 2007 05:23 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
Try to place the cursor in an item on the current block using GO_ITEM built-in after your code.

Gerald
Re: Focus problem while opening new browser Forms 10g [message #239622 is a reply to message #237640] Tue, 22 May 2007 14:54 Go to previous message
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
Previous Topic: Help in query Formating
Next Topic: Problems running a form from within form builder...
Goto Forum:
  


Current Time: Thu Dec 08 04:10:45 CST 2016

Total time taken to generate the page: 0.06720 seconds