The submitEventDef element is a member of the following categories:
Namespace -- http://xmlns.oracle.com/bibeans
Group -- BI uiXML elements
Type of element -- Definition
Use the submitEventDef element to define the code that is required to fire an HTTP event for a BI thin bean. The submitEventDef element is similar to the dialogLinkDef element. However, the dialogLinkDef element is limited to firing the initialization event for BI thin dialogs.
The submitEventDef element can be used to provide an Apply or Cancel button or other link for any BI element that serves as a dialog, such as the BI thin dialogs or the explorerDetailDef element.
Note: There is no corresponding BI uiXML element that renders the submitEventDef element. Instead, use any rendering component, such as a UIX button or link, to render the submitEventDef element.
id -- (Required) A unique identifier for this element.
sourceId - (Required) Specifies the identifier of the BI thin bean for which an event will be fired.
sourceEventName -- (Required) Specifies the name of the event that is to be fired for a BI thin bean. The names of the valid events for apply and cancel operations in BI uiXML elements that serve as dialogs are as follows:
explorerDetailDef -- bi_submit_folder and bi_cancel
exportOptionsDef -- bi_export and bi_cancel
printOptionsDef -- bi_initPFV and bi_cancel
saveAsDef -- bi_save and bi_cancel
saveConfirmationDef -- bi_save and bi_cancel
The submitEventDef element is a child of the biThinSessionElement.
The following XML fragment shows a sample in which the submitEventDef element is used to supply a Save button and a Cancel button for a SaveAs dialog. The example uses the following assumptions:
Identifier of the saveAsDef element: "saveAs1"
Note: This element must be defined in the same UIX page
as the submitEventDef element.
Identifier of the page that contains the saveAsDef element: "page3"
Identifier of the biThinSession element in which the submitEventDef element is defined: "bisession1"
<!-- Definitions within the biSession element --> <bibeans:submitEventDef id="save1" sourceId="saveAs1" event="bi_save" /> <bibeans:submitEventDef id="cancel1" sourceId="saveAs1" event="bi_cancel" /> <!-- Displaying Save As and Cancel buttons in the UI tree section --> <!-- with UIX buttons that refer to the id of the dialogLinkDef --> <button text="Save" data:onClick="page3_save1@bibeans:bisession1" /> <button text="Cancel" data:onClick="page3_cancel1@bibeans:bisession1" />