Flexibility problem with ( window / form ) Position in forms 10g

Hi ,
I hope you are all Fine & Happy with oracle ;)
I' using Oracle Developer Suite - 10g
I SUCCEFULLY PUT THE FORM IN THE CENTER :D
but i have a proplem to make the position of a form flexible ?:|
First : I wanted to put the window in the center So that what i did
-===== Environment =====-
System : Windows XP
resolution : 1280 X 800
Browsers : IE , FIREFOX
JVM : sun java , Jinit
-===== Scenario =====-
MODULE name : MOD1
WINDOW name : WIN1
bq.      bq. bq. |--> width 200 \\     |--> height 100
BLOCK name : BLK1
bq.      bq. bq. |-->TEXT_ITEM : TXT1 \\     |-->PUSH_BUTTON : BTN1
-====== Action =====-
i add trigger " WHEN-WINDOW-ACTIVATED " form level
bq.      bq. Declare \\     windows_name VARCHAR2(30) ; \\     screen_height NUMBER; \\     screen_width NUMBER; \\     window_height NUMBER; \\     window_width NUMBER; \\     x NUMBER := 0; \\     y NUMBER := 0; \\     BEGIN \\     screen_height := GET_APPLICATION_PROPERTY(DISPLAY_HEIGHT); \\     screen_width := GET_APPLICATION_PROPERTY(DISPLAY_WIDTH); \\     window_name := 'WIN1'; \\     window_height := GET_WINDOW_PROPERTY(windows_name , HEIGHT); \\     window_width := GET_WINDOW_PROPERTY(windows_name , WIDTH); \\     x := ( screen_width - window_width ) /2 ; \\     y := (screen_height - window_height ) / 2 - window_height; \\     Move_Window( windows_name, x , y ); \\     END;
-=== results ===-
when the browser is maxmized
screen_height = 600
screen_width = 960
window_height = 100
window_width = 200
x NUMBER = 380
y NUMBER = 150
this results are very nice to me BUT
--==== the problem ===-
when i resize the browser & reald the form it also detect that the display size still 960 , 600
so the form is shefted far from the targeted postion " center of the browser or to be specific - center of the java applet
While I noticed that any alert i create it position itself to the very center what ever i change the size of the browser or the java applet
-==== the Question ===-
how to detect the real size of the java applet
or
how the alert detect it's position to emulate it's code ?
or
is there any what to solve this problem :_| ?
Thanks
Edited by: user643438 on 17-Oct-2008 00:09

Hi Frank,
Where do I explicitly provide the tnsnames entry to Graphics?
We are using SSO when running Form, the db connect string are store in each user resource of OID, where resource type = OracleDB. Also Neither the existing form (calls the
*.ogd) nor *.ogd has tnsnames/db connect code.
As for the actual TNSNAME setup, we have local env var -TNS_ADMIN w/value of "D:\Oracle\MidTiers\network\admin".
That we want all three oracle homes: Infra10g, MidTier10g, Dev6i use the D:\Oracle\MidTiers\network\admin\tnsnames.ora, sqlnet.ora.
Apparently, Graphics in D:\Oracle\Dev6i doesn't pickup
the TNSNAME setting @ Midtiers
Can you give us some pointers on this? thank you in advance!!!
-Kan

Similar Messages

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • Strange Problem with windows form in SBO

    Hi all
    I encountered a strange problem
    I have a standard .net windows form that I am activating from a menu in SBO
    In the test Env. in our office the form always shows on top, whoever in the customer site first time you activate the menu the form appears correctly on top but when you close the form and press the menu again the form will appear "behind" the SBO.
    The form will appear on top only the first time you use it.
    The form is set to TopMost true
    I also tried using the user32.dll functions of SetFocus and SetForgroundWindow
    (I put them in the Activated event of the form)
    But it made no difference – first time form on top - the rest the from is behind
    The form is run on a separate thread and as I said works perfectly in the test Env.
    I am using .net 2005 with SBO 2005
    Any Ideas ?
    Thanks
    Ronny

    Hi Roni,
    I think you will find the answer to your question in this thread.
    https://forums.sdn.sap.com/click.jspa?searchID=3636651&messageID=844077
    Regards,
    Felipe

  • Another Problem with Oracle Forms 10G

    Hi Experts;
    Previously I posted here a problem was having with Oracle Form, when I tried to execute it (Internet Explorer has closed this webpage to help protect your computer. A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage) .
    However, with the help of a good Buddy of this forum, I could solved the problem and my forms were running properly. But today, i don't know how it's giving me a new problem. When I choose Run Form, I get this error (website restore error. Internet Explorer has stopped trying to restore this website. It appears that the website continues to have a problem.)
    Any suggestion to solve this problem?
    Thanks for your help.
    Regards
    Al

    Hi Aamir;
    I didn't upate file, but I don't know how, but last sunday the google toolbar was installed. I removed it already yesterday, but now I got this problem, I don't know if the installation and then, removing this toolbar, updated any important file.
    The thing is, now I can not execute my forms.
    Regards;
    Al

  • Slow Problems with Oracle Forms 10g and Oracle Database 11g

    Hi, I wonder if there is a compatibility problem between Version 10.1.2.0.2 32 Oracle Forms and Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production. This is because my application runs correctly on a version of Oracle Database 10g, and when we migrated the database to an Oracle Database 11g, slowness problems came out.
    Thanks.

    We have the same issue happening with our custom forms and with some of the standard forms in EBSO. So far we have found that the form invoking a view causes ridiculous slowness in opening the form (40 mins). Using a table access has shortened the open time significantly. At this time Oracle DBAs at OOD have no clear idea why it is happening.
    we are on 11.1 database with 11.5 EBSO
    Edited by: user3223867 on Feb 4, 2011 7:55 AM

  • Problem with libraries forms 10G

    Hi,
    I work in a company that bought a system done in Oracle. Actually we're using forms and reports 6i, but we are going to migrate to the Forns/reports 10g .
    We already have the archives of the new version, the problem is that we must turn our own products to the new version but putting new libraries, and when treatment to compile them, these do not work. The compiler sends errors like
    Error PL/SQL 201 identifier
    'GORDMSK.GORDMSK_DISPLAY_IND' must be declared
    I do not understand why, because this libraries was provided by the company that developed the system.
    Our forms already have been turned through the Oracle migration assistant, the problem are the libraries.
    somebody can help me?

    I'm confused. Is what your saying is that you took the libraries (10g) from the bought system and attached them to your application (6i)?

  • I installed lv 6.1 on a windows 98 system. As I am having problems of stability (much more than with the former release 6.0), I would like to know if there is some specific problem with windows 98 or there is some patch.

    I installed lv 6.1 on a windows 98 system. As I am having problems of stability (frequent crashes, much more than with the former release 6.0), I would like to know if there is some specific problem with windows 98 or there is some patch available.

    My experience with Win98 is that it is not a very stable system, regardless of software used. For example, Win2000 and XP are far more stable than 98. I've had it crash on its own if I leave the computer on for several days.
    I wouldn't recommend running programs for long time (few days) on this OS.
    This being said, can you be more specific in your question. What kind of stability problems did you have, which VIs did you run (if possible post them here), did you change the interrupts and priority levels on those VI, do you get error messages or blue screen....
    Zvezdana S.

  • JAVA WITH WINDOWS FORM?

    Dear all,
    I have a question about java with windows form.
    I have an exe or DLL stand alone program make by visual basic 6.
    Also I have a java software build up with swing.
    Can the exe or DLL program executed inside the Java software?
    It means I click the menu and select a function in the Java software.
    And then the exe or DLL will be executed and a windows form will be pop up.
    But I want to fake like a Java jpanel not a stand alone program run outside the Java software.
    Is it possible?
    Thanks you~~

    All here,
    You can do it ... we can hep!
    Once you choose the exe you want to run, execute it via Process ... about like so:
              String theWindowsProcess =
                                  "notepad.exe";         // OR
    //                            "runtc.bat";                // OR
    //                            "cmd /C start /min /Dc:\\temp runtc.bat";
              Process myProcess = Runtime.getRuntime().exec( theWindowsProcess);BTW ... this is a very common question.

  • Session problem with a form that calls psp web page.

    Hi,
    My unique form is based on table A.
    Within the form I call a stored procedure, which insert data from A into tables B,C,D
    And then within the same form I call a psp procedure using web.show_document('http://server:8080/plsql/psp_procedure?pvId=1001);
    The plsql web page displays data from tables B,C,D for each single pvId.
    The problem is:
    If any commit is issued the psp web page contains no data from B,C,D.
    I suppose I'm working with two different sessions, can I work within the same one?
    Thanks

    Hi,
    I'd say the main problem is that you have both rows with the same name 'Rangée1'. This is not a good idea, especially as the first row is the repeatable row.
    When objects have the same name, you can see the instances in the hierarchy, eg 'Rangée1[0]' and 'Rangée1[1]'. The instances use a zreo-based numbering system.
    By the way you can also see it in the Object > Binding tab:
    So that is when you have multiple objects with the same name.
    The problem with your form is that when objects are repeated (add new instance button), then these new objects also have instances, eg 'Rangée1[0]', 'Rangée1[1]', 'Rangée1[2]', etc.
    So the Acrobat gets confused ;-)
    I have renamed the second row 'Rangée2'. That seems to have solved the problem.
    Here is the form back to you: https://acrobat.com/#d=jcCs7X85xeRYQjvI2Yb*Cw
    Good luck,
    Niall

  • Problem with HR Forms

    Hi,
    I am having problem with HR Forms. I am trying to edit renumeration statement form (Copy of the standard form, with custom infotype fileds).
    One of the Single Fields was spelled wrongly, and I am trying to correct it. I went to the chnage screen, double clicked on the faulty field, changed its name, and pressed 'Transfer'. It asked for a customizing request, and saved it.
    If I again go to PE51, and check the form, the changes I made are not reflecting. Why is this? can anybody help?
    The field I require is P9001-ZCREWNO. But it takes only P9001-zcrew. Is there any limit of 5 characters on length of filed name? (All other changes are reflecting, only this particular change is not reflecting.)
    Thanks
    Krishna
    Edited by: Krishna Kishor Kammaje on Jul 16, 2008 9:49 AM

    Sameer,
    Thanks for the reply. That is already done. I already have the field available in the F4 help of the 'Single Field.
    The field name is ZCREWNO. But when I give this and save it, it says 'Saved'. But if I open again, the stored field name is actually ZCREW  (That is only 5 characters). Because of this, the filed value is not getting populated.
    In Pe51_checktab, filed name is ZCREWNO.
    Thanks
    Krishna
    Edited by: Krishna Kishor Kammaje on Jul 16, 2008 11:19 AM

  • Problem with multiple forms and subview

    I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
    1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
    2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
    3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
    4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
    It seems to be a problem with multiple forms on a page and the subview.
    Do I use these JSF components incorrectly? Any advice?
    Thanks

    The forms are not nested.
    hello.jsp
    <webuijsf:body ...>
    <!-- BEGIN: include header -->
    <div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
    <jsp:directive.include file="Header.jspf"/>
    </div>
    <!-- END: include header -->
    <webuijsf:form ...>
    From above fragment, you can see the header.jspf is outside of the form element.

  • HP 250 G3 - problems with Windows 10 boot

    I have problems with Windows 10 boot on my HP 250 G3. It often shutdown during boot. But boot is ok with Windows 8.1. Please release upgrade that solve this problem.

    SomeoneWithAnHP wrote:
    Guys this might be solution: Turn off your laptop. Disconnect all devices connected to the PC. Remove battery and disconnect from wall. Press the power button at least 20 seconds. Connect back battery and turn on your PC. It should be fixed by now, I did with my Pavilion 14, and both sleep and turning off problems were fixed.re:  Black Screen and Dead keyboard after locking computer. I tried this with my Envy 17t-3200 3D CTO.  Didn't help.  for this computer this means removing the back cover and unplugging the battery wiring harness form the Motherboard. I currently have sleep mode disabled when on AC and am still getting the black screen, dead keyboard lockup.  I really know I'm hosed since even the caps-lock is non-functional. I see this problem more when I'm at work were I tend to Win-L lock the screen when I walk away from my desk.  Seems like locking the computer then letting the screen blank is doing something evil. After I force a reboot, by keyboard backlight forgets it's setitngs and returns to full brightness. If I lock the screen then bring back the computer before the screen is blanked, it seems fine. I don't think there's any way to adjust the screen blanking when the lock screen is up (even my desktop power-saves the monitors after a few minutes on the Lock screen). I'm not sure it's HP or MS that should be looking into this.  My computer is about 3 years old so I can't pester HP with warranty requests. I'm not sure how prevelant this problem is. Are all Pavellions and Envy's having the problem?  Mine has Radeon graphics which was a bit unusual at the time.  I have to install the HP Display driver before any AMD updates or the screen dimming doesn't work (at least with win 7 and 8). Dave.  

  • Problem with Windows 8.1 and Corseca Byte BT headset

    I recently bought a Corseca Byte bluetooth headset.
    The headset works fine with phones.
    Initially when connected to the laptop running windows 8.1 it works well and continues to flawlessly for hours.
    The problem is when the headset is connected to the laptop but there is no audio streaming (e.g paused a movie playback for attending some other job) and resume playback after 10-15 minutes the audio starts stuttering/ becomes choppy. If I switch off the headset
    and restart it works fine unless it lays unused for some time.
    Windows recognizes the device correctly. I've turned off power management for BT devices and tried to update the drivers without any positive result.
    Initially I thought the headset was defective but since it works flawlessly with phones I think it is a problem with Windows 8.1.
    How to solve the issue?

    Hi,
    Have you also tried to disable power management on wireless network connection adapter? Since some OEM computers also combine some features of Bluetooth to wireless network connection adapter.
    This issue can be mostly caused by drivers. Please contact the menufacturer's to see if the latest driver is compatible with Windows 8.1.
    If not, I suggest you find the driver for Windows 8 /7 and install it in compatible mode in Windows 8.1 to see what's going on.
    Also, post back the C:\Windows\Inf\setupapi.dev.log and event log you can find in event viewer related to this issue here for our research.
    Kate Li
    TechNet Community Support

  • Problem with windows and my monitor in after effects

    HI . before any thing excuse me for speeking english.
    i have a problem with windows in after effect in my monitor
    my monitor is 15.6 and resolution is 1366*768
    for example when i open interpret footage window i can't see that complete and amount of size window dont visible.
    Thanks.

    Your system doesn't meet the requirements and that is that. AE has required 900 pixel height ever since CS4. Other than changing your screen res or shuffling around windows there is nothing you can do.
    Mylenium

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

Maybe you are looking for