Bookshelf Home | Contents | Index | PDF |
Siebel Life Sciences Guide > Using Personalized Content Delivery > Using Signature Control for Personalized Content Delivery > Signature Capable MessagesA signature capable message is an SWF file that has a space allocated in it for displaying the PCD signature control: SignatureCtrl.swf. The file communicates with both the signature control and the PCD application. To properly implement a signature capable message certain requirements are member variables must be set, and certain methods must be applied. Follow the requirements in the following sections before using signature control:
Member Variable Requirement for Signature Capable MessagesIn order to hold a pointer to the SignatureCtrl.swf embedded within the message set the following variable:
This pointer will be used to invoke methods in SignatureCtrl.swf Method Requirements for Signature Capable MessagesThe following method requirements must be met in order to properly implement signature control:
FlexApp ExamplesFlexApp is a sample signature asset created in Flex. This asset has the following minimum method requirements:
FlexApp appLoaded ExampleFlexApp.mxml has a method called appLoaded. The <mx:Application .....................applicationComplete="appLoaded();"> public function appLoaded():void Application.application.signAssetLoadComplete(this); The appLoaded method notifies the parent application -- in this case Interactive Detailer -- that the Signature Asset is loaded and ready to load SignatureCtrl.swf, using the following statement: Application.application.signAssetLoadComplete(this); Where Application.application refers to Interactive Detailer and signAssetLoadComplete refers to a method in Interactive Detailer that receives a pointer to the Signature Asset as an input parameter. This pointer will be used by the Interactive Detailer to send data to the SignatureCtrl.swf embedded in the Asset. FlexApp LoadSignCtrl ExampleFlexApp.mxml has member variable of type SystemManager. This member variable holds a pointer to the SignatureCtrl.swf embedded within the asset. The pointer is shown in the following sample: private var m_signCtrl:SystemManager; public function loadSignCtrl(strSignCtrl:String):void loader.addEventListener(Event.INIT, loadComplete); private function loadComplete (event:Event):void m_signCtrl = SystemManager(event.target.content); The Interactive Detailer sends the path of SignatureCtrl.swf The Signature Asset method, loadSignCtrl FlexApp InvokeSignCtrlMethod ExampleFlexApp.mxml also implements a method called InvokeSignCtrlMethod. When the Interactive Detailer is required to send data to SignatureCtrl.swf, it does so by calling this method in the Asset. The following XML data is passed to the Asset: public function InvokeSignCtrlMethod(strXMLData:String):void |
Siebel Life Sciences Guide | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |