8 Replies Latest reply: Jan 14, 2013 1:39 PM by Andreas Weiden RSS

    needs a trigger

    Goldray
      Hi,
      I have a button I want when I put the mouse on 'button' a item_text be visible ..
      So I need a trigger that allows me to do that.

      Edited by: 979155 on 14 janv. 2013 08:38
        • 1. Re: needs a triggerHi,
          Michael Ferrante-Oracle
          I would recommend that you start here:

          http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo

          Without knowing what product versions, platform versions, deployment configuration, and other details surrounding what you are doing, we cannot offer anything specific.

          The only specific things I can offer based on what you provided is to say that if you are using Forms 9 or newer, there is no native way to change a button label. You would need to use a java bean/pjc. This would need to be custom designed. There are some bean examples on this non-Oracle site:

          http://forms.pjc.bean.over-blog.com/

          As for client/server (Forms 6), you can use the WHEN-MOUSE-ENTER trigger
          • 2. Re: needs a triggerHi,
            CraigB
            Do you want to just display text in a "Bubble Hint"? If so, open the Property Palette for your button and scroll to the bottom of the list of properties until you find the "Tooltip" property. Now, enter the text you want displayed when a user hovers the mouse pointer over the button.

            Hope this helps.
            Craig...
            • 3. Re: needs a triggerHi,
              Goldray
              No,
              I want when I put the mouse "*on*" button, item_text be visible (using set_item_property ('block.item' ,visible, property_true) ...
              I just need to trigger name!! I tried with when-mouse-enter but without success
              • 4. Re: needs a triggerHi,
                Michael Ferrante-Oracle
                Please go back and read my first reply. You still have not mentioned which Forms version you are using. If you are using any browser based version, which would be 9.0.x or newer OR 6.0.8 web deployed, then you cannot use WHEN-MOUSE-ENTER. In this case, you will need to use a bean. Refer to the web site I mentioned.

                For client/server versions, 6.0.x or older, WHEN-MOUSE-ENTER can be used. Further, statements such as these "...without success..." are not helpful. What does this mean? Was there an error message? Does nothing happen? What exactly did you try? Exactly what Forms version are you using?
                • 5. Re: needs a triggerHi,
                  CraigB
                  Well, your requirement was not clear.
                  I want when I put the mouse "on" button.
                  Do do you mean - when you click on the button with your mouse or are you talking about just moving the mouse cursor over the button?

                  The first option is easy - you use the When-Button-Clicked trigger. This will execute the code of your button regardless of how the button is activated (mouse click or keyboard).

                  If you are looking for "Mouse Over" type of functionality then you can't implement this type of functionality "natively" in Oracle Forms. You can do this using a JavaBean, but you will have to create the Java Bean yourself or find one that has already been created. Google should give you some results on this.

                  Hope this helps.

                  Craig...
                  • 6. Re: needs a triggerHi,
                    Goldray
                    forms 10g ..
                    when i put in the trigger when-mouse-enter :
                    set_item_property('block.item',visible,property_true);
                    => the item iremains invisible
                    • 7. Re: needs a triggerHi,
                      Goldray
                      yeah i means , "Mouse Over" !! so i must be use javabeans !!!!
                      • 8. Re: needs a triggerHi,
                        Andreas Weiden
                        Or, rethink your UI-design..