When-mouse-doubleclick on display item

I have a display item which has 25 rows. When a user double clicks on a row I wish to retrive the values from the row which has just been clicked. When I try this within a when-mouse-doubleclick trigger Forms retrieves the first row, not the one I clicked. Is there any way to get this to work properly?
Thanks
mark

Ino,
I did just have
message(:register.student_id);
as my code so that I could see which ID was returned.
I followed Eugeniy's idea but it didn't work so I modified it slightly to:
Go_Block('register');
Go_Record(:SYSTEM.MOUSE_RECORD);
if :register.student_id is not null then
     :global.temp_stud_id := :register.student_id;
     call_form(:global.project_path||'photo_popup.fmx', no_hide, no_replace);
     end if;
which seems to work ok.
John,
I don't want to edit or be inside the display item, I just wish to get the value contained within.
Thanks all for your help, I'm not sure how good a soloution I've got here but it seems to do the job!
Mark

Similar Messages

  • WHEN-MOUSE-DOUBLECLICK with PRE-BLOCK: what the problem ?

    I created a form master-detail with Forms 6i:
    first block using table DEPT
    second block using table EMP
    In block EMP I created a trigger PRE-BLOCK with:
    message( 'Stoping' );
    message( ' ', no_acknowledge );
    raise form_trigger_failure;
    In form level I created a trigger WHEN-MOUSE-DOUBLECLICK with.
    null;
    Yes only a NULL.
    The problem is very simple, the cursor stay in second block after the raise in PRE-BLOCK when it must stay in first block. Note that the hint displaied is the first block.
    If I remove the WHEN-MOUSE-DOUBLECLICK the problem solve.
    What Do I do to solve this problem ?

    What's the type of provider's mail server? (e.g. POP3,IMAP, or enterprise Mail for Exchange Protocol)
    have you tested by removing and re setting the account?
    Please identify your iOS version.

  • Doubleclick in another item

    I have a Block which is based on a Table. I have two Items. The first item is the "NAME" and the other Item is the "Title". And I have an Control-Block which have an Item "TITLE2". The item "Title" is deactivated. Now I want if I doubleclick in the "NAME"-Item the programm should show the "Title" in the "TITLE2"-Item.

    Hi,
    Try the following:
    Create a when-mouse-doubleclick trigger on the name field.
    In the trigger code, you put something like:
    :<controlblock>.title2 := :<tableblock>.title;
    where you fill in the <> fields your blocknames.
    Martine.

  • When mouse Entered, get block/name.

    I need to create some java code that, on, when-mouse-entered, and when-mouse-exited, the java code will pass the item's block name and item name back to the form.
    Ideally I would like to create generic code to use with any item. i.e. I don't want to 'hard-code' block and item name's into the java code.
    Example:
    -in forms, create a text item (:BLOCK1.ITEM12)
    -set item's implementation class to RecognizeMouseEnteredExited
    -When mouse entered/exited, pass items block/name of item to Oracle forms.
    Assumptions:
    I am assuming I need to tap into Oracle Forms IView interface to extract the item id and name, but as much assistance with the actual code would be GREAT!
    Thanks

    You can get it with :system.record_number. To determine the position in the multi-record block use get_block_property('block', top_record)

  • How to display item when mouse moves over Column value??

    Hi there
    It would be helpful if you could resolve the following :
    i) I need to display the column 'A' values of my report in a Text field when mouse moves over column B of my report.
    ii) I can able to display the same column value when mouse moves over or onclick happens. but my requirement is something like i have to display the other column value when mouse moves over.
    iii) Also i noticed that, i can able to display the item only on "Display only Item" and not on Text field.
    Any pointers to display my column value in Text field when onclick happens on my report column?
    iv) One more thing that i noticed, i can able to perform onclick or mouse over only on Editable column and not on
    non editable columns.
    Any pointers on how to achieve the same when mouse moves over Non editable column of report?
    Reference: I have created a dummy application (refer the following link), where i can able to display column value Salary on display only item using mouse move Event.
    My requirement: when i click column Ename , the text field should show salary.
    http://apex.oracle.com/pls/otn/f?p=56045:1
    User:guest
    Pswd: apex_demo
    Any pointers on this would be appreciated.
    Thanks
    Vijay

    Vijay,
    If you use Jquery then this should do the trick.
    $(document).ready(function() {
       $(".t20Report t20Standard tr").hover(function() {
         $("#P2_SALARY").attr("innerHTML",$(this).find("td:last input").attr("value"));
    {code}
    after looking at the source of your page it seems that your class for your report region is *class="t20Report t20Standard"* I am not 100% sure but you might have to correct that in the template. I am not sure how the selector will handle the space in the class name.
    Hope this helps,
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • WHEN-MOUSE-CLICK for a display item does not fire on the web

    Resending as there were no responses............
    Regards,Bala.
    Bala (guest) wrote:
    : Hi guys,: 1. Does WHEN-MOUSE-CLICK fire on Display Item or on
    a Button in
    : Web Forms (not in a client/Server environment) ? We had it
    : working in Forms 5.0, but right now in 6.0 it doesnt ? In 6.0,
    : it works fine in Client/Server environment, but definitely not
    : in Web environment.
    : 2. Again, in our app. we have set no bevel for the display
    : items, but when we run it on the web, it comes with a bevel
    : (this does not happen in Client/Server). Is this common or is
    it
    : a known bug in 6.0 ?
    : 3. How to change Fonts for Web Deployment. Currently I guess
    it
    : takes Dialog as the default with the point size of 900 (in
    Java
    : terms). I tried modifying the registry.dat to the following:
    : default.fontMap.defaultFontname=SansSerif:
    default.fontMap.defaultSize=900: OR
    : default.fontMap.defaultFontname=Ms Sans Serif:
    default.fontMap.defaultSize=900
    : and found no changes at runtime on the Web.
    : Any help on these issues, will really be appreciated.
    : Thanks,
    : Bala
    null

    Dear friend
    i have the same problem when ever u can solve this probelm pls
    inform me as well mean while i am trying to reslove it as well if
    there is any sucess i ll inform u.
    mobeen
    Bala (guest) wrote:
    : Resending as there were no responses............
    : Regards,Bala.
    : Bala (guest) wrote:
    : : Hi guys,: 1. Does WHEN-MOUSE-CLICK fire on Display Item or on
    : a Button in
    : : Web Forms (not in a client/Server environment) ? We had it
    : : working in Forms 5.0, but right now in 6.0 it doesnt ? In
    6.0,
    : : it works fine in Client/Server environment, but definitely
    not
    : : in Web environment.
    : : 2. Again, in our app. we have set no bevel for the display
    : : items, but when we run it on the web, it comes with a bevel
    : : (this does not happen in Client/Server). Is this common or is
    : it
    : : a known bug in 6.0 ?
    : : 3. How to change Fonts for Web Deployment. Currently I guess
    : it
    : : takes Dialog as the default with the point size of 900 (in
    : Java
    : : terms). I tried modifying the registry.dat to the following:
    : : default.fontMap.defaultFontname=SansSerif:
    : default.fontMap.defaultSize=900: OR
    : : default.fontMap.defaultFontname=Ms Sans Serif:
    : default.fontMap.defaultSize=900
    : : and found no changes at runtime on the Web.
    : : Any help on these issues, will really be appreciated.
    : : Thanks,
    : : Bala
    null

  • Display Item cleared when using 'Enter-Query'

    Hi all,
    i am going to develop a multilanguage application with very
    special heading texts using display items for these headings.
    BUT- if I press EnterQuery, they are cleared also.
    How can I restrict cleanup of these display items used as
    headings ?
    I was looking in the properties, but no idea.
    Thanks for help,
    udo

    I'm showing how to do it when switching modes. I'm
    not suggesting this is the best way to do a query.We need to look at this in the context of the original probelm in the thread linked to above. For most cases the when-timer-expired etc is just a huge detour around using the pre-query trigger but it's an interesting approach to the specific problem in the earlier thread. The OP there wanted to be able to type '>5000' into a number field in a non-database block, which we can do in a database block in enter-query mode, and use it as a query parameter in the database block. Perhaps if we enter this into a character field in the non-database block and populate the numeric field in the database block whilst in enter-query mode then we can do searches on ranges of data? Unfortunately it doesn't work - you get an ora-06502 error just like you do when using the pre-query trigger. For the situation in the original thread you would have to use a 'default where'.

  • When-Mouse-Click does not fire if When-new-item-instance exists

    We are using Forms 6i Patch 12.
    The When-Mouse-Click trigger (at block level) is not getting fired when a When-new-item-instance trigger exists on a given item on which mouse is clicked.
    We need to synchronize keyboard and mouse events such that if the validation on certain key items fails, the cursor should go to one of the specified items as per the validation rules.
    The validation rules are different on leaving from different items. Complex validation rules require cursor to go to a different item than the current item on which the validation fires.
    Since go_item cannot be used in when-validate-item, we are using a combination of key-next-item and when-mouse-click.
    But, this strategy seems to fail if mouse is clicked over an item having a when-new-item-instance trigger.
    Also, we need the When-mouse-click trigger to fire before When-new-item-instance.
    Any pointers to solving the firing of trigger or strategy will be appreciated!
    Regards,
    Sanjiv

    This solution we have tried and it works also.
    However, we end up in another problem in the form. For overall picture, please see my latest post for "Forms Valid status" at Forms Valid status
    Regards,
    Sanjiv

  • Magic Mouse stutters when 27" Apple Cinema Display connected

    I have a 2011 MacBook Pro and 27" Apple LED Cinema Display, and a Mighty Mouse. All purchased 2 weeks ago.
    When I work with the 27" display connected, the Mighty Mouse's performance is intolerable. It jerks, stutters and jumps all over the place. it will work fine for a short period time (30 seconds) and then become jerky and stutter all over the place for 5 seconds.
    This does not happen when the display is disconnected.
    To ensure it wasn't a software issue, I used Boot Camp to run Windows 7. The problem is the same in Windows. Again, when I disconnect the display and use my laptop's screen, the problem goes away.
    Some people have suggested that it may be interference from 2.4Ghz wireless networks and recommended to switch to 5Ghz. However, turning my router off did not help.
    I tried positioning the mouse less than 2 inches away from the laptop, both in open & closed-lid mode. Again, the problem remains.
    The laptop's trackpad always works fine, as does a wired Mighty Mouse.
    So, in summary:
    *Is there known interference between the 27" Display and Bluetooth devices such as my Magic Mouse?*

    thv2011,
    There are some known problems which other devices on the 2.4Ghz can affect. Here's the apple support article on the subject:
    http://support.apple.com/kb/HT1365
    Captfred

  • Turn off metadata display box when mousing over photos?

    When mousing over photos in the viewer or browser, a box pops up next to the cursor showing metadata. I find this very distracting and annoying when editing a photo or confirming faces. In Aperture 2, you could turn it off under preferences, but for the life of me I can't figure out how to turn it off in Aperture 3 (metadata has a separate tab rather than controlling the viewing of metadata under preferences in A2). Hitting the letters Y and U work in the viewer and browser, respectively, but only for one photo - doesn't stop it for good. I've tried messing around with all the other metadata view settings. Any ideas?

    Hitting the letter T toggles the display, you can adjust this setting with Command -J.
    HTH
    wok4

  • COMMIT_FOARM IS NOT WORKING INSIDE THE  WHEN-MOUSE-CLICK

    Dear friends
    I have following script in when-mouse-click trigger
    BEGIN
    IF NOT Form_Success THEN
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    IF :System.Form_Status = 'CHANGED' THEN
    IF :LOCK_FLAG = 1 THEN
    UPDATE PROJ.IM_REQUEST_HEADER
         SET LOCK_FLAG = 1
         WHERE DOC_CODE = :DOC_CODE ;
         SHOW_MESSAGE('DOCUMENT CODE -1'|| ' '||:DOC_CODE);
         SHOW_MESSAGE('LOCK FLAG -1'|| ' '||:LOCK_FLAG);
         Commit_Form;
         MESSAGE('The Record have been changed -1 ');
    ELSE
         UPDATE PROJ.IM_REQUEST_HEADER
         SET LOCK_FLAG = 0
         WHERE DOC_CODE = :DOC_CODE ;
         Commit_Form;
         MESSAGE('The Record have been changed - 2');
    END IF;
    ELSIF :System.Form_Status <> 'QUERY' THEN
    Message('An error prevented your changes from being
    committed.');
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    Note :
    The above trigger is attached to this field LOCK_FLAG and the item type of LOCK_FLAG is check box in the form and the property of the LOCK_FLAG
    is site as the following :
    database item = NO , and the property of the blcok IM_REQUEST_HEADER is site as the following :
    database data block = NO
    and my problem is when i change the value of LOCK_FLAG is not executting the update statement .
    waiting for your valuable answer in details thank in advance for your cooperation.
    best regards
    jamil alshaibani

    Dear Wilfred
    Thank you very much for your cooperation, yes when I change the “Database data block “ property to no, it works, as I wanted to be.
    Notes about my application:
    In my program I provide the store keeper query screen, he can check the orders and lock the specific order by clicking on the LOCK_FLAG field, so after he locked the field the requester user can not change his order content if it is locked by the store keeper
    And the way I was trying to do it ,by query the data from      IM_REQUEST_HEADER Table which is the Order table which is the header table ,the form is displaying doc_code ,doc_date ,lock_flag,and the order store name ,and I provide him a report on the same form that he can see the details of the order items ,and all the field properties set to no, that is update allowed to no ,insert allowed set to no, but the field lock_flag property set as update allowed to yes and insert allowed set to yes
    and I would like to now how it was displaying this message
    ORA-01400 cannot insert NULL INTO “PROJ”.IM_REQUEST_HEADER”.DOC_CODE
    And I was not inserting, I was just updating the lock_flag by the above update statement.
    Best regards
    Jamil Alshaibani

  • When-mouse-leave

    db and dev 10g rel2 ,
    hi all ,
    i am trying to use when-mouse-leave for the first time , and i know that it fires when the mouse cursor leaves an item , and that is the functionality i want ,
    i am trying to make an item invisible when i leave another one , so i did that ,
    - two text items (t1, t2,t3) ;
    using this trigger on a text item (t1) to make t2 invisible , when i leave t1 to go to (t3) ;
    in the code i've written :
    set_item_property('t2',visible,property_false) ;
    it did not work , without any errors or messages ?. , -- this problem also happens with when-mouse-enter trigger ?
    thanks

    Post-text-item runs when cursor (focus) leaves the field. It runs when you click into another field, or use Tab or Enter to leave the field. I believe it also runs during query processing when data in the row is being populated by the fetch process.
    When-mouse-leave in Client/Server Forms ran each time the mouse pointer rolled OUT of the field's perimeter. As you rolled the mouse pointer across the screen, LOTS of when-mouse-enter and when-mouse-leave triggers would run, if they were defined on all the fields, or at the block or form-level. We used it to pop-up a balloon-help display on items, if the user rolled the mouse into a field and waited ~half a second. When-mouse-enter / leave triggers do not run in web forms, so it will not cause excessive network traffic.
    I cannot believe Oracle is so lazy that they haven't updated the online help.

  • When-mouse-click trigger is not working

    Hi,
    My forms version is 10g.
    I've a black level and item level when-mouse-click trigger.
    There is some code inside that which is not being executed.
    To test, i simply printed a hello message inside the trigger's code.
    Even hello is not being displayed.
    Can anyone please help me in why this trigger is not working.
    Navnit

    You have some other issues going on if you don't see anything from a when-mouse-click trigger.
    First of all, are you spelling the trigger using a dash or underscore? WHEN-MOUSE-CLICK will run, but WHEN_MOUSE_CLICK will not.
    Have you set :SYSTEM.Message_Level to some value above zero in the form? If so, set it back to zero.
    On what object are you trying to click? Is this causing navigation? Navigation may cause validation to run, which may fail, which may prevent the navigation, which may prevent your when-mouse-click from running.
    And last, are you sure you are running the currently compiled fmx version of your form?
    When nothing works, you need to back up and start finding out what DOES work first.

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

  • Open Form not working when called from When-Mouse-Click

    In our application to navigate to other forms we have created a feature where user selects the Forms from a LOV, the form id is returned to the text item and user needs to click the text item.....In the text item the Open form command is given
    This is not working
    The form builder throws an error
    Frm 92100 Connection interupted
    what could be the reason

    Code written in When-Mouse-click
    for item :boo_toolblk.nbt_nxtscr which contains the form id
    DECLARE
    p_name_id PARAMLIST;
    lv_param_name VARCHAR2(8):= :boo_toolblk.nbt_nxtscr;
    lf_next_form_id FORMMODULE;
    BEGIN
    Clear_Item;
    /*Create a parameter list named 'TEMPLT_PARAM'. First
    ** make sure the list does not already exist, then
    ** attempt to create a new list*/
    IF not Id_Null(Get_Parameter_List('TEMPLT_PARAM'))/*Returns a BOOLEAN value if the object ID is available*/
    THEN Destroy_Parameter_List('TEMPLT_PARAM');
    END IF;
    p_name_id:= Create_Parameter_List('TEMPLT_PARAM');
    /*Add a value parameter to an existing Parameter
    ** List */
    Add_Parameter(p_name_id,'templt_nxtscr',TEXT_PARAMETER,lv_param_name);
    Go_Block(Get_Form_Property(:system.current_form,FIRST_NAVIGATION_BLOCK));
    lf_next_form_id := FIND_FORM(lv_param_name);
    :PARAMETER.next_form := lv_param_name;
    IF lf_next_form_id.id is not null
    THEN
    Close_form(lf_next_form_id);
    END IF;
    Add_parameter(p_name_id,'previous_form',TEXT_PARAMETER,:SYSTEM.CURRENT_FORM);
    /* opens another form*/
    Open_Form(lv_param_name,ACTIVATE,NO_SESSION,SHARE_LIBRARY_DATA,p_name_id);
    EXCEPTION
    WHEN FORM_TRIGGER_FAILURE
    THEN RAISE FORM_TRIGGER_FAILURE;
    WHEN OTHERS
    THEN RAISE FORM_TRIGGER_FAILURE;
    END;
    Error :-
    Frm-92100 : Your Connection to the Server was Interrupted
    This may be the result of a networn error or a failure on the server.
    You will need to re-establish

Maybe you are looking for