Retrieve the width/height of the Applet in form 10g

Dear members:

Is it possible that I could capture width & height of applet, which has been formsweb.cfg the runtime - appreciate your suggestion.

Thank you.
Adam

Hello

It is a solution with A Java Bean


François

Tags: Oracle Development

Similar Questions

  • How to get the computer name - forms 10g

    Hello

    How to get the name of the server or some other identification forms 10g Application?
    We have several servers and host load balancing redirects user to the X Server and the forms application, I have to get information from the server to which the user was redirected? Is there a way how to do?

    It can be the name of the server, Ip or other identifying information...

    Thank you.

    As the client that connects to the database is the application server

    CHE_TEST@tcp_asterix_impl> select sys_context('userenv', 'host') from dual;
    
    SYS_CONTEXT('USERENV','HOST')
    ----------------------------------------------------------------------------
    LINZ\CHE-WS
    

    Should return you the host name of your application server.

    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#SQLRF06117 for more information you can get with sys_context

    see you soon

  • Open the files in form 10g

    I used the code in forms 6i to open any application below.
    I have a table with the path of the application and the file ext. It is for each user. Because the installation of application in the Office of the users in the different path.
    Depends on the position of the file app_path will be assigned.

    FNAME: = "APP_PATH \\cveserver\cve-data\hybrid_new\" | : CPF. CPF_SOURCE;
    APPID: = DDE. APP_BEGIN (FNAME, dde.app_mode_normal);

    I converted the fomrs 6i to 10g. How can I realize this now.

    Try this:

    Client_Host('cmd /c start "" "c:/my_doc.doc"');
    

    François

  • Open word, which is stored in the database: Oracle Forms 10g

    Hi all

    I created an application in the generator of forms of oracle 10g. He got different modules.

    I created a different user manual for each module in Microsoft Word.I to store word documents in the database and need to open this document of the application user's manual. I want to add a help button in the toolbar of the application, so that I can keep the name of the file in the toolbar of the separate modules.

    If I call the word using an annual, I need to save documents in the same order if I'm going to implement the same software based on some other clients, right? So please suggest me some other way and pls share the code...

    Its urgent...

    Thanks in advance...

    What warning? How can I help you if you post just a few lines of code? Do you think we could "guess" your code?

    Please, send ALL the code.

    François

  • Duration of sizing of the application windows (forms 10g)

    Hello
    Last question. I have a few forms which were in client/server 6i and have been upgraded to 10g. When I run applications in 10g, all the elements will not match the screen. 6i Runtime, they used to fit all objects when executing very well.

    Without having to change the settings of window on each form, I was wondering if there was a way to change a running value in a config file that would resize the size of the immediate window.

    I tried to change the "Width" and "Height" parameters on the formsweb.cfg file, but apparently not to resize it. If there is a config file or something that could do this, it would be much easier. I am trying to save me the work of having to go to 130 + forms and change the property window so that it displays all of the objects. I hope someone can tell me the file and the option that would do it.

    Thank you
    Chris

    We have a process of preform in the library of the PLL that begins each form that defines the size of the form to the size of Window0 if it is smaller and reduced the size of the form to 110 percent of the size of Window0 if the window is too large.

    Each form calls the process of PLL_Pre_Form of the trigger of the preform.

    The process works the same, whether in Client/Server forms or Web forms and Web forms, the process increases the height and the width a little. Here is the code:

     If Get_Application_Property(User_Interface) = 'WEB' then -- Web forms
    If get_window_property(forms_mdi_window,title) is null then
    --SeparateFrame=False:  running inside browser window.
    W := W + 8;
    H := H + 98;
    Else -- SeparateFrame=True
    W := W + 16;
    H := H + 132;
    End if;
    End if;

    .. .and the coordinate system for our forms is set to true, Pixel.

  • Record is not inserted into the transparent Table Forms 10g

    Hi all

    I have the built in 10g (10.1.2.0.2) form.

    Basically, the form has 2 blocks.
    1 block with a single element, where we enter a value and press on enter (this place you block2 and run the query).
    Block 2 (tabular) will get the records. This block2 have now 3 columns (caseid, userid, date).

    Now when I insert a new record, I just need to get the caseid only. And username and date must be filled in automatically.
    I can fill fields username and the DATE.
    And when I enter a value element of the block 2 caseid and then Control + S(to insert the record and Save the transaction),.
    I get the message saying FRM-40400: transactions: 1 applied and saved records.
    But when I ask again for the same thing, I do not have is the record inserted into the table.
    Why is this happening?

    Help please...

    Drop the trigger for INSERTION WE (do not comment code or write NULL) and move your code to INSERT before trying.

    -Clément

  • I want to stop the loop button shape 10g

    I want to stop a loop in the forms of pushbutton 10g it's like (SwingWorker() in java) (DoEvent() in .net)
    The problem in forms 10g that when you start a loop shape freezes and you are unable to broadcast any button on the form, I found the solution for this in form 6i by package d2kwutil * WIN_API_UTILITY. InterruptCheck (hButton) *.
    But in 10g I can't find a solution, Please help > > > > >


    declare
    hButton PLS_INTEGER;
    Start
    : interruptcheck.counter: = 0;
    hButton: = get_item_property('INTERRUPTCHECK.) PB_OFF', WINDOW_HANDLE);
    go_item ('interruptcheck.loopcount');
    set_item_property('INTERRUPTCHECK.) PB_OFF', ENABLED, PROPERTY_TRUE);
    set_item_property('INTERRUPTCHECK.) PB', ENABLED, PROPERTY_FALSE);
    set_application_property (CURSOR_STYLE, 'HELP');
    set_application_property (CURSOR_STYLE, 'WAIT < d2kwut60 >');
    I'm in 1.:interruptcheck.loopcount LOOP
    If WIN_API_UTILITY. InterruptCheck (hButton) then
    "exit";
    end if;
    : interruptcheck.counter: = i;
    synchronize;
    end loop;
    set_item_property('INTERRUPTCHECK.) PB_OFF', ENABLED, PROPERTY_FALSE);
    set_item_property('INTERRUPTCHECK.) PB', ENABLED, PROPERTY_TRUE);

    set_application_property (CURSOR_STYLE, 'DEFAULT');
    end;

    Published by: wael amar on May 1st, 2010 23:03

    OK, here's a unit test to work.

    The idea is taken from an article in oracle magazine (I don't have at hand, she, so I tried to restore it and "memory".) I remember the original was German doag-magazine and was written by Gerd Volberg).

    How to make the loop:

    PROCEDURE PR_DO_THE_LOOP IS
      nNumberInOneStep NUMBER:=2;
      tm               TIMER;
    BEGIN
         DEFAULT_VALUE(0, 'GLOBAL.INDEX');
      IF :GLOBAL.INDEX=0 THEN
           -- Didn't run yet, determine the max count
           :GLOBAL.MAX:=10000;
      END IF;
      LOOP
           -- Do the looping stuff
    
           -- Decrease counter
           nNumberInOneStep:=nNumberInOneStep-1;
           -- Increase globale counter
           :GLOBAL.INDEX:=:GLOBAL.INDEX+1;
           -- Exit conditions
           EXIT WHEN nNumberInOneStep=0;
           EXIT WHEN TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX);
      END LOOP;
    
      -- reset index at end
      IF TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX) THEN
           :GLOBAL.INDEX:=0;
      ELSE
           -- start timer for next iteration
           tm:=CREATE_TIMER('TM', 10, NO_REPEAT);
      END IF;
    END;
    

    The WHEN-TIMER-EXPIRED-trigger

    IF :GLOBAL.INTERRUPTED='Y' THEN
         MESSAGE('Interrupted at index ' || :GLOBAL.INDEX);
    ELSE
         PR_DO_THE_LOOP;
    END IF;
    

    The WHEN-button-PRESS-trigger the button stop

    :GLOBAL.INTERRUPTED:='Y';
    

    The WHEN-button-PRESS-trigger on 'start' - button

    :GLOBAL.INTERRUPTED:='N';
    PR_DO_THE_LOOP;
    
  • I want to develop an application Live TV for BlackBerry PlayBook. Please guide where can I find the specifications such as width, height, and icon sizes and design factors etc.

    I want to develop an application Live TV for BlackBerry PlayBook. Please guide where can I find the specifications such as width, height, and icon sizes and design factors etc.

    Guideleines of the user and the specifications on the sizes of icons etc to BlackBerry PlayBook OS Applications

    OK, I downloaed the pdf below for UI guiderlines

    UI_Guidelines_BlackBerry_PlayBook_Tablet_2_1.PDF

    Ok

  • Photoshop (20151209.r.327 x 64) CC (10 Windows) cannot change the width, height or resolution creating new file

    When I started Photoshop CC (20151209.r.327 x 64) (Windows 10) and create a new file, I can't change the width, height, or resolution.

    I tried to reset the settings of Photoshops (Ctrl + K-> reset settings) without success.

    Any ideas?

    Concerning

    Simon

    SystemInfo:

    Adobe Photoshop version: 2015.1.1 20151209.r.327 2015/12 / 09:23:59:59 CL 1055659 x 64

    Operativsystem: 10 64 bitar Windows

    Version: 10 eller later

    Systemarkitektur: AMD Datorfamilj:15, Modell:1, Version: 2 med MMX, SSE-heltal, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX FP

    Antal processorer fysiska: 3

    Antal processorer logiska: 6

    Processorhastighet: 3311 MHz

    Inbyggt minne: 8094 MB

    Ledigt minne: 4389 MB

    Minne having for Photoshop: 6973 MB

    Minne som anvands av Photoshop: 70%

    Basic but often made mistake, tried restarting your computer?

    Try it once and see if it still works very well.

    ~ Assani

  • SWFLoader and access the width/height

    Hello

    I have an AS3 swf I am trying to integrate within a Flex 3 application.  The problem is that I need to know the size of the width/height available from inside the swf file.  When the swf file is embedded in a Web page, I can easily access it by stage.stageWidth, but in the case of an embedded swf, it doesn't because the scene is of the entire application and not only my swf.  Is anyway in my swf embedded to understand these values?


    Thank you!
    Christie

    If the embedded SWF has been loaded via SWFLoader, then this.parent.parent.parent.width (and height) of the file integrated SWF will give you what you want.

  • All webcam width/height and determine the connection type

    Hi, two quick questions:

    1. is there a way in ActionScript to determine what type of connection is used (e.g., P2P or FMS)?

    2. is there a way to set the width/height of the image of the webcam? I currently have to extend the WebcamPublisher class to access the instance of _camera and use the Camera.setMode () method, but it seems that that has no effect whatsoever.

    Thanks in advance,

    Michiel

    PS: I am aware of the captureWidthHeightFactor method, but I really do not like this approach, as it is not clear what dimensions are used for the video. I would like to determine the dimensions of myself, as when you use the Camera.setMode () method.

    For your share of width and height, you can use APIs of resolutionFactor in webcamPublisher as captureWidthHeight that API is deprecated. Height and the default width is multiplied.

    And again, if you want to set your own native height/width, since you already are subclassing WebcamPublisher, subclass just the createMyStream function and add your native width and height. See this function in the source code 9 WebcamPublisher player provided.

    One thing I forgot to mention in the last post, you have P2P with player 10 and you must use the Player 10 SWC for any verification of P2P. Player 9 will always be FMS.

    I hope this helps.

    Thank you

    Hironmay Basu

  • How to determine the width/height of the text

    Hello.

    I created the layout of text format and text flow.

    I must now determine the width/height of the container is adjusted exactly to the text.

    Is it possible to get the width/height of the text before creating the container controller?

    Thank you.

    It depends on what effect you are trying to get. If you want the text to go and not wind, you can set the width and height "Nan". To get the actual width and height that has been used, you call getContentBounds(). But if you wanted the text, you must select a thickness to wrap up in and then to get the required width used account height. If the latter case to work, you could create a controller with a width you specify, but let the height as "NaN".

    -robin

  • How to get the size of the Applet in my form?

    I am in the form of Oracle 11 g, I want to focus my use of the window the code below:
      v_app_width := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH));
      v_app_height := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,HEIGHT));
      v_win_width := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,WIDTH));
      v_win_height := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,HEIGHT));
     -- message("width" ||v_app_width);
      SET_WINDOW_PROPERTY(p_window_name,POSITION,(v_app_width- v_win_width) / 2,(v_app_height - v_offset - v_win_height) / 2);
    This works for 6i, but does not not for 11g. As
     GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH)
    Returns the value 0.
    But once this line of message without comment, the next shape call this procedure of Center window works fine.

    My problem is similar to this: http://www.orafaq.com/forum/t/149809/2/ but there is no solution.

    I also found this: http://docs.oracle.com/cd/B14099_19/winitan.1012/relnotes.1012/relnotes/forms.htm
     5.1.4.1 GET_WINDOW_PROPERTY Returns 0 on Microsoft Windows
    
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_HANDLE) returns zero even with separateframe=true. Oracle Forms Online Help states that this should work on windows platform. This is incorrect as this Built-in does not support MDI. 
    [Edited 3/12 16:50] Today, I found this code does not work for my first form (login form) when the application is launched. After login, the forms of rest can be focused very well. Don't know what is the reason.

    So, if this does not work, how can I get the size of the applet and focus my window?

    Published by: frank1018 on March 12, 2013 16:53

    If you want to Center your window when MDI is enlarged...

    first create timer... under a time-new-forms-example...

    Declare     timer_id   Timer ;Begin       timer_id := Create_Timer( 'laf_timer', 50, NO_REPEAT ) ;end ;
    

    Use this solution in what timeout... because it will not perform this procedure at a time new forms instance or preform triggers...

    declare     mh number;     rh number;     mw number;     rw number;begin                       If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
    
                             mh     :=     get_window_property(forms_mdi_window,height);                    mw     :=     get_window_property(forms_mdi_window,width);                    rh     :=     get_window_property('yourwindowname',height);                    rw     :=     get_window_property('yourwindowname',width);                          set_window_property('yourwindowname',position,(mw/2)-(rw/2),0);  /* i make 0 for the value of Y.. for i liked it on the top but you can change it too */
    
              end if;
    
    end ;
    

    Published by: ck on 14 March 2013 02:44

  • How to access a file via the Applet and JavaScript

    I want to copy a file on the client computer from one place to another place for a Java Bean.
    To do this, I created an applet and a Java Bean as follows:
    import java.applet.*;
    public class FileUtils extends Applet {
        public void copyFile(String src, String dest)  {
              //
        }
        private String source, destination; // setters/getters are there of course
        public void copyFile(ActionEvent actionEvent) { // Bean
            FacesContext fctx = FacesContext.getCurrentInstance();
            ExtendedRenderKitService erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
            String command = "var s = '"+ source +"'; var d ='" + destination +"'; " +  " document.fileUtilsApplet.copyFile(s, d); ";
            erks.addScript(fctx, command);
        }
    Then I added the APPLET tag that references the class above in the page fragment:
                    <f:verbatim>
                        <applet code="FileUtils.class" name="fileUtilsApplet" height="30"
                                archive="/context-root/Applet.jar"
                                width="200">
                        </applet> 
                    </f:verbatim>
    The Java Console, I see that the jar is downloaded successfully, but when executing code in the bean, the JavaScript code seems not to do anything, as if the public "copyFile" method has not been called at all and no output in the Console Java as well.

    Note that I already follow the guidelines at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf.

    You have any ideas?

    Well, as I said before, you must explicitly grant access to the file system to the applet. See http://docs.oracle.com/javase/tutorial/deployment/applet/security.html for more information and http://www.ccp4.ac.uk/jwc/image_applet/Policy_file_examps_ccp4.html for how to do this.

    Timo

  • Class not found in the applet using 2 jar files

    I have an applet that worked for many years as a stand alone or connecting directly to a database of derby on my home server. I just changed it to connect to MySQL on my ISP via AJAX and PHP server.

    I am now getting a class not found error in my browser, probably because I'm stuffing by the class path.

    The HTML code that I use to call the cmdlet is:
    <applet code="AMJApp.class" 
    codebase="http://www.interactived.com/JMTalpha" 
    archive="AMJ014.jar,plugin.jar" 
    width="500"height="500" 
    MAYSCRIPT style="border-width:0;" 
    name="jsap" id="jsap"></applet>
    The AMJ014.jar contains the applet and the support of class files.

    The error message is strange for me because it refers to a class, I noticed on another web page, but that has nothing to do with my applet. In any case, the message in its entirety is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    886473 wrote:
    Nice reference - love these movies!

    ;-)

    I recompiled those classes with the following commands:

    javac -source 1.6 -target 1.6 -Xlint:-options -classpath "C:\Users\MJHIPP\Documents\Current\Java\CodeLocal\AMJ110920\plugin.jar";"." JSHelloWorld3.java
    javac -source 1.6 -target 1.6 -Xlint:-options -classpath "C:\Users\MJHIPP\Documents\Current\Java\CodeLocal\AMJ110920\plugin.jar";"." AMJApp.java
    

    JSHelloWorld3 always works for me and AMJApp still does not work, but the error message has changed:

    I got different results. The JSHelloWorld3 now works for me (and AMJApp still does not work).

    java.lang.UnsupportedClassVersionError: AMJApp :
        Unsupported major.minor version 51.0
    

    >

    Java Plug-in 10.0.0.147
    Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
    User home directory = C:\Users\MJHIPP
    ..
    

    BTW - I was using a JRE 1.7 until I realized it couldn't run one of my projects for pets, DukeBoxand returned to 1.6. Previously, I had read in a forum that the current version at this time there was fundamentally flawed. For this reason I have will perform purely using JRE 1.6 for the moment. Versions available for use by applets and applications of Java web start. can be configured in the Java Control Panel.

Maybe you are looking for

  • Problem with firewall AirPort Extreme.

    HI, I need help. I recently bought an AirPort Extreme router. The router doesn't let me download the movie on the web Icdrama.se. I'm trying to set the firewall in bridge mode, but my router automatic guard return to DHCP and Nat mode. I wonder how c

  • El Capitan is always full of problems?

    Looks like El Capitan's full of problems still? I want to improve, but I'm quite scared!

  • address ipvn/IP begins with 169 instead of 162

    Well, I have a HP all-in-one 20 BO13w which had win 8 OS and a client wanted to win 7 32 bit on it so I installed a new copy with product and has been authenticated by Microsoft and when I plugged the internet both ethernet and wireless, everything w

  • Vostro 1000 Audio in the problems section

    Hello Ive just bought a Vostro 1000. Ive has never tried plugin audio device through the line in socket but theres no sound on the computer speakers. Ive checked all the options audio in Vista Home Basic, but all what you have in the speakers/headpho

  • TextField: begin the text to lowercase

    Is it possible to configure a TextField element to begin with a lowercase character without changing its inputMode?