在SAP WebClient UI裡顯示倒數計時的UI
First let’s have a look at what is achieved: Once you click work center “Jerry count down”, the count down is displayed with a small animation.
The steps to build this application are almost the same as Step by step to create Bar Chart in Webclient UI.
(1) Create a new WebUI component with a view main.htm:
Paste the following source code for the created view:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""
<script src="count/jquery.lwtCountdown-1.0.js"></script>
<link rel="Stylesheet" type="text/css" href="count/main.css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Countdown demo</title></head><body>
<div id="container">
<h1>Jerry's count down demo</h1>
<h2 class="subtitle">Time left for year 2017</h2>
<div id="countdown_dashboard">
<div class="dash weeks_dash">
<span class="dash_title">weeks</span>
<div class="digit">0</div>
<div class="digit">0</div>
</div>
<div class="dash days_dash">
<span class="dash_title">days</span>
<div class="digit">0</div>
<div class="digit">0</div>
</div>
<div class="dash hours_dash">
<span class="dash_title">hours</span>
<div class="digit">0</div>
<div class="digit">0</div>
</div>
<div class="dash minutes_dash">
<span class="dash_title">minutes</span>
<div class="digit">0</div>
<div class="digit">0</div>
</div>
<div class="dash seconds_dash">
<span class="dash_title">seconds</span>
<div class="digit">0</div>
<div class="digit">0</div>
</div>
</div>
<script language="javascript" type="text/javascript">
jQuery(document).ready(function() {
$('#countdown_dashboard').countDown({
targetDate: {
'day': 31,
'month': 11,
'year': 2017,
'hour': 23,
'min': 59,
'sec': 59
}
});
});
</script>
</div></body></html>
As you see I hard code the last second of year 2017 as the time to count down here, feel free to replace with your own date and time.
(2) Go to tcode SE80, tab MIME Repository, create a new folder named count and import these nine files.
(3) Create a new work center and put the ui component into it.
Please find step by step about how to achieve it from this wiki page How to add an custom UI component into a new work center.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715685/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- 如何在SAP WebClient UI裡使用jChartFXWebclientUI
- 在SAP CRM WebClient UI裡開啟ABAP Webdynpro頁面WebclientUI
- SAP CRM WebClient UI上以html格式顯示note的問題討論WebclientUIHTML
- 如何在SAP WebClient UI裡使用HANA Live reportWebclientUI
- 如何把SAP CRM WebClient UI上某個欄位高亮加粗顯示WebclientUI
- 三種動態控制SAP CRM WebClient UI assignment block顯示與否的方法WebclientUIBloC
- 在SAP WebClient UI裡使用AJAX進行非同步資料讀取WebclientUI非同步
- SAP WebClient UI的白屏問題分析WebclientUI
- 在 CRM WebClient UI 中使用純 JavaScript 顯示 3D 足球效果WebclientUIJavaScript3D
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- 在SAP CRM WebClient UI中用javascript觸發ABAP eventWebclientUIJavaScript
- SAP CRM WebClient UI 支援的一些 url 引數WebclientUI
- SAP CRM WebClient UI和Hybris backoffice UI開發的相同點WebclientUI
- 如何在SAP WebClient UI裡建立柱狀圖(bar chart)WebclientUI
- SAP WebClient UI的會話重啟原理WebclientUI會話
- 使用note++開發SAP WebClient UIWebclientUI
- SAP UI5 裡如何讓每次檢視顯示時都執行某方法UI
- SAP WebClient UI One Hit Navigation的實現方法WebclientUINavigation
- SAP WebClient UI overview頁面裡assignment block的可見性分析技巧WebclientUIViewBloC
- 如何在 WebClient UI 裡建立 Value HelpWebclientUI
- SAP CRM WebClient UI異常的持久化機制WebclientUI持久化
- 將SAP CRM WebClient UI的表格匯出成PDFWebclientUI
- 如何將SAP WebClient UI的表格匯出成PDFWebclientUI
- SAP CRM WebClient UI上將text area裡的文字清空的後臺處理WebclientUI
- 視訊直播系統原始碼,倒數計時顯示,商品秒殺倒數計時原始碼
- Jerry答網友提問:SAP CRM WebClient UI裡的EXT,STRUCT等含義WebclientUIStruct
- SAP UI5 進階 - JSON 模型欄位裡的值,顯示在最終 UI5 介面上的奧秘分析試讀版UIJSON模型
- SAP WebClient UI配置決定(configuration)的邏輯介紹WebclientUI
- SAP CRM WebClient UI的Delta處理機制介紹WebclientUI
- 【Qt】UI顯示中文QTUI
- 聊聊 SAP 產品 UI 上的訊息顯示機制UI
- SAP CRM WebClient UI和Hybris的controller是如何被呼叫的WebclientUIController
- SAP UI5 SimpleForm 裡在水平方向顯示多組 Form 元素的實現方法試讀版UIORM
- 如何在 SAP UI5 應用裡顯示 PDF 檔案試讀版UI
- 使用Selenium自動化測試SAP CRM WebClient UIWebclientUI
- 自己實現一個SAP WebClient UI Repository Information SystemWebclientUIORM