Configuring Siebel Open UI > Customizing Siebel Open UI for Siebel Mobile > Customizing Layout, Views, Menus, Lists, and Controls >
Customizing Mobile Lists
This topic describes how to configure Siebel Open UI to create a custom mobile list. To customize mobile lists
- Configure the manifest:
- Log in to the Siebel client with administrative privileges.
For more information about the screens that you use in this step, see Configuring Manifests.
- Navigate to the Administration - Application screen, and then the Manifest Files view.
- In the Files list, add the following file.
|
|
Name |
siebel/jqmcustomlistrenderer.js |
Name |
siebel/jqgridrenderer.js |
- Navigate to the Administration - Application screen, and then the Manifest Administration view.
- In the UI Objects list, specify the following applet.
|
|
Type |
Applet |
Usage Type |
Physical Renderer |
Name
|
LS Pharma Account Calls List Applet - Mobile |
- In the Object Expression list, add the following expression. Siebel Open UI uses this expression to render the applet on a mobile platform.
|
|
Expression |
Mobile |
Level
|
1 |
- In the Files list, add the following file:
siebel/jqmcustomlistrenderer.js
- In the Object Expression list, add the following expression. Siebel Open UI uses this expression to render the applet on a desktop platform.
|
|
Expression |
Desktop |
Level
|
2 |
- In the Files list, add the following file:
siebel/jqgridrenderer.js
- Configure the list renderer:
- Download the jqmlistrenderer.js file to the following folder:
CLIENT_HOME\SWEApp\PUBLIC\language_code\files\custom
To get a copy of this file, see Article ID 1494998.1 on My Oracle Support.
- Rename the file you downloaded in Step a to jqmcustomlistrenderer.js.
- Use a JavaScript editor to open the jqmcustomlistrenderer.js file.
- Modify the following code that resides in the jqmcustomlistrenderer.js file. Bold font indicates the code that you must modify.
Replace This Old Code. . . |
|
SiebelApp.S_App.RegisterConstructorAgainstKey(SiebelApp.Constants.get("SWE_UIDEF_LIST_PRENDR"),"SiebelAppFacade.JQMCustomListRenderer");
|
define("siebel/jqmcustomlistrenderer", ["order!3rdParty/jqmobile/mobiscroll.custom-2.5.0.min", "order!3rdParty/jqmobile/jquery.swipeButton.min", "order!3rdParty/jqmobile/jquery.easing.1.3", "order!3rdParty/jqmobile/jquery.mobile.scrollview", "order!3rdParty/jquery.mobile.scrollview-ext", "order!siebel/jqmsearchctrl", "order!siebel/jqmformrenderer", "order!siebel/jqmscrollcontainer"], function () {
Use the Define method to identify the physical renderer file. You must use the Define method to make Siebel Open UI can identify the constructor. You must include the relative path and the name of the presentation model file without the file name extension. For more information, see Define Method. |
Locate the following code in the JQMCustomListRenderer.prototype.ShowUI method: this.GetJQMList().html("<ul id='" + listId + "'></ul>");
|
this.GetJQMList().html("<ol id='" + listId + "'></ol>");
|
JQMListRenderer.prototype.GetListHeightreturn $("#" + this.GetScrollcontainer()).children("ul").height();
|
return $("#" + this.GetScrollcontainer()).children("ol").height();
|
Locate the second occurrence of the following code: for (index = 0; index < ColList.length; index++)
{...}
|
Delete the entire section. |
- Test your modifications:
- Log in to the ePharma application.
- Reset the Safari browser so that it uses mobile mode.
- Navigate to the Calls screen.
- Make sure the Calls applet uses the new physical renderer when in mobile mode. This renderer displays calls in the following numbered list.
- Modify the style:
- In Windows Explorer, navigate to the following folder:
CLIENT_HOME\PUBLIC\language_code\files
- Use an editor to open the theme-black.css file.
- Locate the following code:
.ui-li-heading { font-family: Helvetica, Neue; font-size: 15pt; /15pt;/ /*100%; */ font-weight: bold; display: block; margin: .5em 0 0 .4em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
- Modify the code that you located in Step c. You modify the display from block to inline. See the following bolded code:
ui-li-heading { font-family: Helvetica, Neue; font-size: 15pt; /15pt;/ /*100%; */ font-weight: bold; display: inline; margin: .5em 0 0 .4em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
- Test your modifications:
- Restart the Safari browser.
- Navigate to the Calls screen.
- Make sure the Calls applet uses the following inline display.
|