on 2013 Sep 07 12:45 AM
Hi All,
I am getting "Unknown runtime error" related to javascript. I followed below mentioned blog. But my expand button is not working. Here is my complete page code.
http://wiki.sdn.sap.com/wiki/display/CRM/New+appointment+assignment+block+at+home+screen
<!DOCTYPE HTML>
<html>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="crm_bsp_ic" prefix="crmic" %>
<%@extension name="bsp" prefix="bsp" %>
<!-- CSS goes in the document HEAD or added to your external stylesheet -->
<style type="text/css">
.appTab table {
font-family: verdana,arial,sans-serif;
font-size:11px;
color:#333333;
border-width: 100%;
padding:3px;
border-style: solid;
border-color: #666666;
background-color: #ffffff;
text-align: left;
border-collapse: collapse;
}
.appTab td {
font-family: verdana,arial,sans-serif;
font-size:11px;
color:#333333;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666;
background-color: #ffffff;
margin: 1px 1px 1px 1px;
text-align: left;
width: 181px;
}
.appTab th, td#titleId {border-width: 1px;
padding:1px;
border-style: solid;
border-color: #666666;
background-color: #ffffff;
text-align: left;
margin: 1px 1px 1px 1px;
width: 180px;
}
.appTab .th-tv-row-mo {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-col{background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-col .th-lk {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left; }
.appTab .th-tv-col-mo{background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
/* only the expander in the footer of the table */
.appTab .th-tv-expander {
background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;
}
.appTab .th-tv-expander-i1 { border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666;
background-color: #ffffff; }
.appTab .th-tv-expander-i2 {border-bottom:1px; width: 1px; background: #ffffff; padding: 1px 1px 1px 1px;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-expander img {background: #ffffff; margin: 1px 1px 1px 1px;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
/* pager and expander combined in the footer of the table */
.appTab .th-tv-footer {border-style: solid;
border-color: #666666; padding: 3px;background-color: #ffffff;
border-width: 1px;
padding:3px;
text-align: left;}
.appTab .th-tv-footer table { font-family: verdana,arial,sans-serif;font-size:11px;color:#333333;border-width: 3px; border-style: solid;
border-color: #666666; padding: 3px;}
.appTab td.th-tv-footer-left {border-style: solid;
border-color: #666666; padding: 3px; margin:1px 1px 1px 1px; padding: 1px; background: #ffffff; width: 10px;}
.appTab .th-tv-footer-left .th-tv-expander {border: 1px;background:#ffffff; padding: 1px;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-footer-left .th-tv-expander-i1 {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-footer-left .th-tv-expander-i2 {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab td.th-tv-footer-right {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-footer-right .th-tv-pager{background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left;}
.appTab .th-tv-footer-right .th-tv-pager-i1 {background-color: #ffffff;
border-width: 1px;
padding:3px;
border-style: solid;
border-color: #666666; padding: 3px;
text-align: left; }
</style>
<%
data: lv_xml type string.
lv_xml = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
%>
<!-- Table goes in the document BODY -->
<table class='appTab' cellpadding='0' cellspacing='0'>
<chtmlb:configCellerator xml ="<%= lv_xml %>"
design ="TRANSPARENT"
id="ResTable"
headerText ="<th> Activity Date </th><th> Category </th><th> Description </th><th> Account Name </th><th> Contact Person </th><th> Call Purpose </th>"
noHeader ="FALSE"
onRowSelection ="select"
table="//Resultnew/Table"
width="100%"
horizontalScrolling ="false"
actionsMaxInRow ="5"
fillUpEmptyRows =" "
selectedRowIndex ="<%= Resultnew->SELECTED_INDEX %>"
selectedRowIndexTable ="<%= Resultnew->SELECTION_TAB %>"
selectionMode ="<%= Resultnew->SELECTION_MODE %>"
usage ="HOMEPAGE"
editMode ="NONE"
visibleRowCount ="10" />
</table>
</html>
Also, please see the attached error screen print. If I run the same application in Chrome, I am not getting any JavaScript error but my above mentioned table is over ridden by the other standard background table.
Any help would be much appreciated.
Thank you,
Uday
Request clarification before answering.
Anyone please help..!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Uday,
please check following notes:
1303916
1303863
1302789
1301750
1303095
1037677
Normally the JavaScript file should be compressed. To make sure of this, open the SE80 transaction, then open the BSP Application called "thtmlb_scripts". In the Pages with Flow Logic section you'll find a file called scripts.js. That file is what ultimately gets rendered into the JavaScript file used by the browser. In the file's Properties tab, you should see the Compression drop-down list box set to "Remove leading and trailing spaces" and the Compression checkbox should be checked (enabling GZIP compression).
What type of browser do you use ?
Did you check Product Availability Matrix for supported browsers ?
Best regards,
Adrian
I din't find the profile parameter : ict/disable_compression
Is this the cause for JavaScript error. But the properties are as per you said.
We are using IE8 or IE9.
Yes this browser is supported.
Please find attached screen print which shows that the drop-down selection is "Remove leading and trailing spaces".
Please let me know if it is due to missing profile parameter in RZ11.
Thank you,
Uday Kanike
Hi Adrian,
Our Basis version is
SAP_BASIS | 702 | 0011 | SAPKB70211 | SAP Basis Component |
and other info:
Kernel release 720 DB client lib. SQL_Server_9.00
Compilation NT 5.2 3790 S x86 DB releases MSSQL 9.00.2047 o
Sup.Pkg lvl. 300 DBSL version 720.00
ABAP Load 1780 DBSL Patch Level 218
CUA load 39
Mode opt
Rsyn file IP address 192.168.14.52
SAP versions 700, 710, 701, 702, 711, 720, 730
Operating System Windows NT 5.0, W
OP release 5.2
Thank you,
Uday
User | Count |
---|---|
66 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.