FBean.Register(classname) only succeeds the first time classname is used?!

This is not a question, it is a futile cry of helplessness, such as a 9 month old might make when they strike their head on a rock.
Consider:
'BLOCKA'.WHEN-NEW-BLOCK-INSTANCE:
FBean.Register_Bean('ITEMA', ALL_ROWS, 'my.TestBean');'BLOCKB'.WHEN-NEW-BLOCK-INSTANCE:
FBean.Register_Bean('ITEMB', ALL_ROWS, 'my.TestBean');And what happens? If BLOCKA is 'first', ITEMA is populated with the TestBean, but BLOCKB's ITEMB is not. Conversely, if BLOCKB is first, ITEMB is populated with the TestBean, but BLOCKA's ITEMA is not.
Happily, it doesn't matter to me today. But it would be fair to say that Forms and I are becoming estranged on a fairly brief aquiantance.

Thanks Francois,
I am certainly feeling a bit alone in the Oracle Forms enhanced JavaBeans world, trying to get a PROPERTY_CHANGED_EVENT to bubble up from my bean into my form. [This Google Query|http://www.google.com.au/search?q=FBEAN+PROPERTY_CHANGED_EVENT&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a] for "FBEAN PROPERTY_CHANGED_EVENT" (both of which would appear on the FBEAN.ENABLE_EVENTS line) finds only my poor posts from yesterday.
I really, really dislike the legacy Forms JavaBeans approach. A JavaBean is all about properties and state. Something simple like 'background-color' is a good example. You should be able to simply:
FBEAN.SET_PROPERTY('My_Bean_Area', 'background-color', '#FFFFF');
which is equivalent to:
bean.backgroundColor = "#FFFFFF";
... and the same bean class is usable in both Java and Oracle Forms.
With the legacy Forms JavaBeans appraoch, you've got to write a wrapper class, AND you'd be forced to write something semantically nonsensical like:
:success = GET_CUSTOM_PROPERTY('My_Bean_Area', 'SETBACKGROUNDCOLOR', '#FFFFFF');
and the hapless monkey who's come to fix your broken code can't wrap his mind around why your'e using a getter to mutate the bean (or why you're returning a value from your setter, for that mattter).
(PS. I do not accuse YOU of such crimes, but i have inherited a codebase which would shock you. and the legacy Forms JavaBeans approach is largely to blame).
Anyhow. I guess I had better try to extract some sense from GET_CUSTOM_PROPERTY and friends instead of whining ...
cheers,
David.

Similar Messages

  • Applications are mentioned free, but when we start downloading one dollar is charged in my credit card, but only for the first time when i switch on and use it for the first time one dollar is charged. and from next application it is free. why?

    Applications are mentioned free, but when we start downloading one dollar is charged in my credit card, but only for the first time when i switch on and use it for the first time one dollar is charged. and from next application it is free. why?

    Kindly inform any email id or toll free number to contact apple for your below answer, Mr.King_Penguin
    About receiving my credit card being debited for Free App Store Application downloads,
    It should be within a few days, but it might vary a bit by bank/provider :
    I am in India, if the bank don't refunds , what to do?
    Rajagopal.pngr :-  It is only a holding charge, it is not a permanent charge. If it isn't refunded within a few days or so (and it quite possibly won't be over a weekend) then you can query the charge with Apple.

  • Delay on playing an instrument (only at the first time)

    Hello,
    I'm new to Mainstage and have the following problem:
    Always I open my concert, there is a small delay in all instruments in all patches. But ONLY at the first time, I play the instrument (hit the key). For the rest of the performance everything works fine ... How can I get rid of that??
    My work-around right now is, to mute the Main Audio at the soundcheck and play every instrument/patch once ... :-(
    Thanks for your support and greets from Germany
    ... Joonas

    Thanks for your answers first of all !
    At the end I found the solution looking at the Note:307167.1 on Metalink:
    Discoverer Plus 10.1.2 Fails with ORA-1017 Error On First Login Attempt Then Works On Second Attempt
    This note is very useful but into the solution the point 3 is not correct !
    3. Modify the servername parameter to indicate the fully qualified servername.domain
    Example:
    An httpd.conf setting of: ServerName my_servername.mydomain.com should match a Discoverer Plus URL like http://my_servername.mydomain.com:7778/discoverer/plus
    I had this problem both with Viewer and Plus...so instead to change the server name parameter (into the Apache/Apache/conf/httpd.conf file) with my complete URL (http://gnvdev.ote.gr:7779/discoverer/plus), I just write my right server name:
    Example
    After the installation of the Discoverer 1og server, into the httpd.conf file it was written automatyically: ServerName gnvdev
    I just modified in ServerName gnvdev.ote.gr and both Viewer and Plus started to work perfectly at the first time.
    I hope that this hint will be useful for you and others in the Discoverer forum !!!
    Best Regards
    Alex

  • Execute command only at the first time?

    English:
    Hi would like to take an application a particular command only at the first time run so he is no longer running for the 2nd time ! How to do that ? thanks Hollo1001
    German:
    Hallo möchte bei einer anwendung einen bestimmten befehl nur beim ersten mal ausführen so das er beim 2. mal nicht mehr ausgeführt wird! Wie macht man das? MFG Hollo1001

    use a boolean:
    var alreadyExecuted:Boolean;
    if(!alreadyExecuted){
    alreadyExecuted=true;
    // rest of once only code

  • I bought this very nice iMac. The first time I ever use a Apple product. Can someone please tell me where the delete key is on the keyboard. I cannot think for one moment that Apple did not provide for such a key. Please help.

    I bought this very nice iMac. The first time I ever use a Apple product. Can someone please tell me where the delete key is on the keyboard. I cannot think for one moment that Apple did not provide for such a key. Please help.

    The delete key does a backward delete because it is the natural way to delete while typing. May not be to you and the millions of youngsters who grew up with windows computers. When you are typing and want to delete that which you just typed you are already at the end and you delete back to where you want to re-type. When you go back to a document and want to delete a selection, you have to go to the end of the selection instead of the beginning. it's just the way its always been done on macs. it takes some getting use to.
    If you select text to be deleted with your mouse then the delete key deletes the selected text. same for either delete key method.
    It is not convenient when you tab to fields in a form. That why fn-delete does a forward delete.
    Macs have a couple of keyboards. The small "wireless keyboard" only has the (backward) delete (fn-delete forward). The larger "Apple Keyboard with Numeric Keypad" has both a Delete (backwards) key beside the = abd it has the "delete >" key in the groups with fn, home, end, Pg up and Pg dn. This keyboard is best for users who have switched from windows or are familiar with the windows forward delete.

  • Time Machine back up entire drive the first time it is used?

    WWhy doesn't Time Machine back up the entire drive the first time it is used?

    If the size of the backup fails to match the size of the used space on the backed up disk drive, it could because of the fact that it only backs up what is needed for recovery of the disk drive. It does not backup Trash, cache files or swap files which could account for the difference.

  • In Pages, I have white letters in a black background.  This is the first time I have used Pages.  Is this bizarre format the default?

    In Pages I have white letters in a black background.  I would like to have the normal black letters on a white background.  This is the first time I have used Pages.  Is this the default format?

    Should we guess what version of Pages? On either Mac or iGadget?
    It helps to tell us.
    Peter

  • I want to save with alt s in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.

    Question
    I want to save with <nowiki><alt><s></nowiki> in the program Exact Online. This function is not working. this is the first time that i use this program with firefox.
    '''edit''', mod escaped the '''<nowiki><s></nowiki>''' to prevent line through question

    Submitted too soon... To change your accelerator key for accesskeys to Alt alone (or a different combination), you can change a setting using Firefox's about:config preferences page.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''ui.k''' and pause while the list is filtered
    (3) Make sure '''ui.key.generalAccessKey''' is set to its default value of -1 (or right-click and choose Reset if it is not).
    (4) Double-click '''ui.key.contentAccess''' to open a dialog box to change the value from its current default (on Windows, 5) to your choice of the following:
    * 2 = '''Ctrl''' (Fx default on Mac thru Fx13)
    * 3 = Ctrl + Shift
    * 4 = '''Alt''' (IE/Chrome/Safari default on Win/Linux)
    * 5 = '''Alt + Shift''' (Fx default on Windows & Linux)
    * 6 = '''Ctrl + Alt''' (Fx default on Mac from Fx14) (Chrome/Safari default on Mac)
    * 7 = Ctrl + Alt + Shift
    This should take effect as soon as you OK the dialog, so you can experiment in a separate tab. Other combinations are available if you want to try them. See http://kb.mozillazine.org/Ui.key.contentAccess (inaccessible at the moment?)

  • PDF only open the first time

    HI
    I have a problem with the PDF export, of any type of document; the situation is complicated in the case of documents which provide for the printing of batches of transactions. Let me give an example.
    I open a delivery customers and I click on the icon PDF: SAP opens the pdf of Transactions batch and then the standard form of delivery; simultaneously saves both pdf folder of images.
    If, once closed the pdf, I click again icon PDF (or after creating a new document), SAP only opens the transaction reports; the report of delivery is not open on the screen but is only saved in the attachments.
    In order to view again I have to close the form and reopen it.
    Is the first time that the next time, the log file I have the message "Invalid input parameter for DfltSeq", but the first time you open the pdf.
    Does anyone know help me to understand why:
    1. SAP does not reopen both reports from the second time
    2. the pdf are saved once in the path of the images, and after the path of attachments.
    Thanks
    NL

    Hi Maggie,
    can you tell me if there is something official SAP (Notes or other) with the problem and that SAP will provide a solution?
    I have the SAP 9.0 PL 14 and I do not have the problem.
    the customer have 9.0 PL 16 and has the problem.
    Thanks
    Nora

  • Failed to connect to database ONLY at the first time

    Hi all, I installed Discoverer 10g version and I'm using an Application User to connect to the server where's the Db is installed.
    Every time I try to connect to the server with Discoverer Viewer or Desktop I have a curious behavior....
    ALWAYS but ONLY the first time I try to connect I have the following error :
    - Failed to connect to database - Unable to connect to Oracle Applications database: invalid username/password.
    If I try to re-connect again the second time it works perfectly !!....so, I think, there's nothing related with my .dbc file.
    I tried also to write the ':' at the end of the user name....but it didn't work.
    Into the pref.txt file doesn't exist a parameter like DefaultUserTypeIsApps to set....
    Anybody have had the same "strange" behavior and found a solution or workaround ?
    Thanks in advance
    Alex

    Thanks for your answers first of all !
    At the end I found the solution looking at the Note:307167.1 on Metalink:
    Discoverer Plus 10.1.2 Fails with ORA-1017 Error On First Login Attempt Then Works On Second Attempt
    This note is very useful but into the solution the point 3 is not correct !
    3. Modify the servername parameter to indicate the fully qualified servername.domain
    Example:
    An httpd.conf setting of: ServerName my_servername.mydomain.com should match a Discoverer Plus URL like http://my_servername.mydomain.com:7778/discoverer/plus
    I had this problem both with Viewer and Plus...so instead to change the server name parameter (into the Apache/Apache/conf/httpd.conf file) with my complete URL (http://gnvdev.ote.gr:7779/discoverer/plus), I just write my right server name:
    Example
    After the installation of the Discoverer 1og server, into the httpd.conf file it was written automatyically: ServerName gnvdev
    I just modified in ServerName gnvdev.ote.gr and both Viewer and Plus started to work perfectly at the first time.
    I hope that this hint will be useful for you and others in the Discoverer forum !!!
    Best Regards
    Alex

  • Setting a variable values only in the first time

    Hi all,
    I have a problem regadring PL-SQL coding..actually its something related to programming logics.
    I'm calling a method (modify) from client application and which calls several other methods. (check_update and update)
    method update updates the database and then calls some other method. (modify_something) That method modify_update calls check_update and and update methods.
    Also i have a global variable (var_1) defined in the packages level which is used for some condition checking in update method. But unfortunatly i have to change the value of that variable in modify_something method. So the original value of the var_1 is lost.
    Is there anyway to keep the original value of this variable...please dont tell that i have to stop changing the variable value in modify_something its NOT possible at any cost.
    Expecting some help from PL-SQL gurus..
    thanks in advance..
    /garuka

    Hi,
    I know about the concept of scoping. The problem here is not that.
    The problem is how i change a value of a variable only once when it calls for the first time and stop changing the value for the other times.
    If i explain it little more its like this.
    I want to change the value of the var_1 when it check_modify calls for the first time. and use if in some other methods. But var_1 is modified by some other client methods which are called by update method which is called after check_update method.
    So my problem is if i use the solution samir told how i set the value to that var only once when it calls in the check_update for the first time and then to stop setting it during other method calls and within check_update method which calls recursively.
    Simply do the variable assignment only in the first request only..
    /garuka

  • JLabel with HTML visible only for the first time

    I've implemented a really simple applet:
    public class TestApplet extends JApplet {
      @Override
      public void init() {
        try {
          SwingUtilities.invokeAndWait(new Runnable() {
            public void run() {
              JPanel topPanel = new JPanel();
              topPanel.setLayout(new BorderLayout());
              getContentPane().add(topPanel);
              JLabel labelHello = new JLabel("<html>Hello World!</html>");
              topPanel.add(labelHello, BorderLayout.NORTH);
              JLabel labelHelloNoHTML = new JLabel("Hello World - without html!");
              topPanel.add(labelHelloNoHTML, BorderLayout.SOUTH);
        } catch (Exception e) {
          System.err.println("Couldn't initialize GUI");
    }And there are two html pages, both having the same applet and a link referring to each other:
    index.html
    <html>
           <head><title>Applet</title></head>
           <body>
                  <div><a href="link.html">Link</a></div>
                  <div>
                        <applet hspace="0" height="375" align="left" width="600" vspace="0" mayscript="" alt="GetJava" codebase="./"
                        code="com.test.TestApplet" name="TestApplet"></applet>         
                  </div>
           </body>
    </html>link.html
    <html>
           <head><title>Applet</title></head>
           <body>
                  <div><a href="index.html">Link</a></div>
                  <div>
                        <applet hspace="0" height="375" align="left" width="600" vspace="0" mayscript="" alt="GetJava" codebase="./"
                        code="com.test.TestApplet" name="TestApplet"></applet>         
                  </div>
           </body>
    </html>Now when I navigate to index.html the applet shows correctly both labels but in case I jump to link.html the applet shows only the second label i.e. Hello World - without html! . This seems to be specific to Java version 1.6.0_21 and 1.6.0_22, it was working properly in 1.6.0_17. Is anyone else experiencing similar issue or am I missing something?
    Edited by: user13135196 on Nov 25, 2010 4:33 AM
    Edited by: Slavek Tecl on 25.11.2010 13:12

    I am having this exact same issue. I have a JLabel with <html> for superscript in my JApplet. The first time I run my applet it displays fine. All subsequent times (refresh the page, or close the tab then open again) the JLabel with <html> doesn't show. This issue does NOT occur in the Eclipse Applet Viewer, but does occur with Google Chrome9 and IE8.
    I spent forever checking my methods and changing things trying to figure out why all the other labels show. Never would have guessed <html> in a JLabel would make it not display. This is terrible bug. Please fix ASAP.

  • [Solved] DVDs and CDs only work the first time I put them in

    First lets get this straight before it is asked later on down the line. I am a 6 year Linux user and 2 year Arch user. I am currently using xfce4 and thunar as my file manager with thunar-volman installed. This has been a problem for the past year or so. I use my laptop most of the time (also Arch 64 and working like a dream) so I only try fixing it every so often to no avail.
    I can put in a CD or a DVD and play them with VLC. Here's the catch: after I eject the CD/DVD and put in another one I can't play it or find it. The first time I put one in I even get an icon on the desktop. I don't think it's reasonable to have to reboot everytime I want to play another DVD (time wasted by constant rebooting is one of the very long list of reasons I don't use Microshaft products). I'm stumped, I can't be the only one, but my forum searches yield no treasures.
    Last edited by astrozombie (2010-02-03 01:00:15)

    Thanks for trying, however, I posted what I use for a reason. I am using VLC, and I am a minimalist so I don't want a bunch of programs for doing the exact same thing. VLC is the only player for Linux that plays MTS files out of the box, so I'm not interested in switching or adding another.
    Anyways, it's irrelevant because as I said before, thunar mounts it correctly the first time I put in a DVD or CD and displays an icon on the desktop for the disk. Therefore the problem is most likely hal related, since this began about the time we switched to hotplugging, and besides this I love hotplugging so I am also not interested in disabling that (who know what problems I'll introduce for my MAC keyboard and webcam if I do that). Yes I've read the hal and dbus wikis.
    I can even get a USB CD writer to work with xfburn, however it's a relic and I think that's a sorry work around when I have internal drives that, in theory, work just fine. I wonder if it has anything to do with the drives being IDE when I used the SATA install option on the install disk (I did a fresh install last week) since my hard drives are SATA.

  • My AS3 buttons only work the first time

    I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
    The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played.
    The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere.
    Totally doing my head in trying find a solution and if anyone can help and show me what I'm doing wrong that would be really really helpful. Here's the code I used for the buttons...
    stop();
    function mainBtnOver(event:MouseEvent):void {
    event.target.gotoAndPlay("over");
    function mainBtnOut(event:MouseEvent):void {
    event.target.gotoAndPlay("out");
    ///////// INDIVIDUAL BUTTON CLICK FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {
    gotoAndPlay("01Movie");
    function mainBtn2Down(event:MouseEvent):void {
    gotoAndPlay("02Movie");
    function mainBtn3Down(event:MouseEvent):void {
    gotoAndPlay("03Movie");
    function mainBtn4Down(event:MouseEvent):void {
    gotoAndPlay("04Movie");
    function mainBtn5Down(event:MouseEvent):void {
    gotoAndPlay("05Movie");
    ////////// Button 1 Listeners
    mainBtn1.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener(MouseEvent.CLICK, mainBtn1Down);
    ////////// Button 2 Listeners
    mainBtn2.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener(MouseEvent.CLICK, mainBtn2Down);
    ////////// Button 3 Listeners
    mainBtn3.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener(MouseEvent.CLICK, mainBtn3Down);
    ////////// Button 4 Listeners
    mainBtn4.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener(MouseEvent.CLICK, mainBtn4Down);
    ////////// Button 5 Listeners
    mainBtn5.addEventListener(MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener(MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener(MouseEvent.CLICK, mainBtn5Down);
    I'm sure it's me doing something very stupid - I'm very new to AS3. Any help much appreciated.
    Thanks :-)

    If the frame labels you are going to have movie clips that have your presentation content, you should use gotoAndStop("frameLabel") instead of gotoAndPlay("frameLabel"). There's no need to play the main timeline when you go to and show any of these movie clips. I'm not sure if this is your issue, though... Using your code, I had no problems.
    Also, you can set up your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT events. This isn't necessarily better, but just another method. Although I might use other ways to animate a button, I do like to reduce the code it takes to use the buttons in an interface, and only use CLICK in most cases.

  • HT201320 Setting up mail only works the first time and then fails...

    Hello,
    I own a new iPad 4.
    Setting up my own mail accounts works great for the first time (I see new mails and I can sent mails), but the second time I open the Mail-App it complains about my mail settings.
    Mails are provided from my own domain. Using other mail clients I don't have issues.
    Setting is based on IMAP ssl/port 993 and ssl/578. iPad runs on IOS6.1.
    Do you have an idea why?
    Carsten

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

Maybe you are looking for

  • How to populate data from bol to assignment block.

    Dear experts, I saw on sdn discussion similar questions, but have not found the suitable answer. I need to add fields for BP using EEWB and to work with this field in WEB UI. For achievement of it I have executed following steps: 1. Using EEWB has ad

  • ODP not showing up in provider list

    Hello all, I just finished installing odt, and while it looks as though I have some functionality, when I try to configure a SqlDataSource, Specify a new connection in the visual studio server explorer, Drag and drop a DataTable adapter, or any other

  • Java 7 module bloqued in Safari

    I install few days ago java 7 that were needed to work in the web page www.fotoprix.es to develop photography.  It works, but today I get in again and it does not work, module is bloqued and I do not change anything.  The Java version is the latest o

  • If I use the new sync-function, I keep losing my bookmarks or at least some of them during syncronisation. Is the new sync just as bad as the old one?

    Just like with the old version of Firefox Sync I keep losing at least parts of my bookmarks when I'm using the new Sync version. Anytime I change any of my bookmarks on one of my computers, I not only miss the change on other computers, but I also lo

  • Reader email not going to default email client

    If I open up an article in 'Reader' in safari, then go to 'Mail this page' it opens up in the OSX Mail program. I use 'Sparrow' and have set this up as the default email client (I know this as I can go to the file menu and 'Mail link to this page' an