This discussion is archived
4 Replies Latest reply: Feb 14, 2013 4:45 AM by cornelka RSS

Bug report:on application import: page template substitution strings double

cornelka Newbie
Currently Being Moderated
apex version: 4.2.0.00.27
We encounter an issue when we import an application export. In all the page templates we see that the standard substitution strings in the HEADER and FOOTER area have been added for a second time.
EXPORTED CODE:
wwv_flow_api.create_template (
p_id => 32176400365879390 + wwv_flow_api.g_id_offset
,p_flow_id => wwv_flow.g_flow_id
,p_theme_id => 20
,p_name => '_vo_One Level Tabs_Simple'
,p_is_popup => false
,p_header_template => '<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||unistr('\000a')||
'<head>'||unistr('\000a')||
'<title>#TITLE#</title>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_common2.js"></script>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/datepicker.js"></script>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/datepicker-ext.js"></script>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_show_hide_region.js"></script>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_desktop_all.js"></script>'||unistr('\000a')||
'<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_legacy.js"></script>'||unistr('\000a')||
'<link rel="stylesheet" href="#IMAGE_PREFIX#app/pbh/css/pbh.css" type="text/css" />'||unistr('\000a')||
'<!--[if IE]><link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/ie.css" type="text/css" /><![endif]-->'||unistr('\000a')||
'#APEX_CSS#'||unistr('\000a')||
'#TEMPLATE_CSS#'||unistr('\000a')||
'#THEME_CSS#'||unistr('\000a')||
'#PAGE_CSS#'||unistr('\000a')||
'#TEMPLATE_JAVASCRIPT#'||unistr('\000a')||
'#APPLICATION_JAVASCRIPT#'||unistr('\000a')||
'#PAGE_JAVASCRIPT#'||unistr('\000a')||
'#HEAD#'||unistr('\000a')||
'</head>'||unistr('\000a')||
'<body #ONLOAD#>#FORM_OPEN#'
,p_box =>
'<div id="t20Tabs">#TAB_CELLS##NAVIGATION_BAR#</div>'||unistr('\000a')||
'<table border="0" cellpadding="0" cellspacing="0" summary="" id="t20PageBody" width="100%">'||unistr('\000a')||
'<td width="100%" valign="top" id="t20ContentBody">'||unistr('\000a')||
'<div id="t20BreadCrumbsLeft">#REGION_POSITION_01#</div>'||unistr('\000a')||
'<div id="t20Messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##REGION_POSITION_02#</div>'||unistr('\000a')||
'<div id="t20ContentMiddle">#BOX_BODY##R'||
'EGION_POSITION_03##REGION_POSITION_04##REGION_POSITION_05##REGION_POSITION_06#</div>'||unistr('\000a')||
'</td>'||unistr('\000a')||
'</tr>'||unistr('\000a')||
'</table>'
,p_footer_template =>
'<div class="smallfont">PBH Versie: #APP_VERSION#</div>'||unistr('\000a')||
'#FORM_CLOSE# '||unistr('\000a')||
'#DEVELOPER_TOOLBAR#'||unistr('\000a')||
'#GENERATED_CSS#'||unistr('\000a')||
'#GENERATED_JAVASCRIPT#'||unistr('\000a')||
'</body>'||unistr('\000a')||
'</html>'
,p_success_message => '<table summary="" border="0" cellpadding="0" cellspacing="0" id="t20Notification">'||unistr('\000a')||
'<tr><td class="L"></td><td width="100%">#SUCCESS_MESSAGE#</td><td class="R"></td></tr>'||unistr('\000a')||
'</table>'
,p_current_tab => '#TAB_LABEL#'
,p_non_current_tab => '#TAB_LABEL#'
,p_notification_message => '<table summary="" border="0" cellpadding="0" cellspacing="0" id="t20Notification">'||unistr('\000a')||
'<tr><td class="L"></td><td width="100%">#MESSAGE#</td><td class="R"></td></tr>'||unistr('\000a')||
'</table>'
,p_navigation_bar => '#BAR_BODY#'
,p_navbar_entry => '#TEXT#'
,p_region_table_cattributes => ' summary="" cellpadding="0" border="0" cellspacing="5" align="left"'
,p_breadcrumb_def_reg_pos => 'REGION_POSITION_01'
,p_theme_class_id => 1
,p_grid_type => 'TABLE'
,p_grid_always_use_max_columns => false
,p_grid_has_column_span => true
,p_grid_emit_empty_leading_cols => true
,p_grid_emit_empty_trail_cols => false
,p_has_edit_links => true
,p_translate_this_template => 'N'
,p_template_comment => ''
);

RESULT IN APEX for the HEADER
<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">
<head>
<title>#TITLE#</title>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_common2.js"></script>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/datepicker.js"></script>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/datepicker-ext.js"></script>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_show_hide_region.js"></script>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_desktop_all.js"></script>
<script type="text/javascript" src="#IMAGE_PREFIX#app/common/js/app_legacy.js"></script>
<link rel="stylesheet" href="#IMAGE_PREFIX#app/pbh/css/pbh.css" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/ie.css" type="text/css" /><![endif]-->
#APEX_CSS#
#TEMPLATE_CSS#
#THEME_CSS#
#PAGE_CSS#
#TEMPLATE_JAVASCRIPT#
#APPLICATION_JAVASCRIPT#
#PAGE_JAVASCRIPT#
*#APEXCSS#*_
*#TEMPLATECSS#*_
*#THEMECSS#*_
*#PAGECSS#*_
*#APEXJAVASCRIPT#*_
*#TEMPLATEJAVASCRIPT#*_
*#APPLICATIONJAVASCRIPT#*_
#HEAD#
</head>
<body #ONLOAD#>#FORM_OPEN#

The added substitution strings are bold + underlined.

Is there a parameter (application, export, template, instance level) that we can set to prevent this ?

Edited by: Karel C on 12-feb-2013 5:32

Edited by: Karel C on 12-feb-2013 5:32

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points