Configuring Siebel Open UI > Customizing Siebel Open UI for Siebel Mobile > Customizing Scrolling and Swipe >

Configuring Swipe to Delete


You can configure Siebel Open UI so that if the user swipes a record in a list applet from left to right, then it displays a Delete button that allows the user to confirm the deletion. The user can click Delete to delete the record, or step off the record or tap it to cancel the deletion. Swipe to Delete comes enabled with Siebel Open UI, by default.

To configure Swipe to Delete

  1. Identify the list applet that you must modify:
    1. Log in to the client.
    2. Navigate to the list applet where you must configure Swipe to Delete.

      For example, navigate to the Accounts list.

    3. Click the application-level Help menu, and then click About View.
    4. In the About View dialog box, notice the name of the list applet.

      For example, CG Account List Applet.

    5. Click OK.
  2. Modify the DeleteRecord control:
    1. Open Siebel Tools.

      For more information, see Using Siebel Tools.

    2. In the Object Explorer, click Applet.
    3. In the Applets list, query the Name property for the list applet you noticed in Step 1.
    4. In the Object Explorer, expand the Applet tree, and then click Control.
    5. In the Controls list, query the Name property for DeleteRecord, and then modify the following property.
      Property
      Value

      Method Invoked

      DeleteRecord

      If the DeleteRecord control does not exist, then add it now. Note that Swipe to Delete only displays the Delete button if the user swipes from left to right on a record. It does not display a permanent Delete button. For more information, see DeleteRecord Method.

    6. Compile your modifications.
  3. Test your modifications:
    1. Log in to the client, and then navigate to the applet you noticed in Step 1.
    2. Swipe a record from left to right.
    3. Make sure Siebel Open UI displays the Delete button.
    4. Step off the record and make sure Siebel Open UI hides the Delete button.
    5. Swipe a record from left to right, and then click Delete.
    6. Make sure Siebel Open UI deletes the record.

      To disable Swipe to Delete, remove the control that you modified in Step 2, and then compile your modifications.

How Siebel Open UI Uses Swipe to Delete

Siebel Open UI uses the CanDelete method in the jquery.swipeButton.min.js file that resides in the following folder to control Swipe to Delete:

CLIENT_HOME\eappweb\PUBLIC\language_code\release_number\scripts\3rdParty\jqmobile

The CanDelete method makes sure that Siebel Open UI places the focus on the list item and makes sure that the Delete button is enabled or disabled according to the CanInvoke reply that the DeleteRecord method sends. If the applet that you query in Step c does not include a control with a Method Invoked property set to DeleteRecord, then Siebel Open UI does not display a button when the user swipes a record from left to right.

Configuring Siebel Open UI Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.