When-mouse-click  trigger

hello every one
i put list item on tabular text item when i use when-mouse-click trigger on list item it dosen't fire
can any one help me.

this is my trigger
for i in 1..Get_list_element_count('l1') loop
     if :l1=get_list_element_value('l1',i) then
:lname:=GET_LIST_ELEMENT_LABEL('l1',i);
end if;
end loop;
if :report_name in('C','B','A') then
     :branch_code:=substr(:l1,1,3);
     :code:=substr(:l1,4);
     go_item('code');
else
     :client_branch_code:=substr(:l1,1,3);
     :client_code:=substr(:l1,4);
     go_item('client_code');
     end if;

Similar Messages

  • 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.

  • Passing parameter through when mouse click trigger

    I have a detail block.This block fetching multiple records.My query is how can i pass parameter though WMC trigger.
    My details block displaying data from 4 tables.
    When i click on any field all the data on that row must be my parameters.

    In first form in when mouse click trigger:
    SELECT xyz
    INTO :GLOBAL.xyz,
    FROM abc
    WHERE v.po_no = :SYSTEM.MOUSE_ITEM
    AND IMT21_SIT.C_SIT_NO = IMT22_RECT_HD.C_SIT_NO;
    EXCEPTION WHEN NO_DATA_FOUND THEN
         MESSAGE('PLEASE CLICK ON PO NO');
    logout;
    logon('abc','[email protected]');
    open_form ('C:\CUSTOMER_SERVICES\SUPL_FAS');
    in second form in when new form instance trigger:
    block_name.field_name := :GLOBAL.xyz;
    it show error..........

  • 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

  • :system.cursor_block value does not change when mouse click

    Form created with Forms version 6.0.8.8.0. Consists of a control block that has the toolbar buttons, a filter control block that contains item, and a data block. The filter control block and data block are on a tabbed canvas. There are 3 tabs with corresponding filter control block and data block on each.After the data block is queried, code sets the navigation to the control block with the go_item built-in. The user would use a mouse click on the filter control block on one of the tabs to activate an LOV, code is in a generic when-mouse-click trigger that will determine the item focus with the value in the system variable :system.cursor_block. Works for the first tab. Does not work for 2nd or 3rd tab. On-error trigger does not capture any error. Values for :system.cursor_block for tab 1 show that value before mouse click is 'control.detail' and after mouse click is 'filter.a'. For tabs 2 and 3 the value before mouse lick is 'control.detail' and after mouse click is 'control.detail' instead of 'fiter.b' or 'filter.c'. Verified that the 3 filter blocks are identical. Can anyone shed some light on this anomoly? I have been looking for this solution (many different iterations and changes to trap it) for too long.

    :System.Cursor_Block reports the name of a block, NOT a BlockName.ItemName.
    Use :System.Trigger_Item with your mouse click, or :System.Cursor_Item.

  • 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

  • Tooltips and When-Mouse-Enter trigger

    Are there any plans in Dev6 or beyond to allow a dynamic change
    to the item property TOOLTIP_TEXT from the item's When-Mouse-
    Enter trigger or a program unit called from this trigger? Let's
    say the tooltip text value changes when the value of the item
    changes. Trying to handle this scenario thru other triggers is
    rather inefficient and can be time-consuming to make sure all
    cases are handled. Is this going to be addressed at some point,
    or should we just hang our heads and say "Oh well, that would
    have been nice..."
    Danny Womack
    SCT Corporation
    null

    Steve - Why are you bothering to code tooltips when automatic ones are available as item properties ?These forms were first created in Forms 4.5 -- I don't think tooltips existed there. But tooltips still wouldn't work -- in a multirecord block with the code values being unique for several different records, we want the unique description for each unique value.
    And when there are several dozen values all over the screen, it would be necessary to lookup and store the description for every value, even though the users would seldom access them. So lookup ONLY on demand is more efficient.
    It is a standard process with everything possible stored in a PLL, so the WME lookup works great. And tailoring it for the web with when-mouse-click was not tough to add on.

  • 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

  • Use mouse click trigger option more than once?

    Hi, is there some way to use the "mouse click" trigger option more than once in the project? I am trying to build a menu button animate where the users click the (menu grid icon) once, and it transforms into the (x icon) and stays there until they click it again ONCE to change it back to the (menu grid icon). Other trigger actions aren't ideal, and I find that if I used the "double mouse click", the response gets a bit messy as clicking once would replay the whole sequence again. Thanks!

    At CreationComplete make a var as:
    button = -1;
    At click event of the button write:
    if (button == -1){
    sym.getSymbol("nmnmnmn").play("xicon");   // if you have a trigger in timeline to make this action that you want
    button++;
    else {
    sym.getSymbol("nmnmnmn").play("returnedicon");
    button = -1;
    Somehow like the above you'll have to do it.
    Or else you can use boolean , TRUE/FALSE

  • Exec utl_mail.send when mouse click

    Hi,
    I have a question,
    I want to exceute the exec utl_mail.send inside when mouse click i a form. how can i do that?
    Thanks and regards

    The ULT_MAIL, package is a utility for managing email which includes commonly used email features, such as CC, BCC etc.
    To install UTL_MAIL
    Method 1:
    sqlplus sys/<pwd>@db_sid
    SQL> @ORACLE_HOME/rdbms/admin/utlmail.sql
    SQL> @ORACLE_HOME/rdbms/admin/prvtmail.plb
    you define SMTP_OUT_SERVER parameter in the init.ora rdbms initialization file. However , if SMTP_OUT_SERVER is not define, this invoke a default of DB_DOMAIN which is guaranteed to be defined to perform appropriately.
    Method 2:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> grant execute on utl_mail to public;
    Grant succeeded
    SQL> create or replace public synonym utl_mail for sys.utl_mail;
    Synonym created
    SQL> CREATE OR REPLACE FUNCTION SEND_MAIL
    (pIssuer IN VARCHAR2,
    pReceiver IN VARCHAR2,
    pSender IN VARCHAR2,
    pSubject IN VARCHAR2,
    pMessage IN VARCHAR2) RETURN VARCHAR2 IS
    c utl_smtp.connection;
    respuesta utl_smtp.reply;
    pServer VARCHAR2(50) := 'SERVER';
    BEGIN
    -- Open the connection to the Server-mail
    c: = utl_smtp.open_connection (pserver);
    answer: = utl_smtp.helo (c, pServer);
    - Starts the Issuer mail.
    answer: = utl_smtp.mail (c, pSender);
    - Start the receiver
    answer: = utl_smtp.rcpt (c, pReceiver);
    answer: = utl_smtp.open_data (c);
    - Write the header of the e-mail
    utl_smtp.write_data (c, 'From:' | | pIssuer | | utl_tcp.CRLF);
    utl_smtp.write_data (c, 'To:' | | pReceiver | | utl_tcp.CRLF);
    - Write the Subject
    utl_smtp.write_data (c, 'Subject:' | | pSubject | | utl_tcp.CRLF);
    - Write the text of the Message.
    utl_smtp.write_data (c, utl_tcp.CRLF | | pMessage);
    utl_smtp.write_data (c, utl_tcp.CRLF | |'.');
    answer: = utl_smtp.close_data (c);
    - Close connection
    answer: = utl_smtp.quit (c);
    RETURN '0 ';
    EXCEPTION
    Utl_smtp.permanent_error THEN WHEN OR utl_smtp.transient_error
    utl_smtp.quit (c);
    RETURN SQLERRM;
    - raise_application_error (-20000,
    - 'Sending email failed, returning the following error:' | | SQLERRM);
    WHEN OTHERS THEN
    RETURN SQLERRM;
    END;

  • 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

  • How to stop new record creation when mouse click

    Hi,
    I am working with Oracle Forms 6i.
    I have a multi record block. I have provided a 'New' button that the user should click when a new record creation is required. This is because there is some other function that needs to be performed when the new record is created. Specifically, on clicking the new button, the program populates the field with values read from another table. This works fine.
    However, I realized, that if the user clicks on the mutli-record block just below the last record, a new record gets created. This action does not cause the logic behind the 'New' button to execute and the record is created in a manner that is not acceptable.
    First question is why does the new record get created only by clicking with the mouse with the pointer below the last record? Is there a way to stop this from happening?
    Thanks in advance for your help.
    Shailesh

    Hi Andreas,
    Probably I was not able to explaing my problem.
    I have a button that creates a new record when clicked. The button's trigger has the CREATE_RECORD statement.
    When a new record is created, I need to copy values from the record above it. I have therefore used DUPLICATE_RECORD in my block's WHEN-NEW-RECORD-INSTANCE trigger.
    I cannot use DUPLICATE-RECORD in WHEN-CREATE-RECORD trigger.
    So, I am not clear about what you are suggesting.
    My problem is that a new record gets created when click with my mouse pointer below the last record in the multi-record block. Why does that happen and how to prevent it?
    Thanks
    Shailesh

  • Shifting of GUI Co-ordinate system when Mouse clicked

    In my JDK 1.2.2 / Swing based application I have this problem of change in coordinate values (x,y) when a mouse click is used. This problem occurs sometimes and reason cannot be traced.
    For e.g. If a user clicks "on" a Button the button is not affected , but the Button is pressed when the user clicks just "above" the button. When this problem arises it happens for all GUI components in the screen like textfield , combobox , table rows etc.
    I hope the forum has answer / hint for this untraceable & intermittent problem.
    Thanks in advance

    1) What OS are you using?
    2) Did you try the app on a different machine?
    - If yes, and it worked OK, make sure you have the newest video drivers installed on your system.
    - If no, then beg/steal/borrow another machine to try it on, or:
    3) (better still) post your entire code if it's not too big, or failing that, post a compilable/runnable subset of your code which shows the same behavior, so we can try it out.

  • Is there a right mouse click trigger?

    I am currently using WHEN_MOUSE_CLICK on a text item, but I want the item to be navigable without necessarily triggering that code at the user's option. I was thinking that a right click trigger would be perfect- left click to navigate to the field, right click to activate the code. Is there such a trigger, or another way to do this?

    I am currently using WHEN_MOUSE_CLICK on a text item, but I want the item to be navigable without necessarily triggering that code at the user's option. I was thinking that a right click trigger would be perfect- left click to navigate to the field, right click to activate the code. Is there such a trigger, or another way to do this? Hi
    Try using WHEN_MOUSE_DOUBLECLICK for triggering the code.
    That would be simpler than other options.
    OR
    Parameter SYSTEM.MOUSE_BUTTON_PRESSED indicates the number of the button that was clicked, either 1, 2, or 3 (left, middle, or right). The value is always a character string.
    Call this builtin from within the WHEN_MOUSE_CLICK trigger.
    Regards
    Poorvi

  • Adjust Image Problem - Image Changes when Mouse Click is Released.

    I love the fact that images can be adjusted after insertion into a page (Things like brightness, contrast etc). The problem I have which is very frustrating is that while any control on the Adjust Image panel is selected and being edited (click and hold mouse button to move a slider), the images' contrast and brightness change (perhaps as if to indicate selection?). This is inherently a problem since it's these very characteristics you're trying to edit. So you adjust the image to your liking but when you release the mouse button, then image then suddenly changes and is no longer the way you want it. Anyone else seen this problem and have any helpful suggestions?

    I have been trying to replicate your issue using  different format images..but I did not succeed.
    If its not images and types that cause the  problem,  then the inference is that it the application.
    The usual advice... unless you  want to contact tech support and present your problem to them - is to uninstall iBA with Appdelete or similar rather than dragged to the trash, and then do a reinstall.
    This presupposes you saved everything/copies etc,.
    BTW, I seldom use the various sliders, with practice using the LEVELS can be more effective, have you tried  this option?

Maybe you are looking for

  • I can't update iPhoto after installing OSX 10.9.2, it has the name otto@**** in the apple ID box and will not let me change it. Any thoughts?

    Hello people, I can't update iPhoto after installing OSX 10.9.2, it has the name otto@**** in the apple ID box and will not let me change it. Any thoughts? Thanks <Email Edited By Host>

  • Report Painter / resources committed

    Gurus, I need your help. Getting in report painter committed resources released purchase requisitions. If I was not clear, sorry and I can give more details.

  • Second Display as another Space

    I just set up my 15" LCD TV as a second display on my mac. I was wondering if I can set the TV as a single Space in Spaces? Currently, in spaces it just attaches the second display onto the current space. Here is what it currently looks like in space

  • Problem in the select statement

    I have to select the values of the fields BEZEI  depending on tha sales order number vbeln. HOw can i write the select statement what will be the tables associated?

  • Syntax problem

    <% IncomeTax = "Yes"; %> <form> <div align="center"><center><table border="0"> <tr> <td colspan="2" align="center">Income Tax1</td> </tr> <tr> <td><input type="radio" value="No" name="IncomeTax1" <% If IncomeTax = "No" Then Response.Write("checked");