Siebel Pharma Handheld Guide > Using Siebel Pharma Handheld > Managing Samples in Siebel Pharma Handheld Applications >

Keeping the Samples Records in the Server and the Siebel Pharma Handheld Application Synchronized


Administrators can manage a samples inventory using either the Siebel Pharma Handheld application or the Siebel Pharma application, but must not use both. In order to keep sample inventories synchronized, users must not submit a samples transaction on the server when the same record is still editable on their handheld device.

When a user submits a record, the status changes to Submitted, and it becomes read-only. Read-only means that no additional operations are allowed on the record. By updating a user property and writing two small Visual Basic scripts, you can specify that synchronized records are also read-only.

To configure synchronized records as read-only

  1. First, the administrator changes the value of the user property Update Status To Synchronized to Y.

    Making this change invokes the UpdateStatusToSynchronized method on the Sample Txn business component.

  2. Then, the administrator writes a small Visual Basic script for this method to change the status on the Sample Txn to Synchronized.
  3. Finally, the administrator writes another Visual Basic script to specify that the record becomes read-only when its status changes to Synchronized.

    This prevents users from accidentally submitting any sample transactions on the server while the same record is still editable on their handheld device.

    NOTE:  Sample transactions are not logged upon submitting a sample drop. They only appear on the handheld device after synchronization has been carried out.

Siebel Pharma Handheld Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.