iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
recently a migration activity of the WebUI components has been carried out from the 2009 version to the 2017 version.
Among the various features used, there was the guided compilation of dates through masking and the pre-set date format.
By verifying in test we could not in any way keep these features active, as leaving the properties set was in no way possible to impute the dates.
Below is the old code and the new code to allow at least the free allocation of dates (attached the ASPX page):
Old code: <ISWebInput:WebInput ID="wiSellInDal" runat="server" Height="20px" MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" Width="80px" RuntimeLicenseKey="N7HV3-DXL7-31CCP" > <EditFormat format="dd/MM/yyyy" isenabled="True"> <MaskInfo MaskExpression="00/00/0000"/> </EditFormat> <DateTimeEditor IsEnabled="True" footertodaytext="Oggi è "/> <CultureInfo CultureName="it-IT"/> <DisplayFormat Format="dd/MM/yyyy"> <ErrorWindowInfo IsEnabled="False"/> </DisplayFormat> <HighLight IsEnabled="True" Type="Phrase"/> </ISWebInput:WebInput> New code: <ISWebInput:WebInput ID="wiSellInDal" runat="server" Height="20px" MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" Width="80px" RuntimeLicenseKey="A6S08-OI7P-406O7" > <%-- RA20190508: masking of dates in the new version of the components does not work <EditFormat format="dd/MM/yyyy" isenabled="True"> <MaskInfo MaskExpression="00/00/0000"/> </EditFormat> <HighLight IsEnabled="True" Type="Phrase"/> --%> <DateTimeEditor IsEnabled="True" footertodaytext="Oggi è "/> <CultureInfo CultureName="it-IT"/> <DisplayFormat Format="dd/MM/yyyy" IsEnabled="True" ErrorText=""> <ErrorWindowInfo IsEnabled="False"/> </DisplayFormat> </ISWebInput:WebInput>
Will we kindly ask you if you have alternative solutions that you can apply to webinputs so that you can preserve the original functioning in the imputation of dates?
ASPX PAGE:
<%@ Page Language="C#" MasterPageFile="~/Promo.Master" AutoEventWireup="true" CodeBehind="CodificaPromozione.aspx.cs" Inherits="WebPromo.CodificaPromozione" Title="Codifica Promozione" %>
<%@ Register assembly="ISNet.WebUI.WebInput" namespace="ISNet.WebUI.WebControls" tagprefix="ISWebInput" %>
<%@ Register assembly="ISNet.WebUI.WebCombo" namespace="ISNet.WebUI.WebCombo" tagprefix="ISWebCombo" %>
<%@ MasterType VirtualPath="~/Promo.Master" %>
<%@ Register assembly="ISNet.WebUI.WebDesktop" namespace="ISNet.WebUI.WebDesktop" tagprefix="ISWebDesktop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="JS/Constant.js"></script>
<script type="text/javascript">
var SavingRetroplanning = false;
function formattaDate(controlId){
controlId.value = controlId.value.replace(/^(\d\d)(\d)$/g, '$1/$2').replace(/^(\d\d\/\d\d)(\d+)$/g, '$1/$2').replace(/[^\d\/]/g, '');
}
//Funzione per la chiamata del postback delle pagine contenute nei tab
function wcCodPromo_OnBeforeTabChanged(controlId, activeTab, previousTab)
{
var frameRef = window.frames[activeTab.Name];
if(frameRef.postBackFromParent!=null)
frameRef.postBackFromParent();
var webTab = ISGetObject(WC_COD_PROMO);
if(previousTab.Name==NAME_FORMAT_PRE)
var webTabItem = webTab.TabPages[1];
webTabItem.SetContentURL(TAB_FOLDER + PAGE_FORMAT_PRE);
if(previousTab.Name==NAME_DATE_CON)
var webTabItem = webTab.TabPages[3];
webTabItem.SetContentURL(TAB_FOLDER + PAGE_DATE_CON);
return true;
function wcCodPromo_OnAfterTabChanged(controlId, activeTab, previousTab)
if(webTab.ActiveTabIndex == 3)
var frameRef = window.frames[webTab.ActiveTab.Name];
if(SavingRetroplanning && frameRef.SetGridBusy != null)
frameRef.SetGridBusy(true);
//var webTabItem = webTab.TabPages[3];
//webTabItem.SetContentURL(TAB_FOLDER + PAGE_DATE_CON);
function OpenPanel()
var dlgBox = ISGetObject(WD_SELEZ_FORNITORE);
dlgBox.ShowDialog();
function ClosePanel(_row)
dlgBox.CloseDialog();
if(_row!=null)
var webTabItem = webTab.GetActiveTab();
var frameRef = window.frames[webTabItem.Name];
frameRef.addRow(_row);
function OpenRetroplanningPanel(_dataMember, _value)
var dlgBox = ISGetObject("wdSelezRetroplanning");
dlgBox.SetContentURL("PopUp/SelezRetroplanning.aspx?Value="+_value);
function CloseRetroplanningPanel(_arrDate)
if(_arrDate!=null)
frameRef.PanelUpdate(_arrDate);
function OpenDateConsegnaPanel(_dataMember,_value)
var dlgBox = ISGetObject("wdSelezDateConseg");
dlgBox.SetContentURL("PopUp/SelezDateConseg.aspx?Value="+_value);
function CloseDateConsegnaPanel(_arrDate,_arrAsseg)
frameRef.PanelUpdate(_arrDate,_arrAsseg);
function Conferma(_controlId,_parameter)
saveCurrentTab();
buSuccess();
//ResetPopUp();
function saveCurrentTab() {
alert("saveCurrentTab");
function Annulla() {
function Disabilita() {
//Paola Tripolisi 09/10/2013: aggiunta gestione multi tema alla promo
var btnAddTema = ISGetObject("btnAddTema");
btnAddTema.Disable();
function Abilita() {
btnAddTema.Enable();
function ReloadData()
function OpenWIPDialog()
var wdWorking = ISGetObject("WdWorking");
wdWorking.ShowDialog();
function CloseWIPDialog()
//Chiusura wd attesa
if(wdWorking.Window != null)
if(wdWorking.Window.IsClosed == false)
wdWorking.CloseDialog();
function UpdateDateCons()
if(webTab.ActiveTabIndex == 3 && webTab.ActiveTab != null)
if(frameRef.SetGridBusy != null)
frameRef.SetGridBusy(false);
if(frameRef.refreshGrid!=null)
frameRef.refreshGrid();
function SetSavingRetroplanning(NewVal)
SavingRetroplanning = NewVal;
function GetSavingRetroplanning()
return SavingRetroplanning;
function InsTemiClick() {
var dlgBox = ISGetObject("wdbInsTemi");
dlgBox.Text = "";
dlgBox.SetContentURL("");
var page = "InsTemi.aspx";
var wiPromoA = ISGetObject("wiPromoAgoraCd");
var wiAnnoA = ISGetObject("wiPromoAgoraAnno");
var promoAgora = wiPromoA.Text;
var annoAgora = wiAnnoA.Text;
var errorMessage = "Parametri Promo e anno Agora non validi.";
if (promoAgora != "" && annoAgora != "") {
dlgBox.SetContentURL("/PopUp/" + page + "?PROMO_AGORA_CD=" + promoAgora + "&PROMO_AGORA_ANNO=" + annoAgora);
else {
parent.ErrorMessageNew("800", errorMessage, "I", "");
function PopUpOnClose(flag) {
if (flag == "S") {
if (flag == "A") {
//Fine Paola Tripolisi
function Alert(){}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="promoHeader" runat="server">
<asp:UpdatePanel ID="updPanelTestata" runat="server" UpdateMode="Conditional"
ChildrenAsTriggers="False" >
<ContentTemplate>
<table class="tblPromo">
<tr>
<td>
<ISWebDesktop:WebDialogBox ID="wdSelezfornitore" runat="server" ContentURL="..\PopUp\SelezFornitore.aspx" DialogBoxImage="None"
Height="450px" ShadowColor="Gray" Width="700px" Text="Nuovo Fornitore" StartPosition="CenterDesktop" RuntimeLicenseKey="7RI7M-YFCU-36L48">
<WindowSettings ContentMode="UseIFrame">
<WindowStyle>
<Normal CssClass="windowsStyleNormal"/>
<Active CssClass="windowsStyleNormal"/>
</WindowStyle>
<CaptionStyle>
<Normal CssClass="captionNormal">
<Padding Top="2px" Left="2px" Right="2px" Bottom="2px"/>
</Normal>
<Active BackColor2="192, 192, 255" BaseStyle="Normal" BackColor="Navy"/>
</CaptionStyle>
<CaptionButtonStyle>
<Normal CssClass="captionButtonNormal" />
<Over BaseStyle="Normal">
<BorderSettings>
<Bottom Color="Gray"/>
<Right Color="Gray"/>
</BorderSettings>
</Over>
<Active BaseStyle="Normal">
<Left Color="Gray"/>
<Top Color="Gray"/>
</Active>
</CaptionButtonStyle>
<ContainerStyle BackColor="White" Font-Names="Tahoma" Font-Size="8pt" Height="100%" Width="100%">
<Padding Top="4px" Left="4px" Right="4px" Bottom="4px"/>
</ContainerStyle>
<CommandButtonStyle>
<Normal BackColor="Control" BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px" Font-Bold="False"
Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False"/>
<Over BaseStyle="Normal" BackColor="#C5C2AF"/>
<Active BaseStyle="Normal" BackColor="#8A887B" ForeColor="White"/>
</CommandButtonStyle>
<CommandButtonDisabledStyle BackgroundImage="" CustomRules="" BackColor="Control" BorderColor="ControlDarkDark"
BorderStyle="Solid" BorderWidth="1px" Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt"
Font-Underline="False" ForeColor="Gray"/>
</WindowSettings>
</ISWebDesktop:WebDialogBox>
</td>
</tr>
<ISWebDesktop:WebDialogBox ID="wdSelezRetroplanning" runat="server" ContentURL="..\PopUp\SelezRetroplanning.aspx" DialogBoxImage="None"
Height="300px" ShadowColor="Gray" Width="600px" Text="Retroplanning" StartPosition="CenterDesktop" RuntimeLicenseKey="7RI7M-YFCU-36L48">
<ISWebDesktop:WebDialogBox ID="wdSelezDateConseg" runat="server" ContentURL="..\PopUp\SelezDateConseg.aspx" DialogBoxImage="None"
Height="300px" ShadowColor="Gray" Width="600px" Text="Date di Consegna" StartPosition="CenterDesktop" RuntimeLicenseKey="7RI7M-YFCU-36L48">
<td class="tdPromo">
<table>
<tr class="tdLabel">
<td valign="bottom">Iniziativa comm. (*)</td>
<td align="left">
<ISWebCombo:WebCombo ID='wcIniziativa' runat='server' UseDefaultStyle='True'
Height="20px" Width="350px"
RuntimeLicenseKey="7G6JK-6P1G-0MC84"
oninitializedatasource="wcIniziativa_InitializeDataSource" DataTextField="PROMO_DE" DataValueField = "PROMO_CD">
<Columns>
<ISWebCombo:WebComboColumn BaseFieldName="PROMO_CD" Width="100" HeaderText="Codice" Name="PROMO_CD" RenderOnHidden="True"/>
<ISWebCombo:WebComboColumn BaseFieldName="PROMO_DE" Width="250" HeaderText="Descrizione" Name="PROMO_DE" RenderOnHidden="True"/>
</Columns>
<LayoutSettings ComboMode="MultipleColumns" AlwaysShowAllRowsOnDropdown="True" AutoColumnOrdering="False"
AlwaysShowHelpButton="False">
<TextSettings MoreTitleText="Valori successivi." NoResultsText="Nessun risultato."
RetrievedTextFormat="{retrieved} di {totalrows} restituite." LoadingText="Caricamento" />
</LayoutSettings>
</ISWebCombo:WebCombo>
<td colspan="2">
<div class="divTitleBlue">Promozione Agorà</div>
<table class="tblPromoInfo">
<td class="tdLabel">Codice</td>
<ISWebInput:WebInput ID="wiPromoAgoraCd" runat="server" Height="20px" Width="80px" NumericInput="True" RuntimeLicenseKey="A6S08-OI7P-406O7">
<EditFormat><ErrorWindowInfo IsEnabled="False"/></EditFormat>
<CultureInfo CultureName="it-IT"/>
<DisplayFormat><ErrorWindowInfo IsEnabled="False"/></DisplayFormat>
</ISWebInput:WebInput>
<td class="tdLabel">Anno</td>
<ISWebInput:WebInput ID="wiPromoAgoraAnno" runat="server" Height="20px" Width="80px" NumericInput="True" RuntimeLicenseKey="A6S08-OI7P-406O7">
<!--Paola Tripolisi 09/10/2013: aggiunta gestione multi tema alla promo-->
<td class="tdLabel">
<ISWebDesktop:WebButton ID="btnAddTema" Enabled="false" runat="server" Text="Gestione Temi"
OnClientClick="InsTemiClick">
<ButtonStyle>
<Normal CssClass="btnGreen" />
<Over CssClass="btnGreen" />
<Active CssClass="btnGreen" />
</ButtonStyle>
</ISWebDesktop:WebButton>
</table>
<div class="divTitleBlue">Calendario Promozionale</div>
<td class="tdLabel">Sell in (*):</td>
<td class="tdLabel">dal</td>
<input name="pippo" id="pippo" runat="server" size=10 maxlength=10 onkeyup="this.value=this.value.replace(/^(\d\d)(\d)$/g,'$1/$2').replace(/^(\d\d\/\d\d)(\d+)$/g,'$1/$2').replace(/[^\d\/]/g,'')">
<ISWebInput:WebInput ID="wiSellInDal" runat="server" Height="20px"
MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01" Width="80px"
RuntimeLicenseKey="A6S08-OI7P-406O7" >
<%-- RA20190508: non funziona il mascheramento delle date nella nuova versione dei componenti
<EditFormat format="dd/MM/yyyy" isenabled="True">
<MaskInfo MaskExpression="00/00/0000"/>
</EditFormat>
<HighLight IsEnabled="True" Type="Phrase"/>
--%>
<DateTimeEditor IsEnabled="True" footertodaytext="Oggi è "/>
<DisplayFormat Format="dd/MM/yyyy" IsEnabled="True" ErrorText="">
<ErrorWindowInfo IsEnabled="False"/>
</DisplayFormat>
<td class="tdLabel">al</td>
<ISWebInput:WebInput ID="wiSellInAl" runat="server" Height="20px"
RuntimeLicenseKey="A6S08-OI7P-406O7">
<td class="tdLabel">Sell out (*):</td>
<ISWebInput:WebInput ID="wiSellOutDal" runat="server" Height="20px"
<ISWebInput:WebInput ID="wiSellOutAl" runat="server" Height="20px"
<td class="tdPromo" valign="bottom" align="left">
<ISWebDesktop:WebButton ID="wbAbilitaPromo" runat="server" Text="Abilita" ToolTip="Abilita la promozione"
Width="120px" OnClicked="wbAbilitaPromo_Clicked" AutoPostback="True" PostBackMode="FullPostBack"
RuntimeLicenseKey="7RI7M-YFCU-36L48">
<ISWebDesktop:WebButton ID="wbAnnullaPromo" runat="server" Text="Annulla promozione"
Width="120px" ToolTip="Annulla in maniera irreversibile la promozione" OnClicked="wbAnnullaPromo_Clicked"
AutoPostback="True" PostBackMode="FullPostBack" RuntimeLicenseKey="7RI7M-YFCU-36L48">
<Normal CssClass="btnRed" />
<Over CssClass="btnRed" />
<Active CssClass="btnRed" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<ISWebDesktop:WebTab ID="wcCodPromo" runat="server" Height="337px" oninit="wcCodPromo_Init" RuntimeLicenseKey="7RI7M-YFCU-36L48" >
<FrameStyle CssClass="frameStyleTab"/>
<ContainerStyle CssClass="" Height="100%" Overflow="Auto" OverflowX="Auto" OverflowY="Hidden">
<Left Color="Black" Style="Solid" Width="1px"/>
<Bottom Color="Black" Style="Solid" Width="1px"/>
<Right Color="Black" Style="Solid" Width="1px"/>
<Top Color="Black" Style="Solid" Width="1px"/>
<RoundCornerSettings TopBorderColor="#000000" FillerBorderColor="#000000"/>
<ComplexImagesSettings UseSpecialRightSeparator="True"/>
<TabPages></TabPages>
<TabItemStyle>
<Normal CssClass="tabItemNormal"/>
<Active CssClass="tabItemActive"/>
</TabItemStyle>
<ClientSideEvents OnBeforeTabChanged="wcCodPromo_OnBeforeTabChanged" OnAfterTabChanged="wcCodPromo_OnAfterTabChanged" />
</ISWebDesktop:WebTab>
<ISWebDesktop:WebDialogBox ID="wdbInsTemi" runat="server" ContentURL="..\PopUp\InsTemi.aspx"
DialogBoxImage="None" Height="450px" StartPosition="CenterDesktop" ShadowColor="Gray" Width="640px" Text="Aggiungi Temi">
<Normal BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Tahoma" Font-Size="8pt">
<Active BaseStyle="Normal" BorderColor="Gray" HorizontalAlign="Center" VerticalAlign="Middle">
<Normal Cursor="Default" BackColor2="Gainsboro" BackColor="Gray" Font-Bold="True"
Font-Names="Tahoma" Font-Size="10pt" ForeColor="White">
<Padding Top="2px" Left="2px" Right="2px" Bottom="2px"></Padding>
<Active BackColor2="192, 192, 255" BaseStyle="Normal" BackColor="Navy">
<Normal Overflow="Hidden" OverflowY="Hidden" OverflowX="Hidden" BorderColor="White"
BorderStyle="Solid" BorderWidth="1px" Height="17px">
<Bottom Color="Gray"></Bottom>
<Right Color="Gray"></Right>
<Left Color="Gray"></Left>
<Top Color="Gray"></Top>
<ContainerStyle BackColor="White" Font-Names="Tahoma" Font-Size="8pt" Height="100%"
Width="100%">
<Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding>
<Normal BackColor="Control" BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px"
Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False">
<Over BaseStyle="Normal" BackColor="#C5C2AF">
<Active BaseStyle="Normal" BackColor="#8A887B" ForeColor="White">
<CommandButtonDisabledStyle BackgroundImage="" CustomRules="" BackColor="Control"
BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px" Font-Bold="False"
Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False"
ForeColor="Gray">
</CommandButtonDisabledStyle>
<!--Fine Paola Tripolisi-->
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname