Siebel Pharma Handheld Guide > Developing Siebel Handheld Applications > Configuring Find Enhancements >
Modifying Applets
The following procedures describe how to modify applets, add new columns to applets and to include control level user properties to support Auto Select. To modify applets
- Add a Find button to Pharma Professional List Applet - CE and Pharma Account List Applet - CE:
- Set the field value with the following property set:
|
|
Display Name |
Find |
MethodInvoked |
FindView |
HTML Type |
MiniButton |
- Navigate to Applet WebLayout.
- Change the Application Context to Siebel ePharma CE.
- Add a new button after New Call Button.
- Save the layout.
- Change the Application Context to All Applications.
- Add the PopupFindApplet control user property to Pharma Professional Call Form Applet - CE.
- Select ContactLastName control and go to the control user property.
- Add a new record with Name as PopupFindApplet and Value as Contact Find Popup Applet.
- Add a new control to Applet Web Template in Layout.
|
|
Name |
Find |
Detail Applet |
Contact Find Popup Applet |
Visible |
False |
- Add the PopupFindApplet Control User Property to Pharma Account Call Form Applet - CE.
- Select AccountName Control and navigate to the Control User Property.
- Add a new record with Name as PopupFindApplet and Value as Account Find Popup Applet.
- Add a new control to Applet Web Template in Layout.
|
|
Name |
Find |
Detail Applet |
Account Find Popup Applet |
Visible |
False |
- You must create four new applets, as detailed in the following tasks:
To create APPLET #1
To create APPLET #2
To create APPLET #3
To create APPLET #4
To create APPLET #1
- Create a new Applet called HH Contact Find Form Applet - CE.
- Set the applet with the following property set:
|
|
Name |
HH Contact Find Form Applet - CE |
Business Component |
Contact |
Class |
CSSFrameFindContact |
Title |
Contact |
Type |
Standard |
No Delete |
TRUE |
- Navigate to Applet User Prop (Child Object of an Applet) and add the following user properties.
The following user properties are set to support multi-select in an pick applet. The Pick Applet Property has values defined as |Field name|, |Dest Field|.
|
|
PickApplet 1 |
Account Find, Name |
PickApplet 2 |
Postal Code Find, Postal Code |
SHCEHideToolBar |
TRUE |
SHCEHideStatusBar |
TRUE |
- Navigate to Controls (child object of the applet)
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Account Find |
Caption |
Affiliations |
Field |
Account Find |
HTML Type |
Field |
Pick Applet |
HH LS Contact Account Affiliation Pick Applet - Multi Select |
Runtime |
TRUE |
- Once the Account Control is added, navigate to its user property (Control User Prop), and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
All |
Caption |
All |
HTML Type |
MiniButton |
Method Invoke |
AllContacts |
- Right-click on to the controls, select New Record, and add the following values:
|
|
Name |
Best Time |
Caption |
Best Call Time |
Field |
Best Time |
HTML Type |
Field |
Runtime |
TRUE |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Postal Code Find |
Caption |
Postal Code |
Field |
Postal Code Find |
HTML Type |
Field |
Pick Applet |
Find Pharma Address Postal Code |
Runtime |
TRUE |
- Once the Postal Code Find Control is added, navigate to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Last Call Date Find |
Caption |
Last Call Date |
Field |
Last Call Date Find |
HTML Type |
Field |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Rep Specialty |
Caption |
Specialty |
Field |
Rep Specialty |
HTML Type |
Field |
Runtime |
TRUE |
- Navigate to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Route |
Caption |
Route |
Field |
Route |
HTML Type |
Field |
Runtime |
TRUE |
- Navigate to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Start Day |
Caption |
Day |
Field |
Start Day |
HTML Type |
Field |
Runtime |
TRUE |
- Navigate to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Search |
Caption |
Search |
HTML Type |
MiniButton |
Method Invoke |
SearchContacts |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
With/Without Planned Call |
Caption |
Planned |
Field |
CallStatus |
HTML Type |
Checkbox |
Runtime |
TRUE |
- Navigate to Applet Web Template and create a record with the following values:
|
|
Name |
Edit |
Type |
Edit |
Sequence |
1 |
Web template |
Applet Form 4 column (Edit/New) |
- Right-click on Applet name and Edit Web Layout.
- Add the new Controls on to the form.
To create APPLET #2
- Create a new Applet called HH Account Find Form Applet - CE with the following values:
|
|
Name |
HH Account Find Form Applet - CE |
Business Component |
Account |
Class |
CSSFrameFindAccount |
Title |
Account |
Type |
Standard |
No Delete |
TRUE |
- Navigate to Applet User Prop (child object of an applet) and add the following user property. The following user properties are set to support multi-select in an pick applet:
|
|
PickApplet 1 |
City Find, City |
PickApplet 2 |
Postal Code Find, Postal Code |
SHCEHideToolBar |
TRUE |
SHCEHideStatusBar |
TRUE |
- Navigate to Controls (child object of the applet)
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
All |
Caption |
All |
HTML Type |
MiniButton |
Method Invoke |
AllAccounts |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Best Time |
Caption |
Best Call Time |
Field |
Best Time |
HTML Type |
Field |
Runtime |
TRUE |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
City |
Caption |
City |
Field |
City Find |
HTML Type |
Field |
Pick Applet |
Find CUT Address - CE City |
Runtime |
TRUE |
- Once the City Control is added, go to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Postal Code Find |
Caption |
Postal Code |
Field |
Postal Code Find |
HTML Type |
Field |
Pick Applet |
Find CUT Address - CE Postal Code |
Runtime |
TRUE |
- Once the Postal Code Find Control is added, go to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Last Call Date Find |
Caption |
Last Call Date |
Field |
Last Call Date Find |
HTML Type |
Field |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Route |
Caption |
Route |
Field |
Route |
HTML Type |
Field |
- Once the Route Control is added, go to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Start Day |
Caption |
Start Day |
Field |
Start Day |
HTML Type |
Field |
- Once the Start Day Control is added, go to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Search |
Caption |
Search |
HTML Type |
MiniButton |
Method Invoke |
SearchAccounts |
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
Type |
Caption |
Account Type |
Field |
Type |
HTML Type |
Field |
- Once the Type Control is added, go to its user property (Control User Prop) and add the following values:
Name: AutoSelect
Value: TRUE
- Right-click on the controls, select New Record, and add the following values:
|
|
Name |
With/Without Planned Call |
Caption |
Planned |
Field |
CallStatus |
HTML Type |
Checkbox |
- Navigate to Applet Web Template and create a record with the following values:
|
|
Name |
Edit |
Type |
Edit |
Sequence |
1 |
Web template |
Applet Form 4 column (Edit/New) |
- Right-click on the Applet name and Edit Web Layout.
- Add the new Controls on to the form.
To create APPLET #3
- Copy Applet #1 (HH Contact Find Form Applet - CE) and change the value of the following property set:
|
|
Name |
Contact Find Popup Applet |
Business Component |
(Leave blank) |
Class |
CSSFramePopupContact |
Type |
Pick List |
- Select Applet Web Template Object and change Web Template name to Popup Query.
- Select Applet and set Popup Dimension Property in the Properties window to 240 X 200.
To create APPLET #4
- Copy Applet #2 (HH Account Find Form Applet - CE) and change the value of the following property set:
|
|
Name |
Account Find Popup Applet |
Business Component |
(Leave blank) |
Class |
CSSFramePopupContact |
Type |
Pick List |
- Select Applet Web Template Object and change Web Template name to Popup Query.
- Select Applet and set Popup Dimension Property in Properties window to 240 X 200.
- Add the applet user property PopupCommitParent = False.
To set the view property
- Navigate to the view Object definition and query for Pharma Professional Calls View - CE.
- Right-click on the Pharma Professional Calls View - CE view and select Copy Record.
- Change the following property value:
Name: Pharma Professional Find View - CE
Business Object: Contact
- Delete any View Report Records, Thread applet Properties, Add to History = False.
- Navigate to View Web Template Item (Child object of View Web Template).
- Add HH Contact Find Form Applet - CE Applet, and delete any other applets if they exist.
There should be only one applet associated to this view with the following values:
|
|
Name |
HH Contact Find Form Applet - CE |
Item Identifier |
1 |
Applet |
HH Contact Find Form Applet - CE |
Applet Mode |
Edit |
- Repeat Step 1 and Step 2 and change the following property value:
Name: Pharma Account Find View - CE
Business Object: Account
- Repeat Step 4.
- Add HH Account Find Form Applet - CE Applet, and delete any other applets if they exist.
There should be only one applet associated to this view with the following values:
|
|
Name |
HH Account Find Form Applet - CE |
Item Identifier |
1 |
Applet |
HH Account Find Form Applet - CE |
Applet Mode |
Edit |
To add the previously-created views to the screen
- Navigate to Screen Object definition and query for ePharma Professionals CE.
- Navigate to Screen Views (child object of screen).
- Right-click on screen views, select New Record, and set the screen views property with the following values:
|
|
Name |
Pharma Professional Find View - CE |
View |
Pharma Professional Find View - CE |
Type |
Aggregate View |
Sequence |
15 (pick the next unused sequence number) |
Leave all other properties empty.
- Navigate to the Screen Object definition and query for ePharma Account CE.
- Navigate to Screen Views (child object of screen).
- Right-click on the screen views, select New Record, and set the screen views property with the following values:
|
|
Name |
Pharma Account Find View - CE |
View |
Pharma Account Find View - CE |
Type |
Aggregate View |
Sequence |
15 (pick the next unused sequence number) |
Leave all other property empty.
- Add New Views to Views/Responsibilities for the representative.
|