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

Keeping Server and Handheld Samples Records in Sync


Administrators can manage samples inventory using either Siebel Pharma Handheld or Siebel Pharma, but should not use both. In order to keep samples inventories in sync, end users should be prevented from submitting 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, meaning 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.

  • 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.

  • Then, the administrator writes a small Visual Basic script for this method to change the status on the Sample Txn to "Synchronized."
  • 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 the sample transactions on the server while the same record is still editable on their handheld device.

Siebel Pharma Handheld Guide