DAC Form: Using rowsetPopulated event (NullPointerException raised!!)

Hi,
I am using rowsetPopulated event to display the total
of my column field.I have a textfield for this purpose
All goes well as far as showing the total is concerned
in the textField.
But, when I click the total textfield (although I donot require to do this!!) I get a NullPointerException.
This is the output in the console :
java.lang.NullPointerException
oracle.dacf.dataset.InfoObject oracle.dacf.dataset.ValidationManager._findProducer(java.lang.String)
oracle.dacf.dataset.InfoObject oracle.dacf.dataset.ValidationManager.getInfoObject(java.lang.String)
void oracle.dacf.control.NavigationManager.displayLOV(java.lang.String)
boolean oracle.dacf.control.NavigationManager._changeFocus(java.lang.String, java.lang.String, boolean)
boolean oracle.dacf.control.NavigationManager.validateFocusChange(oracle.dacf.control.Control)
void oracle.dacf.control.swing.TextFieldControl.focusGained(java.awt.event.FocusEvent)
void java.awt.AWTEventMulticaster.focusGained(java.awt.event.FocusEvent)
void java.awt.Component.processFocusEvent(java.awt.event.FocusEvent)
void javax.swing.JComponent.processFocusEvent(java.awt.event.FocusEvent)
void java.awt.Component.processEvent(java.awt.AWTEvent)
void java.awt.Container.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.LightweightDispatcher.setFocusRequest(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Container.proxyRequestFocus(java.awt.Component)
void java.awt.Component.requestFocus()
void javax.swing.JComponent.requestFocus()
void javax.swing.text.DefaultCaret.mousePressed(java.awt.event.MouseEvent)
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
void java.awt.AWTEventMulticaster.mousePressed(java.awt.event.MouseEvent)
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
void java.awt.Component.processEvent(java.awt.AWTEvent)
void java.awt.Container.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
How do I go about it?
TIA
Sandeep
null

As many of the recent posts on this forum indicate, we have done extensive work on improving the documentation for JDeveloper 3.2. Here is an excerpt from one of the sections which describes Validation and Change events. I'll post a description of the Navigation events in another message due to size limitations.
About InfoProducer Change Events
Calculated fields display values that depend on the values of other fields. For instance, the value of a Total field may be calculated at the level of the row or the rowset. The AttributeInfo or RowSetInfo components provide a set of events that you can use to assess when column data has changed and perform updates of calculated fields on the Java client. When one of these events fires, the application can perform an automatic calculation to update the contents of the calculated field.
The following table provides a high-level description of these InfoProducer-change events:
Event Type
Triggering Action
attributeChanged
Occurs when an attribute's value is changed.
rowAdded
Occurs when a row is added to a rowset.
rowUpdated
Occurs when a row is updated in a rowset.
rowToBeRemoved
Occurs when a row is about to be removed from a rowset. This event fires when a user presses the Delete key, but before the row is actually deleted from the rowset.
rowsetCleared
Occurs when all rows are deleted and the rowset is cleared.
rowsetPopulated
Occurs when the rowset is populated, for example, when a user navigates to the next item in the master table or when a new query is executed (for example, by submitting a parameterized query using the Find Panel).
In summary, data form events let you update a calculated field when a user:
Updates a field value
Adds and removes rows
Displays a new detail
About InfoProducer Validation Events
In those situations where you need to perform validation in the data form, the InfoProducer components provide a rich set of UI-validation events that you can exploit. For example, you might use an InfoProducer-validation event:
To enable the Commission field when a user adds a new employee to either the Sales or Consulting department.
To automatically calculate a new running total whenever the quantity or price of a line item is changed on an order entry form.
You can define InfoProducer-validation events for:
SessionInfo data item objects, which can receive the following events:
validateRowSet
validateRow
validateAttribute
RowSetInfo data item objects, which can receive the following events:
validateRowSet
validateRow
validateAttribute
AttributeInfo data item objects, which can receive the following event:
validateAttribute
The following table highlights the differences between these various InfoProducer-validation levels:
Event Type
Triggering Action
Use when you want to:
validateRowSet
Occurs when focus changes from one modified RowSet to another RowSet in the same session.
Note: Currently there is no session-level event support.
Perform a calculation over all the rows in a RowSet
For example, when the sum of the order items cannot exceed a prescribed customer order limit.
Perform a validation across multiple rows
For example, to verify that only one person is the head of a department.
validateRow
Occurs when focus changes from one row to another row in the same RowSet.
Perform a validation across multiple columns
For example, when the sum of the salary plus commission plus a sign-on bonus cannot exceed a maximum, and you want to defer validation until the user has finished entering or updating all fields.
validateAttribute
Occurs when focus changes from one modified Attribute (column) to another Attribute in the same Row.
Ensure the validity of data at an atomic level
For example, to check the state of an order states: pending, backordered, or awaiting_confirmation.
Provide feedback to the user as quickly as possible
For example, when a credit card number is invalid.
How Data Forms Propogate InfoProducer Validation Events
When a user's data form interaction generates a validation, the data form typically propagates the event to more than one bound InfoProducer object. For example, the simple action of selecting a field in a new row of a InfoSwing grid will trigger these events:
validateAttribute on the bound AttributeInfo object
validateAttribute on the bound RowSetInfo object
validateAttribute on the bound SessionInfo object
validateRow on the bound RowSetInfo object
validateRow on the bound SessionInfo object
validateRowSet on the bound RowSetInfo object
validateRowSet on the bound SessionInfo object
Because user interactions can trigger events across multiple bound InfoProducer objects, data forms follow an event hierarchy that determines the sequence by which the system seeks to handle the event. InfoProducer events propagate up a tree structure that is based on the heirarchy of attributes, rows, and rowsets.
The hierarchy of InfoProducer events is represented by this tree:
RS1
R1 R2
A1 A2 A3 A4
where the attribute events fire first (at the bottom of the tree), followed by the row events, and finally the rowset events.
When the user generates a validation event for a bound InfoProducer object, the data form generates the corresponding events depending on where in the tree the action takes place. For example:
Moving between two rows in the same rowset (from R1 to R2), would generate these validation events (assuming the user moved the focus from the field for A1):
validateAttribute event delivered at A1, R1, RS1
validateRow event delivered at R1, RS1, and the session
validateRowSet event delivered at RS1 and the session
Moving between two attributes in the same row (from A1 to A2), would generate these validation events:
validateAttribute event delivered at A1, R1, RS1, and the session
The following table describes the complete sequence in which InfoProducer validation events are first fired and then delivered to listeners:
Events are fired in this order:
Events are delivered in this order:
1. attribute events
At the attribute level
At the row level
At the rowset level
At the session level
2. row events
At the row level
At the rowset level
At the session level
3. rowset events
At the rowset level
At the session level
Handling InfoProducer Events at the Desired Level
The InfoProducer object you choose to handle the attribute, row, or rowset event, will be based on:
The nature of the event
The response required by the event
For instance, to write more efficient code, you may choose not to handle attribute events at the level of the AttributeInfo object. Instead, you could write a single event handler for the RowSetInfo object to perform validation for all the fields.
Thus, the further up the hierarchy you position your event handler, the more generic the response will be.
null

Similar Messages

  • Error when editing form --using an event receiver

    Hi,
    I created an event receiver sandbox solution and deployed it to preprod.  My code doesn't work and everytime I edit an item it gives me this error. I don't receive an error when I create an item.
    Server encountered an internal error. For more information, turn off customErrors in the server's .config file.
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion,
    Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin,
    Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean
    bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean
    suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion) at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut,
    Boolean bCheckin, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion) at Microsoft.SharePoint.SPListItem.Update() at Microsoft.SharePoint.WebControls.SaveButton.SaveItem(SPContext itemContext, Boolean uploadMode, String checkInComment)
    at Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    private bool HasFieldChanged(SPItemEventProperties properties, string sInternalName)
    if (properties.ListItem[sInternalName] != null && properties.AfterProperties[properties.ListItem.Fields[sInternalName].StaticName] != null)
    //before properties is not equal than after properties
    return !properties.ListItem[sInternalName].ToString().Equals(properties.AfterProperties[properties.ListItem.Fields[sInternalName].StaticName].ToString(), StringComparison.OrdinalIgnoreCase);
    return false;
     public override void ItemUpdating(SPItemEventProperties properties)
     base.ItemUpdating(properties);
     try
     if (HasFieldChanged(properties, "WHQ") && !HasFieldChanged(properties, "Employee Type"))
     SPList oSPList = properties.Web.Lists["EPDEMails"];
     SPListItem oSPItem = oSPList.AddItem();
     SPListItem item = properties.ListItem;
     string sAfterWHQDepartment = properties.AfterProperties[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sBeforeWHQDepartment = item[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sEmails = string.Empty;           
     string sGroups = string.Format("{0},{1},Editors", sAfterWHQDepartment, sBeforeWHQDepartment);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                sEmails += thisuser.Email + ";";
                        oSPItem["Subject"] = "Employee Transfer to a different WHQ Department";
                        oSPItem["To"] = sEmails;
                        oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP", item["First Name"],
    item["Last Name"], sAfterWHQDepartment, sBeforeWHQDepartment);
                        oSPItem.Update();
      if (HasFieldChanged(properties, "Region") && !HasFieldChanged(properties, "Employee Type"))
                    SPList oSPList = properties.Web.Lists["EPDEMails"];        
      SPListItem oSPItem = oSPList.AddItem();
      SPListItem item = properties.ListItem;
      string sAfterRegion = properties.AfterProperties[properties.ListItem.Fields["Region"].StaticName].ToString();
      string sBeforeRegion = item[properties.ListItem.Fields["Region"].StaticName].ToString();
      string sEmails = string.Empty;
      string sGroups = string.Format("{0},{1},Editors", sAfterRegion, sBeforeRegion);
      foreach (string group in sGroups.Split(','))
      foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                           sEmails += thisuser.Email + ";";
                        oSPItem["Subject"] = "Employee Transfer to a different Region";
                        oSPItem["To"] = sEmails;
                        oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP", item["First Name"],
    item["Las tName"], sAfterRegion, sBeforeRegion);
                        oSPItem.Update();
     if (HasFieldChanged(properties, "Employee Type"))
     SPList oSPList = properties.Web.Lists["EPDEMails"];
     SPListItem oSPItem = oSPList.AddItem();
     SPListItem item = properties.ListItem;
     string sChangedEmployeeType = properties.AfterProperties[properties.ListItem.Fields["Employee Type"].StaticName].ToString();
     if (sChangedEmployeeType == "Region")
    string sAfterRegion = properties.AfterProperties[properties.ListItem.Fields["Region"].StaticName].ToString();
    string sBeforeWHQDepartment = item[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
    string sEmails = string.Empty;
    string sGroups = string.Format("{0},{1},Editors", sAfterRegion, sBeforeWHQDepartment);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                    sEmails += thisuser.Email + ";";
                            oSPItem["Subject"] = "Employee Transfer to a Region";
                            oSPItem["To"] = sEmails;
                            oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP",
    item["First Name"], item["Last Name"], sAfterRegion, sBeforeWHQDepartment);
                            oSPItem.Update();
     else if (sChangedEmployeeType == "WHQ")
     string sBeforeRegion = item[properties.ListItem.Fields["Region"].StaticName].ToString();
     string sAfterWHQDepartment = properties.AfterProperties[properties.ListItem.Fields["WHQ Department"].StaticName].ToString();
     string sEmails = string.Empty;
     string sGroups = string.Format("{0},{1},Editors", sAfterWHQDepartment, sBeforeRegion);
     foreach (string group in sGroups.Split(','))
     foreach (SPUser thisuser in properties.Web.Groups[group].Users)
                                    sEmails += thisuser.Email + ";";
                            oSPItem["Subject"] = "Employee Transfer to a WHQ Department";
                            oSPItem["To"] = sEmails;
                            oSPItem["Body"] = string.Format("{0} {1} has been transferred to {2} from {3}. Please update EPD ASAP",
    item["First Name"], item["Last Name"], sAfterWHQDepartment, sBeforeRegion);
                            oSPItem.Update();
      //send email
      SmtpClient sendEmail = new SmtpClient();
      MailMessage message = new MailMessage();
      sendEmail.Host = "[email protected]";
      message.IsBodyHtml = true;
      message.From = new MailAddress("[email protected]");
      message.To.Add("[email protected]");
      message.Subject = "Test Email on Transfer Jan 13th";
      message.Priority = MailPriority.Normal;
      sendEmail.Send(message);
    catch (Exception ex)
    throw ex;
    This is really frustrating.  Any help is appreciated.
    Talibah C

    Hello,
    Can you debug your solution and let us know the line where your code is failing. Also tell what form you are editing and Is there any checkin/Checkout feature enable on that library?
    BTW i have found two similar threads for same error:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2096609e-036e-4e5a-bd69-3cded4d3ca89/sharepoint-2010-error-failed-hr-detected-unable-to-update-list-item?forum=sharepointgeneralprevious
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2277fdab-5652-4627-9879-da199089d6e6/how-can-i-get-around-this-error-when-modifying-a-document-via-itemadded-event?forum=sharepointdevelopmentlegacy
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Event is raised or can be raised by using 'TRIP' Transaction

    Hi,
    I want to raise an event when creating trip by using transaction 'TRIP'.
    if an event is raised or can be raised when the trip is set to u2018To Be Settledu2019?
    Regards
    Krishna

    Hi Jenny,
    I've just tried custom URI with iOS and I am able to receive the argument with length 1, which has the complete url I browsed.
    For Eg: If I launch url example://xyz?abc, I get the complete url as 1st element of the e.arguments array.
    public function invokeHandler(e:InvokeEvent):void{
    label1.text = "";
    label1.appendText(e.arguments.length.toString() + " ");
    for (var i:int=0;i<e.arguments.length;i++)
    label1.appendText(e.arguments[i] + " ");
    label1.appendText(e.reason);
    Reason should always be standard if it's not launched from login. Currently on Mobile it will be standard only.
    Hope it helps.
    -Pahup

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.

    Hi Expert,
    Forms Version : 11.1.2.1.0
    Client JRE : 1.6.0_45-b06 Java HotSpot(TM) Client VM
    Run webutil_demo form, http://host:9001/forms/frmservlet?form=webutil_demo.fmx&config=webutil
    it appears following error.
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    No error logged in java console client side.
    I've try to re-compile webutil_demo.fmb
    Unattaching and then re-attaching the plsql library webutil.pll to forms using a 11g Forms Builder (instead of earlier version) and then loading the form to the server and compiling form but error still exist.
    Will you please help to give any suggestion?
    Is there any trace can be enabled to find some more details?

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

  • Converton of  oracle 9i forms  using JDeveloper

    Can we convert an oracle 9i forms using jdeveloper?

    The links point to my blog and product (OraFormsFaces). The poster is right that OraFormsFaces is a licensed product.
    It is a library consisting of a number of components:
    * extensions to Oracle Forms adding a JavaScript API to Oracle Forms
    * a number of JSF component allowing you to embed an Oracle Form in a JSF page, and pass parameters and raise events from Forms to JSF and in the other direction
    * extensions to the Forms applet allowing for a single Forms applet to be reused during your entire web session. Normally each web page embedding Oracle Forms would start a new applet, which is prevented by OraFormsFaces using a single applet for the entire session
    * optional visual integration of Oracle Forms in the JSF page that can blend the form into the page, removing the title bar, menu bar, tool bar, status bar, and other chrome
    * supporting PLL libraries to bring the OraFormsFaces functions to Forms PL/SQL
    To get an overview of the product and some viewlets demonstrating JSF/Forms integration, please visit http://www.commit-consulting.com/oraformsfaces/
    I personally feel that OraFormsFaces could be the missing link for Oracle Forms users wanting to go forward. Many Forms users want to use JSF or other web technologies for new developments but they don't want to be forced into a time consuming and expensive rebuild of their Forms application in web technology. OraFormsFaces allows you to create hybrid systems consisting of new JSF pages and existing Oracle Forms while both can pass parameters and events to the other. This gives the end user and integrated application without a need for development to do a major rebuild/rearchitect.

  • FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065

    Please help....This error is comming when opening the form. The form is running on oracle 11g 64bits web logic.
    "FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065"

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • Interactive Adobe Forms using WebDynpro ABAP

    Hi,
    I could able to design and execute my interactive adobe form using webdynpro ABAP. Here what i am doing is i am creating context with my structures and table types  and pdfobject of type xstring  and passing the proper inputs in interactive form properties, in template sources i am provinding the interface and form name of my own choice and it is getting created automatically by the system, every thing works fine here and i could able to execute my form from web dynpro application.
    Here my requirement is i have already created structures and table types after that i went to transaction SFP and created an interace and by using that interface i have created form and i have designed the layout. Now what i want to do is i want to integrate this form in my webdynpro appliction and i want to execute it from webdynpro applicaton. When i try to do i am getting short dump, is my approach feasible or not . kindly suggest. If we can achieve this what is the way to achieve.
    Please do send your suggestions.
    Regards,
    Venkat

    Hi
    When u click on button..u will have to get the data from node which is existing on the Intereactive form and pass it to other view via writing logic in button event handler.
    The data can be displayed in other view as result.
    I hope u got it.
    Provide REWARD points..:-)

  • How to run a form using tree node selection??

    hi...
    i have populated a tree with all the form name.There is a particular id for every form.i want to show a form using tree node selection.What i did...i write a trigger in button's click event when the tree node is selected then i get a id.if id=1 then open_form('test.fmx').when i want to execute this code then it is showing the same form 2 times.Can anyone help me to solve my problem?If so plz tell me what code i have to write to show a form using node selection?.

    I've done the same thing, and i think it works fine.
    Check this code (Sorry for the long post, but i cannot find how to attach files.
    PACKAGE menu_pk IS
    --Initialization of the menu.
    procedure Init;
    --Called from WHEN-TREE-NODE-EXPANDED
    procedure Expanded;
    --Called from WHEN-TREE-NODE-ACTIVATED
    procedure ExecuteCommand;
    END;
    PACKAGE BODY menu_pk IS
    MENU_NAME constant varchar2(30) := 'menu.menu';
    cursor c_menu(pRoot in varchar2) is
    select apm_code, apm_parcode, apm_descr, decode(apm_type, 0, Ftree.EXPANDED_NODE, Ftree.LEAF_NODE) apm_type,
    decode(apm_type, 0, 'menu', 1, 'form', 2, 'report') || '.ico' apm_icon
    from app_menu
    where apm_parcode = pRoot
    order by apm_code asc;
    procedure Init is
         new_node ftree.node;
    begin
         for i in c_menu('root')
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, FTree.ROOT_NODE,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure FillNode(pNode in FTree.Node) is
         new_node ftree.node;
    begin
         for i in c_menu(FTree.get_tree_node_property(MENU_NAME, pNode, FTree.NODE_VALUE))
         loop
    new_node := Ftree.add_tree_node(MENU_NAME, pNode,
    Ftree.PARENT_OFFSET, Ftree.LAST_CHILD,
    i.apm_type, i.apm_descr, i.apm_icon, i.apm_code);
         end loop;
    end;
    procedure DeleteNodeChilds is
    node FTree.NODE;
    begin
         loop
    node := FTree.Find_Tree_Node(MENU_NAME, '',
         FTree.FIND_NEXT_CHILD, FTree.NODE_VALUE,
         name_in('system.trigger_node'), name_in('system.trigger_node'));
              exit when Ftree.ID_NULL(node);
              FTree.delete_tree_node(MENU_NAME, node);
         end loop;
    end;
    procedure Expanded is
    begin
         if (FTree.GET_TREE_NODE_PROPERTY(MENU_NAME, :system.trigger_node, FTree.Node_State) = FTree.EXPANDED_NODE) then
         menu_pk.FillNode(name_in('system.trigger_node'));
         else
              menu_pk.DeleteNodeChilds;
         end if;
    end;
    procedure ExecuteCommand is
    cursor c_command(pCode in varchar2) is
    select apm_form, apm_type
    from app_menu
    where apm_code = pCode;
    fCommand c_command%rowtype;
    fMenuCode varchar2(20);
    begin
         -- if it is as menu node then exit.
    if (not FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_STATE) = FTree.LEAF_NODE) then
         return;
    end if;
    fMenuCode := FTree.Get_Tree_Node_Property(MENU_NAME, :system.trigger_node, FTree.NODE_VALUE);
         open c_command(fMenuCode);
         fetch c_command into fCommand;
         close c_command;
         if (fCommand.apm_type = 1) and (fCommand.apm_form is not null) then
              globals.Set_MenuChoice(fMenuCode);
              OPEN_FORM(fCommand.apm_form);--, ACTIVATE, SESSION);
         end if;
    end;
    END;
    The menu table definition follows.
    create table APP_MENU
    APM_CODE VARCHAR2(10) not null,
    APM_PARCODE VARCHAR2(10) not null,
    APM_DESCR VARCHAR2(40) not null,
    APM_TYPE NUMBER(1) not null,
    APM_FORM VARCHAR2(50)
    alter table APP_MENU
    add constraint APP_MENU_PRI primary key (APM_CODE);
    Hope this helps

  • Use of Events in OOPS ABAP

    Hi all,
        Can anybody please say me what is the exact use of EVENTS in OOPs ABAP. Can anybody please explain me with an example.
    Thanks in advance.

    hi,
    By triggering an event, an object or a class announces a change of state, or that a certain state has been
    achieved.
    Events link objects or classes more loosely than direct method calls do. Method calls establish precisely
    when and in which statement sequence the method is called.
    However, with events, the reaction of the
    object to the event is determined by the triggering of the event itself.
    Events are most often used in GUI implementations.
    Other external object models, such as COM, ActiveX Controls etc, also provide events.
    At the moment of implementation, a class defines its
    instance events (using the statement EVENTS) and
    static events (using the statement CLASS-EVENTS)
    Classes or their instances that receive a message when an event is triggered at runtime and want to react
    to this event define event handler methods.
    Statement : (CLASS-)METHODS <handler_method> FOR EVENT <event> OF <classname>.
    These classes or their instances register themselves at runtime to one or more events.
    Statement : SET HANDLER <handler_method> FOR <reference>. (for instance events)
    SET HANDLER <handler_method>. (for static events).
    A class or an instance can trigger an event at runtime using the statement RAISE EVENT.
    Both instance and static events can be triggered in instance methods.
    Only static events can be triggered in static methods.
    Events can only have EXPORTING parameters which must be passed by value.
    Triggering an event using the statement RAISE EVENT has the following effect:
    the program flow is interrupted at that point
    the event handler methods registered to this event are called and processed once all event handler methods have been executed, the program flow starts again.
    If an event handler method in turn triggers an event, then the program flow is again interrupted and all event handler methods are executed (nesting).
    Events are registered using the command SET HANDLER. Registration is only active at program runtime.
    Events cannot be persistent.
    You want to register an object to an event belonging to another object. The SET HANDLER... statement
    enters the registration in that object’s list. All handlers for one event are entered in this list.
    When the event is triggered, the list shows which event handler methods need to be called.
    Event handler methods are triggered by events (RAISE EVENT), although they can also be called like
    normal methods (CALL METHOD).
    The interface of the event handler method consists solely of IMPORTING parameters. Only parameters
    from the definition of the corresponding event (event interface) can be used.
    An event interface only has EXPORTING parameters and is defined using the EVENTS statement in the declaration of the event. The
    parameters are typed in the event definition and the typing is passed to the event handler method, that is,
    the interface parameters of the event handler method cannot be typed in the definition of the event handler
    method.
    In addition to the explicitly defined event interface parameters, the implicit parameter SENDER can also be
    listed as an IMPORTING parameter for instance events. This passes on a reference to the object that
    triggered the event.
    Events are also subject to the visibility concept and can therefore be either public, protected or private.
    Visibility establishes authorization for event handling :
    all users only users within that class or its subclasses
    only users in that class.
    Event handler methods also have visibility characteristics. Event handler methods, however, can only have
    the same visibility or more restricted visibility than the events they refer to.
    The visibility of event handler methods establishes authorization for SET-HANDLER statements: SET
    HANDLER statements can be made anywhere in that class and its subclasses only in that class
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:45 PM

  • How to use the Events which are in BOR?

    HI Experts
    In SAP Business Object Repository, under each object, we can see some events. What are these events, can we use them in our programs. For instance the business object type BUS2010-Purchase order; I can see some events for it, If I want to use these events in my custom program, can I use them?
    What is the use of it SAP R/3. If you feel my question is baseless also, please provide me the information about this once.
    Thanks in advance
    Praveen

    Hi,
    If you want to raise BOR event from your program you can use function module SWE_EVENT_CREATE.
    If you want to register for the event and handle it you can go to transaction SWEC and register your function module there.

  • Validation in Form Data add Event

    Dear All,
    I am developing an add-on m facing some problems in the Form_Data_ADD Event. I have created a form using screen painter and i have done some validations for few fields those fields are mandatory. after entering some data iam closing the form it will show a messageBox saying do you want to save the changes or not n if i give yes its saving data. but it has to show the error message saying certain fields are mandatory.please suggest some solution regarding how to validation in such a condition.
    Regards,
    Anand.

    Hi Anand,
    I do my validations either in the Form Data Add event, when BusinessObjectInfo.BeforeAction = True or in the ItemPressed Item Event, when pVal.BeforeAction = True. In both cases, if I need to stop b1 from adding the record, I set BubbleEvent to False.
    I guess that in your case it's not working because you're catching the BusinessObjectInfo.BeforeAction = false or because you're not setting BubbleEvent to False.
    Regards,
    Vítor Vieira

  • Facing issues with Oracle11i and SOA 10g integration using Business events.

    Hi ,
    I have created a custom business event and have added subscription for the same.
    When i am triggering a business event, event is raised and the event data is getting inserted in the Queue (AQ).
    In SOA i have created an OracleApps adapter that is listening to the queue ,
    but the Oracleapps adapter is not getting started even though there are data in the queue.
    I checked the WSDL file of Oracleapps adapter and there i can see there is field Consumer with some code.
    I have added the code snippet from Oracleapps adapter wsdl.
    <pc:inbound_binding />
    <operation name="DEQUEUE">
    <jca:operation
    ActivationSpec="oracle.tip.adapter.apps.AppsWFBesQueueDequeueActivationSpec"
    QueueName="WF_BPEL_Q"
    DatabaseSchema="APPS"
    Consumer="ORA_88p3cd9o74pj2cpg6p13cdhp75"
    MessageSelectorRule="tab.user_data.event_name = &apos;xxc.oracle.apps.soa.demo&apos;" >
    </jca:operation>
    I have checked the connection factory set up at loaction (application-deployments\default\AppsAdapter/oc4j-ra.xml)too and found it is correct.
    code snippet from oc4j-ra.xml:-
         <connector-factory location="eis/Apps/Apps" connector-name="AppsAdapter">
              <config-property name="xADataSourceName" value="jdbc/EBSDataSource"/>
              <config-property name="dataSourceName" value=""/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
              <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
         </connector-factory>.
    Can anyone tell me where consumer for an event/queue is being defined in the Oracle apps.
    Thanks & Regards
    Saurav Kumar

    Hi,
    Can you check the log file.u are getting any error.can you check wf_error table also u are getting any error.
    Can you check consumer in AQ tables.
    Thanks,
    Rahul

  • Inbound  using Business Events

    Hi All,
    We have to develop an inbound interface using business event to get better asynchronous mode of process between the middleware and Ebusiness Suit. The previous design was using a stored procedure by passing input parameter as table type (We had header line and details information in 3 different table type). Now instead of calling stored procedure middleware(ESB) will trigger business event by passing the input parameter. Please let me know how can I achieve this.
    My main concern is if ESB is able to populate data via business event how can we process in our side.
    I am ok even if we can get the data as xml also,, Please tell me how to achieve.
    Please help.
    Thanks,

    Ayyapan wrote:
    Hi,
    I have to use business events to send concurrent program status.Could anyone help me out ?
    Sytem : R12
    linux env.
    Thanks.Please see "Business Events Region" in (System Administrator responsibility > Concurrent > Program > Define) window.
    Concurrent programs can be integrated with the Business Event System in Oracle Workflow. Business events can be raised at key points of the life cycle of a request to run a concurrent program. Users can subscribe to the business events and create their own business processes interacting with the concurrent programs.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174301.htm
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458252.htm
    Thanks,
    Hussein

Maybe you are looking for