Oracle ADF double-click row event

Source: Internet
Author: User

For more information, see <G id = "1"> How-to handle and respond to mouse double clicks </G>.

When you double-click a row of a table, popup and sub-table data are displayed in popup.

Add the attribute at the end of the primary table

<Af: clientListener method = "handleTableDoubleClick" type = "dblClick"/>

<Af: serverListener type = "TableDoubleClickEvent" method = "# {empbean. handleTableDoubleClick}"/>


ClientListener captures the double-click row event on the client and sends it to the handleTableDoubleClick method of js;

Write the handleTableDoubleClick event under the af: document page.

<Af: resource type = "javascript">
Function handleTableDoubleClick (evt) {var table = evt. getSource ();
AdfCustomEvent. queue (table, "TableDoubleClickEvent", {}, true );
Evt. cancel ();
}
</Af: resource>


ManageBean code:

Method Control Server pop-up popup

Public void handleTableDoubleClick (ClientEvent ce ){
RichPopup popup = this. getGetpopup (); // popup is a RichPopup object bound to the popup component of the server.
// No hints means that popup is launched in
// Center of the page
RichPopup. PopupHints ph = new RichPopup. PopupHints ();
Popup. show (ph );

}


PS:

Popup is displayed when you double-click a row in table. The pop-up is about search help.

The field in the column is 1 to 12 months.

Double-click a column to input the month of the column.

Commandlink is required, regardless of double-click.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.