Flex automation - need to capture the mousemove

hi All,
     I am creating Whiteboard application. I want to test my application through automation, but i can't capture the mousemove event.
Inside the Whiteboard i have drawing fucntionality, this functionality require the mousedown, mousemove and mouseup events. I need to capture these events.
Please help me.
- Rajan

I tryed that method.
This is my sample file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml"applicationComplete="init();"
>
<mx:Script>
<![CDATA[
import mx.automation.Automation; 
import mx.automation.IAutomationManager; 
private function init():void
bindDraw.addEventListener(MouseEvent.MOUSE_DOWN, _MouseDownHandler,
false, 0, true);}
private function _MouseDownHandler(evt:MouseEvent):void{
this.systemManager.addEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false, 0, true); 
bindDraw.addEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
false, 0, true); 
bindDraw.graphics.lineStyle(3, 0, 1);
bindDraw.graphics.moveTo(evt.localX, evt.localY);
private function _MouseMoveHanlder(evt:MouseEvent):void{
bindDraw.graphics.lineTo(evt.localX, evt.localY);
private function _MouseUpHandler(evt:MouseEvent):void{
bindDraw.graphics.clear();
this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false); 
bindDraw.removeEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
false);}
private var _count:Number = 0; 
private function clickHandler(evt:MouseEvent):void{
evt.currentTarget.label=
"clicked "+(++_count);}
]]>
</mx:Script>
 <mx:Button id="b1" label="click me" click="clickHandler(event)"/>
 <mx:Canvas showInAutomationHierarchy="true" id="bindDraw" width="100%" height="100%" />
 <mx:Canvas id="fff" width="100" height="100" backgroundColor="34233"/></mx:Application>

Similar Messages

  • XI needs to capture the form back in the mail adapter

    Hi Experts,
    I am working on a scenario where , data needs to be sent from SAP and in XI , a form sort of( like a web form or pdf form) needs to be created.  This form needs to be emailed ( using the mail adapter ) to an outside entity.  They will fill out the form and email it back.  XI needs to capture the form back in the mail adapter translate it and put the data back into sap.
    Can some one help me out with this ?
    Regards,
    Hemanthika

    Hi patnaik
    Follow these links to covert to PDf and then mailing through mail adapter
    Converting Smartform into PDF and sent to EMAIL
    Check this..Smartform as attachment in mail. - 46k
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/convert-smartforms-form-in-pdf-998715 - 87k
    SMART form to PDF
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
    smartform to MAIL
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    regards
    Sandeep sharma
    If helpful kindly reward points

  • Class or method needed to capture the event triggered

    Hi All,
           Help needed in finding the event triggered in ALV container.
    As per my requirement , I am registering the event mc_evt_modify for getting the search help(MEKK) in a ALV container . However it is triggered when ever I am inserting a row in ALV container and also the method data_changed is also triggered with that. But I don't want the method data_changed to be triggered.
    Is there any method or class which captures the event triggered so that I can put a condition on mc_evt_modify event.
    Please help me to resolve this issue.
    Regards,
    Srinivas

    Hi,
    You can check event ONF4
    "1 . --------------------   first register it
      DATA: it_f4 TYPE lvc_t_f4,
            wa_f4 TYPE lvc_s_f4.
      wa_f4-fieldname = 'CONNID'.
      wa_f4-register = 'X'.
      wa_f4-CHNGEAFTER = 'X'.
      APPEND wa_f4 TO it_f4.
    CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4 = it_f4.
    "2. --------------------------- now handle it
    handle_on_f4 FOR EVENT onf4 OF cl_gui_alv_grid
                               IMPORTING e_fieldname e_fieldvalue er_event_data,
    METHOD handle_on_f4.
        DATA: repid LIKE sy-repid,
              dynnr LIKE sy-dynnr,
              field TYPE help_info-dynprofld.
        repid = sy-repid.
        dynnr = sy-dynnr.
        field = e_fieldname.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = 'SFLIGHT'
            fieldname         = 'CONNID'
            searchhelp        = "give search help here
            dynpprog          = repid
            dynpnr              = dynnr
            dynprofield       = field.  "return picked value to the one you are in
        "prevent furhter standard processing
        er_event_data->m_event_handled = 'X'.
      ENDMETHOD.                  
    Regards
    Marcin

  • Need to capture the excise for the excise tab missing item in GR

    Hi Masters
        Our users has done MIGO with one line item(for Material A) with excise item tab and other line item(fro MAterial B) without excise item tab(non availability of Chapter ID).
    They are able to capture excise in J1IEX for the first item only with the help of GR document.
    But they want to capture the excise for the second line item?
    When we process the same GR document in J1IEX once again it shows error that documeny has been already processed.
    How to resolve this?
    Regards
    Mohanraj.C

    Hi,
    If u have done only GR for Both materials then Cancel ur GR and Post it again.
    And if you have Done J1iex for first material then Cancel GR first then Cancel Excise Invoice.
    Now to cancel Excise Invoice follow the path as
    From the SAP Easy Access screen, choose Logistics ® Materials Management ® Inventory Management ® Goods Movement ® Goods Movement (MIGO).
    In the top line:
    Select Cancellation.
    Select Material document.
    Enter the number of the goods receipt that you want to cancel
    Choose .
    Flag all of the line items as OK.
    Save the reversal document.
    Reversing CENVAT Postings
    From the SAP Easy Access screen, choose Indirect Taxes ® Procurement ® Excise Invoice ® Incoming Excise Invoices ® Individual Processing ® Change/Display/Post/Cancel.
    In the top line:
    Select Post CENVAT.
    Select Vendor Excise Invoice.
    Enter the excise invoice number.
    Choose .
    Choose Simulate CENVAT.
    A dialog box appears, showing which postings the system will make to reverse the CENVAT.
    To close the dialog box, choose .
    Choose Post CENVAT.
    Canceling Excise Invoices
    From the SAP Easy Access screen, choose Indirect Taxes ® Procurement ® Excise Invoice ® Incoming Excise Invoices ® Individual Processing ® Change/Display/Post/Cancel.
    In the top line:
    Select Cancel.
    Select Vendor Excise Invoice.
    Enter the excise invoice number.
    Choose .
    Save the excise invoice
    if Not solved then please specify that is error by system.
    Regards,
    Pardeep malik

  • Need to capture the output of parseEscapedXML() function in a variable

    Hi All,
    In my BPEL process, I am fetching the XML data from the database which is stored in a CLOB column, using the database adapter. As it is in a string type I am using parseEscapedXML() function to get the XML data out.
    I have done the following:
    Imported the XSD to the project. Created a variable of element type and in the type explorer , navigated to 'Project Schema Files' -> My .XSD file -> complex XML element. But when I use this variable in any of my process activities, I get the following compilation error:
    Error(58):
    [Error ORABPEL-10010]: unresolved element
    [Description]: in line 58 of "<bpel procedure path>", XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" of variable "Variable_2" is not defined.
    [Potential fix]: Make sure the XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" is defined in one of WSDLs that are referenced by the deployment descriptor.
    Which WSDL file is the error referring to (I use empty BPEL process as the template)
    Could anyone please let me know how do I create a variable which is of my XSD type and use the variable for further transformation.
    Thanks a lot.
    Regards,
    Prad

    Prad,
    Did you get this resolved? I am having the same issue and can not get it to work.
    Thanks
    Troy
    Message was edited by:
    user641994

  • Serial number needed to try flex automation

    I'm running the Flex Automation Installer to install the
    plugins needed to evaluate use of QuickTest Professional for
    automated Flex 2 testing. The Installer requires entry of a Flex
    Data Services serial number. (The applications I want to test do
    not use Flex Data Services, so this seems an odd requirement for
    evaluation of the test tool.) How can I get the needed serial
    number? If this requires discussion with someone at Adobe who
    oversees my organization's Flex licenses, how would I determine who
    that is and how to contact him or her? Is it necessary to purchase
    a Flex Data Services license to evaluate QTP automated testing of
    Flex 2 apps?

    I have the QTP configured with Flex and I am able to record
    most events. Attempting to record a mouse rollover results in the
    following error : “Error: Unable to find automation method
    'flash.events.MouseEvent' for class 'name: FlexImage
    superClassName: FlexLoader”. My app is a simple image which
    applies two states to display the image. It utilizes the
    Automation.automationManager.recordAutomatableEvent method for the
    target event, within the “rollover” event handler.
    Also, I override the “replayAutomatableEvent(Event)”
    method calling the
    Automation.automationObjectHelper.replayMouseEvent() for the
    MouseEvent.ROLL_OVER event. The error propagates from the MouseMove
    event as reported in the stack trace –Click and ChangeFocus
    also are reported. I’ve added the rollover event to the
    “TEAFlex.xml” file. Its my understanding that any event
    outside of those defined in the “QTP Object Type”
    document for each control can be configured in the
    “TEAFlex.xml” file, for any control descending from
    UIComponent. I received a similar error after extending the
    ProductCatalogThumbnail ( Canvas ) class contained in the flex
    store code, though this error propogates from Scroll. Can you
    determine why ( in the first case ), the rollover is failing?
    Stack trace:
    Error: Unable to find automation method
    'flash.events.MouseEvent' for class 'name: FlexImage
    superClassName: FlexLoader
    event2descriptor: (Object)#0
    flash.events.FocusEvent|keyFocusChange =
    (mx.automation.qtp::QTPEventDescriptor)#1
    eventClassName = "flash.events.FocusEvent"
    eventType = "keyFocusChange"
    name = "ChangeFocus"
    flash.events.MouseEvent|click =
    (mx.automation.qtp::QTPEventDescriptor)#2
    eventClassName = "flash.events.MouseEvent"
    eventType = "click"
    name = "Click"
    flash.events.MouseEvent|mouseMove =
    (mx.automation.qtp::QTPEventDescriptor)#3
    eventClassName = "flash.events.MouseEvent"
    eventType = "mouseMove"
    name = "MouseMove"'.
    at mx.automation::AutomationManager/recordAutomatableEvent()
    at ViewStates_wt3/dispatchLowLevelEvent()
    at ViewStates_wt3/__soup_rollOver()
    at [mouseEvent]
    Text

  • Unable to capture the screen field in badi

    Dear Experts,
    I have my requirement something like this.
    The t code which we are using is cj20n.
    I need to capture the date fields whcih are in  2 tab and when i press save these fields needs to be captured and validations are to be  done accordingly.
    I have found the badi name as WORKBREAKDOWN_UPDATE and when i put some break point this method trigeers but only few fields are only captured except the second tab values ( i mean date fields ).
    SO please suggest me with a solution as wht needs to be done in my case.
    Regards,
    Madhavi.

    try using import or export parameter id .

  • How to capture the event in driver JSplitPane

    Hi all, i have some problem with the JSplitPane.
    What i want to do is that:
    i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
    Thanks for your time!
    Luca

    I thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
    Does anyone have any ideas why that would be?
    Here is the test app:package splitPaneMonitor;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JFrame;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    public class SplitPaneFrame extends JFrame implements PropertyChangeListener  {
         public SplitPaneFrame()  {
              super ("Split pane test");
              //  Create the components to show in the split pane
              myTopComponent = new JTextArea ("This is the top component", 10, 40);
              myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
              //  Create the split pane
              mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
              mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
              getContentPane ().setLayout(new BorderLayout ());
              getContentPane ().add (mySplitter, BorderLayout.CENTER);
         public void propertyChange (PropertyChangeEvent evt) {
              if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY)  {
                   System.out.println ("Split pane divider moved");
                   Dimension size = myTopComponent.getSize ();
                   System.out.println ("    The top component's size is: " + size.height +" h, "+ size.width + " w");
                   myBottomComponent.getSize (size);
                   System.out.println ("    The bottom component's size is: " + size.height +" h, "+ size.width + " w");
                   mySplitter.getSize (size);
                   System.out.println ("    The splitter's size is: " + size.height +" h, "+ size.width + " w");
                   System.out.println ("    The splitter divider location is: " + mySplitter.getDividerLocation ());
         private JTextArea myTopComponent;
         private JTextArea myBottomComponent;
         private JSplitPane mySplitter;
         public static void main(String[] args) {
              SplitPaneFrame appFrame = new SplitPaneFrame ();
              appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              appFrame.pack();
              appFrame.setVisible (true);          
    }

  • Need 2 create the supplementary exc invoice at depots for differential ED

    Dear SAP Experts,
              I've already posted the same issue in SD-Billing forum also. But there are not many views in that forum. So, I'm posting it again in this forum.
             My scenario is our parent Factory will raise a supplementary invoice to Depots for differential rates and create the excise invoice for the same using J1IS. Then, the depot has to capture the same differential duty and the same has to be passed on to the customer during the sales as well as a supplementary excise invoice should be raised for the sales which are already been made from depot in the past through the same mother invoice reference.
    My questions in this regard are:
    1. What could be the Excise Transaction Type at Factory to create supplementary inv using J1IS (I suppose it is OTHR)
    2. How to capture the the same differential excise at depots which needs to be reflected in RG23D entry? (As per my knowledge it is through J1IGA)
    3. If it has to be captured through J1IGA, the problem is system is not allowing to enter the differential duty for which stock has been completed at depot. My requirement is even the stock is finished at depots, we need to capture the differential duty as we would like to raise the supplementary excise inv to the customers who have bought the material.
    4.How to Raise the supplementary excise invoice at depots so that the RG23D entry will be adjusted with the same.
    Please suggest me the right solution for the mentioned requirement asap.
    Thanks in advance,
    BVS.

    Dear Kotesh,
    The process what you are following at Depot is wrong. Imagine, how can you raise excise invoice from depot when stock is not there in RG23D? Or how can you capture supp exc invoice in depot for materials which have alreay been sold.
    The process to raise supp excise inv from factory is via J1IS and your understanding is right.
    Regarding passing on the subsequent excise duty to customer is not possible. And why would you do this.
    As per the excise law, the differential duty is to be paid, when you sell the goods from depot at a higher rate than they were transferred. The government charges this duty because, you transferred at lower cost and paid lower duty but sold the goods to customer at higher rate.
    Considering this case, imagine if you sold the goods from depot at a lower rate than the transfer (means Transferred goods from factory at Higher rate say 20 $ at this you pay excise duty of 0.16 $) If you sell them at 10 $ you still transfer the excise duty of 0.16$ isn't it. In this case wll you collect back the excise duty from the customer???
    The right process is raise a supp exc invoice for differential duty and leave it at this stage. At depot it is not possible to capture and pass duty where the material is sold, and it is not required by law as well.
    Thanks & regards
    Hameed Parvez

  • How to capture the value selected in the drop down box

    Hi all,
    I am populating values in  drop down box by using FM vrm_set_values in module pool.
    like below
    01  ABC
    02 ACB
    03 BCA
    04 CAB
    in module pool drop down box element name is RQGM-VALUE.
    Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
    i need to capture the value selected in the drop down box and pass it to another variable.

    Hi,
    Refer this standard code. Your issue will be resolve.
    REPORT demo_dynpro_dropdown_listbox.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
    DATA: wa_spfli TYPE spfli,
          ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    TABLES demof4help.
    name = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE init_listbox OUTPUT.
      CLEAR demof4help-connid.
      SELECT  connid cityfrom cityto deptime
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
       WHERE  carrid = demof4help-carrier2.
        value-key  = wa_spfli-connid.
        WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
        CONCATENATE value-text
                    wa_spfli-cityfrom
                    wa_spfli-cityto
                    INTO value-text SEPARATED BY space.
        APPEND value TO list.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
    ENDMODULE.
    MODULE user_command_100.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE user_command_200.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'SELECTED'.
        MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
                                            demof4help-connid.
      ENDIF.
    ENDMODULE.

  • How to capture the output of another program into a File/String

    I needed to capture the output of a dos program in an String/file I tried doing Runtime.getRuntime.exec("ipconfig /all >tmp.txt");
    but still I am unable to capture the output frm the program which I would like to capture in a file or String.Can anyone help

    When you use the Runtime.exec() method, it returns a Process object, that process object has access to the streams; stdout, stdin, and stderr of the application you just executed. what you'll want to monitor is the stdout or stderr streams using the
    p.getInputStream() or p.getErrorStream(), where p = the process object returned via the Runtime.exe() method.

  • Capturing the output of a os command line

    I need to capture the output of a os command line executed from one java program and I don't know how can do it.
    For example:
    Runtime.getRuntime().exec("hostid");

    Your suggestion worked very well, just in case that this could interest somebody, this is the complete solution
    Thanks for your help
    import java.io.*;
    public class HostID
    public static void main(String args[]){
    try{
    InputStream in = (Runtime.getRuntime().exec("hostid")).getInputStream();
    byte[] arreglo= new byte[200];
    int cantidad = in.read(arreglo);
    System.out.println(new String(arreglo,0,cantidad));
    } catch (IOException ioe){System.out.println(ioe.getMessage());}
    }

  • Need to Capture porReqLineId from ShoppingCartPG dynamically

    Hi,
    My Requirement
    From the Shopping Cart Page in iProcurement I have to link a custom form for each line where the users will be able to enter some additional information and based on the information some validations will be done after which the data will be stored in a custom table.
    What needs to be done and what I have done till now
    I have extended the Controller of the Shopping Cart Page. Created a Submit Button and added the button dynamically to each line of Shopping Cart. Set a fireActionEvent to the button. So when the user clicks on the button it should open a new custom page with the Requisition Line ID as a parameter.
    My Problem
    I am unable to capture the Requisition Line ID.
    I have tried the following step
    1. Created a Extended Controller by extending the ShoppingCartCO
    2. In processRequest created a Submit Button named it as "Additional Info" and assigned it to the Table. So it will show a Button in the result table of the Shopping Cart.
    3. Assigned a Fire Action for Submit Button in processRequest using setFireActionForSubmit method. So when the "Additional Info" button is clicked it raises the event set in Fire Action.
    4. In processFormRequest method of the extended CO handled the event by
    if ("addnInfoEvent".equals(paramOAPageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))).
    In this i tried to capture the porReqLineId which is a formParameter using the following
    Number localNumber = 0;
    try {
    localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
    catch (Exception e) {e.printStackTrace();}
    String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
    throw new OAException(outmsg,OAException.INFORMATION);
    5. Then I am personalizing the ShoppingCartPG and assigning the new extended controller to the page.
    6. So for the time being I need to capture the porReqLineId and pass it to the new custom page as a parameter. But this is not happening and when i click on "Additional Info" button it doesnt provide me the porReqLineId.
    My Whole Code is pasted below
    ===================================================================
    package xx.oracle.apps.icx.custom.webui;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.icx.por.common.webui.ClientUtil;
    import oracle.apps.icx.por.req.webui.ShoppingCartCO;
    public class XXBBShoppingCartExtend14CO extends ShoppingCartCO {
    public XXBBShoppingCartExtend14CO() {
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    super.processRequest(paramOAPageContext, paramOAWebBean);
    OATableBean otbRN=(OATableBean)paramOAWebBean.findIndexedChildRecursive("ItemTableRN");
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("addnInfo");
    oasb.setUINodeName("addnInfo");
    oasb.setText("Additional Info");
    otbRN.addIndexedChild(oasb);
    oasb.setFireActionForSubmit("addnInfoEvent",null,null,false);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);
    String strEvent= paramOAPageContext.getParameter(EVENT_PARAM) ;
    String str = paramOAPageContext.getParameter("event");
    if ("deleteLine".equals(str))
    Number localNumber = 0;
    try {
    localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
    catch (Exception e) {e.printStackTrace();}
    String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
    throw new OAException(outmsg,OAException.INFORMATION);
    if ("addnInfoEvent".equals(paramOAPageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    Number localNumber = 0;
    try {
    localNumber = new Integer(ClientUtil.getDecryptedParameter(paramOAPageContext, "porReqLineId"));
    catch (Exception e) {e.printStackTrace();}
    String outmsg="Line ID : " + localNumber + ":" + str + ":" + strEvent;
    throw new OAException(outmsg,OAException.INFORMATION);
    ===================================================================
    Here I also tried to modify the Oracle defined event of "deleteLine" by just capturing and printing the Req Line ID. This is happening in the case of "deleteLine" event but not in the case of "addnInfoEvent" event.
    Please help me on this.
    Thanks in advance.
    Regards,
    Rohit Subudhi
    Edited by: 929000 on May 8, 2012 12:42 AM
    Edited by: 929000 on May 8, 2012 1:22 AM

    Hi,
    I have used the following in processRequest
    String pageName = paramOAPageContext.getRootRegionCode();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);
    Hashtable paramsWithBinds = new Hashtable(1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(oasb, *"${oa.encrypt.current.RequisitionLineId}"));*
    oasb.setFireActionForSubmit("addnInfoEvent",params,paramsWithBinds,false,false);

  • How to capture the record value, when an error occurs

    Hi , can you please help us in achieving the below requirement.
    i have source with 10 accounts , i have to update the 5 target tables for the 10 accounts, i am using a for loop to do insert/update operations.
    when an primary key/unique constraint error occurs while doing the insert/update operations, i want to catpure that account number along with the
    error message and store in a table.
    right now i am using sqlerrm,sqlcode in my exception block to capture the oracle error code and error message,i need to capture the account number along with this message. please tell me how to achieve this ...
    thanks

    if you want to log the error in the table and keep going with the rest of them you might want to check out bulk collection exception handling.
    http://psoug.org/reference/array_processing.html
    CREATE OR REPLACE PROCEDURE forall_errors IS
    TYPE myarray IS TABLE OF tmp_target%ROWTYPE;
    l_data myarray;
    CURSOR c IS
    SELECT table_name, num_rows
    FROM all_tables;
    errors PLS_INTEGER;
    dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT(dml_errors, -24381);
    BEGIN
      OPEN c;
      LOOP
        FETCH c BULK COLLECT INTO l_data LIMIT 100;
        -- SAVE EXCEPTIONS means don't stop if some DELETES fail
        FORALL i IN 1..l_data.COUNT SAVE EXCEPTIONS
        INSERT INTO tmp_target VALUES l_data(i);
        -- If any errors occurred during the FORALL SAVE EXCEPTIONS,
        -- a single exception is raised when the statement completes.
        EXIT WHEN c%NOTFOUND;
      END LOOP;
    EXCEPTION
      WHEN dml_errors THEN
        errors := SQL%BULK_EXCEPTIONS.COUNT;
        dbms_output.put_line('Number of DELETE statements that
        failed: ' || errors);
        FOR i IN 1 .. errors
        LOOP
          dbms_output.put_line('Error #' || i || ' at '|| 'iteration
          #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
          dbms_output.put_line('Error message is ' ||
          SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
        END LOOP;
      WHEN OTHERS THEN
        RAISE;
    END forall_errors;
    /

  • How to capture the Textelements value

    Can anyone give me the command to capture the Textelement value
    <----
    <param name="ELEMENT_TYPE_1" value="FILTER"/>
    <param name="ELEMENT_NAME_1"                            value="ZCUSTSALE__ZLOGOPRTN"/>
    I need to capture the value which the user selects for a dropdown filter in one of the tabs of webtemplate.
    If anyone has the JavaScript !!!
    so that I can then pass value it as a URL to another template in WAD, which has multiple TABS.
    Would award points...
    thanks
    BWinfo

    bwinfo,
    you will need to write the javascript as part of the onchange() function assigned to the dropdown.
    document.yourform.ZCUSTSALE_LOGPRTN.options[document.yourform.ZCUSTSALE_LOGPRTN.selectedIndex].value
    Here it is simple javascript , what you need to do is assign the onchange() function and you can get the command URL and needed manipulation done.
    Arun
    P.S check if the form name and the dropdown name are the same , open the template through Internet explorer and check the dorpdown name or the HTML view

Maybe you are looking for

  • Subtotal line item in invoice

    Hi, There is Subtotal line item for an invoice -with line item type SUBT - I have some invoices where it is present and in some cases it is not present. Does anyone know the reason for this and from where it gets populated / calculated. In billing do

  • More SpryMenu problems in IE

    I'm having a heck of a time with my Spry menu. It worked great in Firefox, but the drop-down menus did not display properly in Safari or IE. After going through the posts here, I make a number of changes, and Safari works pretty well now; and IE menu

  • Convert cmyk to rgb in acrobat 7

    Good morning, I have a question about converting color spaces using Acrobat 7 Professional  and Pitstop Pro. I have some CMYK PDFs used for magazine printing that I need to convert to a 144 DPI RGB version for a digital edition. I know most folks are

  • The extraction of the profit center & the cost center

    Hi all, Can anyone share the extraction document with me regarding the profit center and the cost center? Thank you for help.

  • 6301 Ringing Volume

    I am really struggling to hear this phone. It is not a fault as my replacement is exactly the same. Can anything be done about this issue as I love everything else about the phone but pretty pointless if I miss so many calls !!