Modifiche all'ambiente
Modificare il campo "SELECTOR" impsotando le Column-Heading a "O" e "-"
Modificare il campo "DATE" portarlo a 8 caratteri ed impostare il valore di default a "*DATE8"
Modiicare le variabili di sistema per porterle a DINAMICHE:
- *USER
- Tutte le date
Modifiche da fare al file "std_script.js"
Rinominare la routine "stdSetElementValue" in "__OLD__stdSetElementValue" ed inserire questa:
function stdSetElementValue(id, value, async)
{
if (async)
{
var valuex = escape(value);
setTimeout("stdSetElementValue('" + id + "', '" + valuex + "', false)", 1);
}
else
{
var valuex = unescape(value);
var elem = document.getElementById(id);
if (elem != null) elem.value = valuex;
}
}
Modifiche da fare al file "std_script_v2.js"
Rinominare la routine "isDblClick" in "__OLD__isDblClick" ed inserire questa:
function isDblClick(elem)
{
if (!(elem.__lastClickedTime))
{
elem.__lastClickedTime = 0;
}
elem.__lastClickedTime += 1;
return (elem.__lastClickedTime > 1);
}
Modiche da fare al file "std_script_lansa_ppc_xhtml_v2.js"
Rinominare la routine "createReentryFields" in "__OLD__createReentryFields" ed inserire questa:
function createReentryFields(f, spansParent)
{
if (f != null)
{
var spans = getReentrySpans(spansParent, null);
var reentryField = null;
var reentryValue = null;
var re = new RegExp("(<!---->)$");
for (var i=0, s; s=spans[i]; i++)
{
if (s.id == "reentryfield") reentryField = s.innerHTML.replace(re, "");
if (s.id == "reentryvalue")
{
reentryValue = s.innerHTML.replace(re, "");
if ((reentryValue == null) || (reentryValue == "")) reentryValue = " ";
}
if (reentryField && reentryValue)
{
insertHiddenField(f, reentryField, reentryValue);
reentryField = null;
reentryValue = null;
}
}
}
}
Modifiche da fare al FrameWork
!!--1) Modificare il file VF_SY004_1.dat in X_CAL\EXECUTE:
- Aggiungere questo prima del "return" della funzione "__CreateFramework__()"
/* AGGIUNTA PER FAR FUNZIONARE I COMMAND DEI MENU CONTESTUALI NEI NOSTRI FRAMEWORK */
parent.VF_SY001_EVENT_HANDLER_MenuItemMouseEnter = window.VF_SY001_EVENT_HANDLER_MenuItemMouseEnter;
parent.VF_SY001_EVENT_HANDLER_MenuItemMouseLeave = window.VF_SY001_EVENT_HANDLER_MenuItemMouseLeave;
parent.VF_SY001_EVENT_HANDLER_MenuItemMouseClick = window.VF_SY001_EVENT_HANDLER_MenuItemMouseClick; --!!
2) Modificare la weblet "vlf_layout" ed aggiungere:
Questo nella DIV HIDDEN
<xsl:comment> * INIZIO * inserito da EMMEDATA </xsl:comment>
<input type="hidden" maxlength="256" size="256" name="ED_TITLE" value="{key('field-value', 'ED_TITLE')}" />
<xsl:comment> * FINE * inserito da EMMEDATA </xsl:comment>
Questo subito SOTTO la DIV HIDDEN
<xsl:comment> * INIZIO * inserito da EMMEDATA </xsl:comment>
<xsl:if test="key('field-value', 'ED_TITLE') != ''">
<div id="ED_TITLE_DIV" style="width:100%; height: 30px;">
<table height="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td style="font-weight: bold;font-size: 14;"
valign="center">
<xsl:value-of select="key('field-value', 'ED_TITLE')" />
</td>
</tr>
</table>
</div>
</xsl:if>
Modificare la call-template <xsl:call-template name="script"/> in questo modo:
<xsl:call-template name="script">
<xsl:with-param name="javascript_files" select="'ed_scripts.js,ed_scripts_v2.js,ed_ajax.js,ed_drag.js'" />
</xsl:call-template>
Questo sotto il tag <STYLE> nelle <HEAD>
<script language="javascript" type="text/javascript" src="{$lweb_scripts_path}/ed_scripts.js"><!----> </script>
<script language="javascript" type="text/javascript" src="{$lweb_scripts_path}/ed_scripts_v2.js"><!----> </script>
<link href="{$lweb_style_path}/ed_style.css" type="text/css" rel="stylesheet" />
<link href="{$lweb_style_path}/ed_style_output.css" type="text/css" rel="stylesheet" />
Modificare il tag <body> in questo modo:
<body onkeydown="controllaNuovo();" onload="SetFocus();">
3) Modificare il file VF_XXNNN.JS
Sostituire la stringa "VFU0048" con "EDFW002'
function VF_UM011_PRIVATE_Row_onClick()
prima della chiamata alla funzione objMainVF_FP003.EndSelectionUpdate dopo l'ultima parentesi graffa "}" inserire queste istruzioni:
var _ed_exec_dft = false;if (event.shiftKey || event.ctrlKey){_ed_exec_dft = false;}else{_ed_exec_dft = thisObject.flagExecuteDefaultCommand;};
modificare il parametro nella funzione objMainVF_FP003.EndSelectionUpdate da flagExecuteDefaultCommand a _ed_exec_dft
cercare la stringa objMenuToShow.style.top =VF_UM005_Container.clientHeight -2 e sostituirla con
objMenuToShow.style.top =(VF_UM005_Container.offsetParent.offsetTop + VF_UM005_Container.clientHeight - 2)
cercare la stringa (arrayintAddColWidth[inti].toString()+"%") e sostituire il carattere "%" con "px"
/* ========== SOLO PER VERSIONE 843 del framewrok per farlo funzionare su IE9 ================ */
function __destroy(objObject):
aggiungere il cosrtutto "try {}catch(oE){} attorno al ciclo "for"
/* =================================================================== */
VF_SY506_EVENT_HANDLER_onkeydown
Sistemare il "case 8:" con
remmare //if ((strTagName != "INPUT") && (strTagName != "TEXTAREA") && (!(ele3.isContentEditable))) {
inserire if (!ele3.isContentEditable) {
Sistemare il "case 13:" con
if (objDftButton != null) {
objDftButton.setActive();
if (objDftButton == objEvent.srcElement.form.__defaultSubmitButton)
{
objEvent.srcElement.form.fireEvent("onsubmit");
} else {
objDftButton.fireEvent("onclick");
}
}
VF_SY506_PRIVATE_GetDftButton
aggiungere prima del return
if ( (objDftButton == null) && (objSourceElement.form.__defaultSubmitButton != undefined) && (objSourceElement.form.__defaultSubmitButton != null ) )
{
objDftButton = objSourceElement.form.__defaultSubmitButton;
}
function VF_SY503_PRIVATE_HandleEvent
sostituire il pezzo di assegnazione dell'objFrameWindow
if (argthis != null)
{
objFrameWindow = argthis;
} else if (argthisObject != null)
{
objFrameWindow = argthisObject
} else {
objFrameWindow = this;
}
if (typeof(objFrameWindow.thisObject) === 'undefined')
{
if (VF_System.intWamWindowRef != null)
objFrameWindow = VF_System.ConvertThisObjectID(VF_System.intWamWindowRef);
else if (VF_System.intWebWindowRef != null)
objFrameWindow = VF_System.ConvertThisObjectID(VF_System.intWebWindowRef);
}