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

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.

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

  • 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

  • Pass parameter through standard page "import xml content and actions"

    Dear Portal experts,
    As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
    I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
    What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml  fills automatically the fields u201CXML fileu201D with  C:\test.xml 
    Please do you know how to achieve this ?
    Thank you very much and regards

    hi,
    @Maksim :
    When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
    @Kumar :
    thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
    The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
    If someone could provide and idea/solution, I would be very grateful.
    Cheers

  • 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

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

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

  • Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also k

    Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also know the sequnce is alt t, alt o, alt c, alt a, then ok, ok. Got to be a way to make a one key short cut for this. I use a black background to reduce eye strain, but about 10% of the webpage I go to can't be send with black so I have to go into tools and hit 6 or 7 things to chnage it then after through with webpage have to do it all over at Not allow webpages to have own color. Very very cumbersome.
    == This happened ==
    A few times a week
    == made that way

    https://addons.mozilla.org/en-US/firefox/addon/toggledocumentcolors-198916/
    The above addon will solve your problem.
    Shortcut to toggle user color/page color :- Ctr+Shift+C

  • 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

  • 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

  • Passing through a mouse click

    I have a canvas with backgroundAlpha=0 over some other components, so that I can use rollOver and rollOut to trigger some events. However, i can't get the mouse to work with the components underneath the tranparent canvas. Is there a way to pass the mouse click event on to the components underneath the canvas?
    thanks,
    jq

    Thanks very much for your answer.
    In my case, I have a List which already has click actions assigned to its items. Basically, I want the list to disappear when the mouse is out of it, an reappear when the mouse is over it. For this purpose, I overlayed it with a transparent canvas, which responds to rollOver and rollOut. But then the list no longer responds to the mouse clicks. Is there a way to get the overlayed convas to pass the mouse click to the list so it responds normally again?
    jq

  • 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

Maybe you are looking for

  • Page is too small to read

    I was playing farmville. It sent me to a page, when I tried to get out the whole page shrunk and the words are almost impossible to read. There used to be a place on the bottom right screen, where it showed percentages of the screen size: 50% 85% etc

  • Aperture vs. Photoshop Elements 4.0

    Hi, I am a beginning photographer and I want an beginning piece of photo editing software. Does anyone have any suggestions. For example, how would you Aperture users compare Aperture to Photoshop Elements 4.0. If it helps I'm using a Canon Rebel XTi

  • Re: How to enable/disable BT module on Satellite A300?

    I have Toshiba Satellite A300-1MM. When I try to connect to my Wi-fi connection NOW I have to TURN the switch ON , on the front side of my laptop and everything works fine, but Bluetooth device is also turned on. I'd like to turn off the Bluetooth an

  • I need help with iTunes sign in, I get an error!

    When ever I try to sign in to my iTunes account, I just get "We could not complete your iTunes Store request. An unknown error occurred (-9808) There was an error in the iTunes Store. Please try again later" I have been "trying again later" for month

  • Motorola H710 headset stopped working

    I've had an H710 headset for almost 2 years without a problem.  Suddenly the person at the other end of my call couldn't hear me (or I was very faint) even though voice dialing on my phone could hear me when I initiated a call.  I read a number of po