Changes in ECC 6.0 from 4.6
Hi Experts,
Can you give me some ideas on what are the changes in ECC 6.0 from the following SAP Transactions, Many Thanks
General ledger FI
- post document with different document types FI "
FB50"
- display document FI FB03
- reverse document FI FB08
- print document FI F.62
- display/change line items FI FBL3N
- display balancies FI FS10N
- clear account FI F-03
reporting FI
- P/L+B/S FI S_ARL_87012284
- document journal FI S_ALR_87012287
- general ledger FI S_ALR_87012282
Closing FI
- valuation AP and AR FI F.05
- valuation G/L FI F.05
- valuation bank accounts FI F.05
Others FI
- standard analysis SD MCSI
- creating order CO KO01
Master records
- creating account in chart of account FI FSP0
- creating account in company code FI FSS0
- edit financial statement FI OB58/FSE2
- exchange rates FI S_BCE_68000174
- open and close period FI S_ARL_87003642
Accounts payable FI
- create vendor FI FK01
- document entry/fast entry FI FB10
- post/delete invoice FI FBV0
- vendor display/change line items FI FBL1N
- payment run dom/foreign test also with bank FI F110
- post manual outgoing payment FI F-53
- post manual incoming payment FI F-52
Reporting FI
Accounts receivables
- change customer master data FI XD02
- post invoice FI FB70
- customer display/change line items FI FBL5N
- post manual incoming payment FI F-28
- dunning run FI F150
Reporting FI
- open items FI F.27
- account statement FI F.27
- customer line items FI
Dear Jaffer,
Please visit the following links:
http://service.sap.com/erp
http://solutionbrowser.erp.sap.fmpmedia.com/ (Functional prespective)
http://service.sap.com/instguides --> mySAP Business Suite Applications --> mySAP ERP --> mySAP ERP 2005 --> Upgrade
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOVC/LOVC.pdf
For Functionality Differences pls refer to the below site -
http://solutionbrowser.erp.sap.fmpmedia.com/
After opening the site, please select the Source Release Version which is 4.6 b Then Select the Target Release Version which is "mySAP ERP 2005" or ECC 6.0
Select the Solution Area like Financials, Human Capital Management, Sales....
Select module like MM, PP, SD, QM.....
Click on Search
Then it displays the Release Version and the Delta Functionality. which can be downloaded to a word document if required.
and also check the release notes of ECC 6.0 in service.sap.com.
Hope this helps you.
Do award points if you found them useful.
Regards,
Rakesh
Similar Messages
-
PM delta changes in ECC 5.0 from 4.6
Hi
Can you let me know the functional enhancements / delta changes that has been made by SAP in ECC 5.0 compared to 4.6 version.
regards
jaffferDear Jaffer,
Please visit the following links:
http://service.sap.com/erp
http://solutionbrowser.erp.sap.fmpmedia.com/ (Functional prespective)
http://service.sap.com/instguides --> mySAP Business Suite Applications --> mySAP ERP --> mySAP ERP 2005 --> Upgrade
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOVC/LOVC.pdf
For Functionality Differences pls refer to the below site -
http://solutionbrowser.erp.sap.fmpmedia.com/
After opening the site, please select the Source Release Version which is 4.6 b Then Select the Target Release Version which is "mySAP ERP 2005" or ECC 6.0
Select the Solution Area like Financials, Human Capital Management, Sales....
Select module like MM, PP, SD, QM.....
Click on Search
Then it displays the Release Version and the Delta Functionality. which can be downloaded to a word document if required.
and also check the release notes of ECC 6.0 in service.sap.com.
Hope this helps you.
Do award points if you found them useful.
Regards,
Rakesh -
How BBPUPDVD determines vendor master change in ECC?
Hi Experts,
How is the vendor master change in ECC captured and what is the strategy/check that the BBPUPDVD transaction OR vendor update report uses/does in ECC to pick up the updated vendor with qualified fields for transmission?
Qualified fields -> Purchasing block, curr change, comm method change, etc.
For e.g, if a vendor is blocked for a P.Org today and if we either execute BBPUPDVD OR vendor update job, so how does it determine the change in vendor master in ECC?
Thanks!
Regards,
KarthikHello Karthik,
just to complete what wrote Konstantin, those change documents are determined in ECC using CHANGEDOCUMENT_READ function modul inside BBP_SCAN_VD function modul which is called by RFC from SRM (report BBP_VENDOR_SYNC).
Regards.
Laurent. -
BAPI or ES? Any change in ECC needs to be reflected to subscribers(nonSAP)
Here is my scenario:
WBS elements are part of PS module of SAP. As and when there is a change in WBS element - all changes must be updated to its subscriber thrid party applications(non SAP).
Ther were two ways I was thinking to design this scenario.
1. Webserivce - ES has some prepacked services.
2. Proxy ( BAPI )
ECC -
> PI ---> non SAP Parties
+ +
Common Rules Party specific rules
As the data on ECC can grow over the time - some common rules are needed to restrict the data at ECC.
The problems I am facing is about filtering the data. Subscribed systems have some rules which have to be applied - For example Party A just want only projects with some budget and Party B wants all projects.
Q: I have not used ES so far - what is the best way to get all records + filtered records?
Q: How to make changes triggered from ECC - change pointers to trigger?
Q: If I use SOAP Adapter to get the data from ES - Can we automate the process to get triggered after change is made in ECC.
Thanks.
Edited by: sanju XI on Oct 7, 2010 6:36 PMThe best way to go for this is -
Use ABAP proxy to send changes to PI. Whenever there will be real-time change in ECC, the program will trigger a proxy message out to PI.
Filters - You can use filter either in the receiver determination or message mapping.
Data to 3rd party system - since it a web service, use SOAP.
So, the zest is the below flowchart :-
ECC (for any real-time changes, trigger ABAP proxy) -> PI (filter conditions) -> 3rd Party (SOAP).
This way your 3rd party system will be updated with real-time changes. -
Composite control - change text property of textbox from .cs file
Hi All,
I have created a composite control with dropdowns and hiddenfield for datepicker. Now when I change the value of dropdown from browser - client side then its value is retained on postback. But when I change value programmatically its not reflected on
screen.
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.ComponentModel;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.Design;
using System.Web.UI.WebControls;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace GOV.Framework.Portal.Controls
/// <summary>
/// Simple DateTimePicker control that uses jQuery UI DatePicker to pop up
/// a date, time or both picker.
/// </summary>
[ToolboxBitmap(typeof(System.Web.UI.WebControls.Calendar)), DefaultProperty("SelectedValue"),
ToolboxData("<{0}:DateTimePicker runat=\"server\"></{0}:DateTimePicker>"), PersistenceMode(PersistenceMode.InnerProperty)]
public class DateTimePicker : WebControl
#region "Global Variables"
public enum DisplayControls
TextBox,
Dropdown
public enum DisplayModes
Button,
ImageButton,
AutoPopup,
Inline,
public enum DisplayTypes
Time,
Date,
DateTime
public enum DisplayMonthTypes
Full,
Short
private enum DisplayYearTypes
Full,
Short
private DropDownList ddlDay = new DropDownList();
private DropDownList ddlMonth = new DropDownList();
private DropDownList ddlYear = new DropDownList();
private TextBox txtDate = new TextBox();
private Label lblMsg = new Label();
private System.Web.UI.WebControls.Image imgCal = new System.Web.UI.WebControls.Image();
private HiddenField hdnDate = new HiddenField();
private DisplayModes _DisplayMode = DisplayModes.ImageButton;
private DisplayControls _DisplayControl = DisplayControls.TextBox;
private DisplayTypes _DisplayType = DisplayTypes.DateTime;
private int _StepMinutes = 1;
private int _StepHours = 1;
private DateTime? _MinDate = null;
private DateTime? _MaxDate = null;
private string _OnClientSelect = "";
private string _ButtonImage = "../Images/calendar.png";
private string _CalendarCss = "WebResource";
private string _CalendarJs = "../scripts/timepicker.js";
private DisplayMonthTypes _DisplayMonthType = DisplayMonthTypes.Full;
private DisplayYearTypes _DisplayYearType = DisplayYearTypes.Full;
private int _minYear = DateTime.Now.Year - 25;
private int _maxYear = DateTime.Now.Year;
private int _minMonth = 1;
private int _maxMonth = 31;
private int _minDay = 1;
private int _maxDay = 28;
private string _dateControlClientId = string.Empty;
DateTime? _SelectedDate = null;
private bool _DisplayMessageLabel = true;
private short _tabIndex;
private const string vwst_SelectedDate = "_SelectedDate";
#region "ErrorMessages"
private const string SelectedDate_GreaterThan_MaxDate = "SelectedDate can not be greater than MaxDate";
private const string MaxDate_LessThan_SelectedDate = "MaxDate can not be less than SelectedDate";
private const string SelectedDate_LessThan_MinDate = "SelectedDate can not be less than MinDate";
private const string MinDate_GreaterThan_SelectedDate = "MinDate can not be greater than SelectedDate";
#endregion
#endregion
#region "Properties"
#region "Private Properties"
[Description("Determines display full or short(yy) year")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayTypes), "string")]
private DisplayYearTypes DisplayYearType
get
return _DisplayYearType;
set
_DisplayYearType = value;
[Description("Determines minimum year to be displayed in dropdown : Default currentyear - 25")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayTypes), "int")]
private int MinYear
get
if (MinDate != null)
_minYear = MinDate.Value.Year;
else
_minYear = DateTime.Now.Year - 25;
return _minYear;
//set
// _minDisplayYear = value;
[Description("Determines maximum year to be displayed in dropdown : Default currentyear")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayTypes), "int")]
private int MaxYear
get
if (MaxDate != null)
_maxYear = MaxDate.Value.Year;
else
_maxYear = DateTime.Now.Year;
return _maxYear;
//set
// _maxDisplayYear = value;
private string DateControlClientId
get
if (DisplayControl == DisplayControls.Dropdown)
_dateControlClientId = hdnDate.ClientID;
else
_dateControlClientId = txtDate.ClientID;
return _dateControlClientId;
[Description("Determines minimum month of min date : default 1")]
[Category("DateTime Selection"), DefaultValue(1)]
private int minMonth
get
if (MinDate != null)
_minMonth = MinDate.Value.Month;
else
_minMonth = 1;
return _minMonth;
[Description("Determines max months of max date: Default 12")]
[Category("DateTime Selection"), DefaultValue(12)]
private int maxMonth
get
if (MaxDate != null)
_maxMonth = MaxDate.Value.Month;
else
_maxMonth = 1;
return _maxMonth;
[Description("Determines minimum day : Defualt 1")]
[Category("DateTime Selection"), DefaultValue(1)]
private int minDay
get
if (MinDate != null)
_minDay = MinDate.Value.Day;
else
_minDay = 1;
return _minDay;
[Description("Determines max day: Defualt last day of max month")]
[Category("DateTime Selection"), DefaultValue(30)]
private int maxDay
get
if (MaxDate != null)
_maxDay = MaxDate.Value.Day;
else
_maxDay = DateTime.DaysInMonth(MaxYear, maxMonth);
return _maxDay;
#endregion
#region "Public Properties"
/// <summary>
/// The currently selected datetime
/// </summary>
[Category("DateTime Selection")]
public DateTime? SelectedValue
get
DateTime dt = new DateTime();
if (DisplayControl == DisplayControls.TextBox && txtDate.Text != "")
DateTime.TryParse(txtDate.Text, out dt);
else if (DisplayControl == DisplayControls.Dropdown && hdnDate.Value != "")
DateTime.TryParse(hdnDate.Value, out dt);
if (dt != null && dt != new DateTime())
_SelectedDate = dt;
else
_SelectedDate = null;
return _SelectedDate;
set
if (!value.HasValue)
txtDate.Text = "";
hdnDate.Value = "";
else
if (value != null && MinDate != null && value < MinDate)
throw new ArgumentOutOfRangeException("SelectedValue", SelectedDate_LessThan_MinDate);
if (value != null && MaxDate != null && value > MaxDate)
throw new ArgumentOutOfRangeException("SelectedValue", SelectedDate_GreaterThan_MaxDate);
string dateFormat = this.DateTimeFormat;
//if ( dateFormat == "Auto")
// dateFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
if (DisplayControl == DisplayControls.TextBox)
txtDate.Text = value.Value.ToString(dateFormat);
else if (DisplayControl == DisplayControls.Dropdown)
hdnDate.Value = value.Value.ToString(dateFormat);
_SelectedDate = value;
if (DisplayControl == DisplayControls.Dropdown)
setDropDownValue(value);
[Description("Determines display textbox or dropdowns")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayModes), "TextBox")]
public DisplayControls DisplayControl
get { return _DisplayControl; }
set { _DisplayControl = value; }
[Description("Determines how the datepicking option is activated")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayModes), "ImageButton")]
public DisplayModes DisplayMode
get { return _DisplayMode; }
set { _DisplayMode = value; }
[Description("Determines what datetimepicker should return")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayTypes), "DateTime")]
public DisplayTypes DisplayType
get
return _DisplayType;
set
_DisplayType = value;
[Description("Increment minute factor when using the time picker.")]
[Category("DateTime Selection"), DefaultValue(1)]
public int StepMinutes
get
return _StepMinutes;
set
_StepMinutes = value;
[Description("Increment hour factor when using the time picker.")]
[Category("DateTime Selection"), DefaultValue(1)]
public int StepHours
get
return _StepHours;
set
_StepHours = value;
private string _DateTimeFormat = CultureInfo.CurrentCulture != null ? CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern : "dd/MM/yyyy";
[Description("Determines the Date Format used. Auto uses CurrentCulture.DateTimeFormat.ShortDatePattern. Format: MM month, dd date, yyyy year symbol")]
[Category("DateTime Selection"), DefaultValue("dd/MM/yyyy")]
public string DateTimeFormat
get
return _DateTimeFormat;
set
_DateTimeFormat = value;
[Description("Minumum allowable date. Leave blank to allow any date")]
[Category("DateTime Selection"), DefaultValue(typeof(DateTime?), null)]
public DateTime? MinDate
get
return _MinDate;
set
if (value != null && SelectedValue != null && value > SelectedValue)
throw new ArgumentOutOfRangeException("MinDate", MinDate_GreaterThan_SelectedDate);
_MinDate = value;
[Description("Maximum allowable date. Leave blank to allow any date.")]
[Category("DateTime Selection"), DefaultValue(typeof(DateTime?), null)]
public DateTime? MaxDate
get
return _MaxDate;
set
if (value != null && SelectedValue != null && value < SelectedValue)
throw new ArgumentOutOfRangeException("MaxDate", MaxDate_LessThan_SelectedDate);
_MaxDate = value;
[Description("Client event handler fired when a date is selected")]
[Category("DateTime Selection"), DefaultValue("")]
public string OnClientSelect
get
return _OnClientSelect;
set
_OnClientSelect = value;
[Description("Url to a Calendar Image. Applies only if the DisplayMode = ImageButton")]
[Category("DateTime Resource"), DefaultValue("../Images/calendar.png")]
public string ButtonImage
get { return _ButtonImage; }
set { _ButtonImage = value; }
[Category("DateTime Resource"), Description("The CSS that is used for the calendar or empty for default."), DefaultValue("WebResource")]
public string CalendarCss
get { return _CalendarCss; }
set { _CalendarCss = value; }
[Description("Location for the calendar JavaScript or empty for default.")]
[Category("DateTime Resource"), DefaultValue("../scripts/timepicker.js")]
public string CalendarJs
get { return _CalendarJs; }
set { _CalendarJs = value; }
[Description("Determines what to Display full Month name or short month name")]
[Category("DateTime Selection"), DefaultValue(typeof(DisplayTypes), "string")]
public DisplayMonthTypes DisplayMonthType
get
return _DisplayMonthType;
set
_DisplayMonthType = value;
[Description("Display static label for msg below date control")]
[Category("DateTime Selection"), DefaultValue(true)]
public bool DisplayMessageLable
get { return _DisplayMessageLabel; }
set { _DisplayMessageLabel = value; }
[Bindable(true)]
[DefaultValue("false")]
public override short TabIndex
get
return _tabIndex;
set
_tabIndex = value;
ddlDay.TabIndex = value;
ddlMonth.TabIndex = value;
ddlYear.TabIndex = value;
imgCal.TabIndex = value;
#endregion
#endregion
#region "Events"
public DateTimePicker()
this.Width = Unit.Pixel(80);
/// <summary>
/// Load all controls
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
base.OnInit(e);
//Controls.Clear();
//CreateAndAddControls();
/// <summary>
/// Add Child controls - Dropdowns and textbox;
/// </summary>
protected override void CreateChildControls()
base.CreateChildControls();
Controls.Clear();
CreateAndAddControls();
/// <summary>
/// Load all controls
/// </summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e)
base.OnLoad(e);
if (DisplayControl == DisplayControls.Dropdown)
if (ddlDay.Items.Count == 0 || ddlMonth.Items.Count == 0 || ddlYear.Items.Count == 0 || !Page.IsPostBack)
FillDropdowns();
generateDisplayMessage();
protected override void LoadViewState(object savedState)
base.LoadViewState(savedState);
protected override void LoadControlState(object savedState)
base.LoadControlState(savedState);
protected override object SaveViewState()
if (HasControls() && Page.IsPostBack)
ddlDay.SelectedValue = "11";
object obj = base.SaveViewState();
return obj;
protected override void TrackViewState()
base.TrackViewState();
/// <summary>
/// Most of the work happens here for generating the hook up script code
/// </summary>
/// <param name="e"></param>
protected override void OnPreRender(EventArgs e)
base.OnPreRender(e);
// Register resources
this.RegisterResources();
string script = GenerateScript();
Page.ClientScript.RegisterStartupScript(this.GetType(), "_cal" + this.ID, script, true);
/// <summary>
/// Render Control
/// </summary>
/// <param name="writer"></param>
public override void RenderControl(HtmlTextWriter writer)
if (this.DisplayMode != DisplayModes.Inline)
base.RenderControl(writer);
else
writer.Write("<div id='" + this.ClientID + "Div'></div>");
if (HttpContext.Current == null)
if (this.DisplayMode == DisplayModes.Button)
writer.Write(" <input type='button' value='...' style='width: 20px; height: 20px;' />");
else if ((this.DisplayMode == DisplayModes.ImageButton))
string img;
if (this.ButtonImage == "WebResource")
img = this.Page.ClientScript.GetWebResourceUrl(this.GetType(), "jQueryDatePicker.Resources.calendar.png");
else
img = this.ResolveUrl(this.ButtonImage);
writer.AddAttribute(HtmlTextWriterAttribute.Src, img);
writer.AddAttribute("hspace", "2");
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
/// <summary>
/// Render Control
/// </summary>
/// <param name="writer"></param>
protected override void Render(HtmlTextWriter writer)
RenderControls(writer);
#endregion
#region "Methods"
/// <summary>
/// Set properties of control
/// </summary>
private void CreateAndAddControls()
txtDate.ID = "_txtDate";
txtDate.CssClass = "dpDate";
ddlDay.ID = "_ddlDay";
ddlMonth.ID = "_ddlMonth";
ddlYear.ID = "_ddlYear";
imgCal.ID = "_imgCal";
imgCal.CssClass = "trigger";
imgCal.ImageUrl = this.ButtonImage;
//imgCal.Visible = false;
hdnDate.ID = "_hdnDate";
lblMsg.ID = "_lblMsg";
lblMsg.CssClass = "MsgLabel";
if (DisplayControl == DisplayControls.Dropdown)
txtDate.Visible = false;
this.Controls.Add(ddlDay);
this.Controls.Add(ddlMonth);
this.Controls.Add(ddlYear);
this.Controls.Add(hdnDate);
else
txtDate.Visible = true;
this.Controls.Add(txtDate);
this.Controls.Add(imgCal);
this.Controls.Add(lblMsg);
/// <summary>
/// Add Controls to the control
/// </summary>
private void RenderControls(HtmlTextWriter writer)
//if (ChildControlsCreated)
// return;
AddAttributesToRender(writer);
writer.AddAttribute(HtmlTextWriterAttribute.Class, "datePickerTable", false);
writer.RenderBeginTag(HtmlTextWriterTag.Table);//start of table
writer.RenderBeginTag(HtmlTextWriterTag.Tr);//start of tr1
if (DisplayControl == DisplayControls.Dropdown)
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddlDay.RenderControl(writer);
writer.RenderEndTag();
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddlMonth.RenderControl(writer);
writer.RenderEndTag();
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddlYear.RenderControl(writer);
writer.RenderEndTag();
writer.RenderBeginTag(HtmlTextWriterTag.Td);
hdnDate.RenderControl(writer);
writer.RenderEndTag();
else
writer.RenderBeginTag(HtmlTextWriterTag.Td);
txtDate.RenderControl(writer);
writer.RenderEndTag();
writer.RenderBeginTag(HtmlTextWriterTag.Td);
//Control ltrl1 = new LiteralControl();
//writer.AddStyleAttribute(HtmlTextWriterStyle.Display, "None");
//writer.RenderBeginTag(HtmlTextWriterTag.Div);
////ltrl1.RenderControl(writer);
//imgCal.RenderControl(writer);
//writer.RenderEndTag();//end of div
writer.Write("<div style=\"display:none\">");
imgCal.RenderControl(writer);
writer.Write("</div>");
writer.RenderEndTag();
writer.RenderEndTag();//end of tr1
writer.RenderBeginTag(HtmlTextWriterTag.Tr);//start of tr
writer.AddAttribute(HtmlTextWriterAttribute.Colspan, "4", false);
writer.RenderBeginTag(HtmlTextWriterTag.Td);
lblMsg.RenderControl(writer);
writer.RenderEndTag();
writer.RenderEndTag();// end of tr2
writer.RenderEndTag();// end of table
//string newTable = "<table class='datePickerTable'";
//string endTable = "</table>";
//string newTr = "<tr>";
//string endTr = "</tr>";
//string newTd = "<td>";
//string endTd = "</td>";
////Controls.Clear();
//InitControls();
//Controls.Add(new LiteralControl(newTable + newTr + newTd));
//if (DisplayControl == DisplayControls.Dropdown)
// Controls.Add(ddlDay);
// Controls.Add(new LiteralControl(endTd + newTd));
// Controls.Add(ddlMonth);
// Controls.Add(new LiteralControl(endTd + newTd));
// Controls.Add(ddlYear);
// Controls.Add(new LiteralControl(endTd + newTd));
//Controls.Add(txtDate);
//Controls.Add(hdnDate);
//Controls.Add(new LiteralControl(endTd + newTd));
//Controls.Add(new LiteralControl("<div style=\"display:none\">"));
//Controls.Add(imgCal);
//Controls.Add(new LiteralControl("</div>"));
//Controls.Add(new LiteralControl(endTd + endTr));
//Controls.Add(new LiteralControl(newTr + "<td colspan=4>"));
//Controls.Add(lblMsg);
//Controls.Add(new LiteralControl(endTd + endTr + endTable));
/// <summary>
/// Code that embeds related resources (.js and css)
/// </summary>
/// <param name="scriptProxy"></param>
protected void RegisterResources()
// Load the calandar script
string script = this.CalendarJs;
// Load jQuery Calendar Scripts
if (script == "WebResource")
Page.ClientScript.RegisterClientScriptResource(this.GetType(), "jQueryDatePicker.Resources.ui.datepicker.js");
else if (!string.IsNullOrEmpty(script))
Page.ClientScript.RegisterClientScriptInclude(this.GetType(), "__jqueryCalendar", this.ResolveUrl(script));
// Load the related CSS reference into the page
script = this.CalendarCss;
if (script == "WebResource")
script = Page.ClientScript.GetWebResourceUrl(this.GetType(), "jQueryDatePicker.Resources.ui.datepicker.css");
else if (!string.IsNullOrEmpty(script))
script = this.ResolveUrl(this.CalendarCss);
// Register Calendar CSS 'manually'
string css = @"<link href=""" + script + @""" type=""text/css"" rel=""stylesheet"" />";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "_calcss", css, false);
/// <summary>
/// Converts a date to a JavaScript date string in UTC format
/// </summary>
/// <param name="date"></param>
/// <returns></returns>
private static string EncodeJsDate(DateTime date)
return "new Date(\"" + date.ToString("U") + " UTC" + "\")";
/// <summary>
/// Generate Javascript for Datepicker plugin
/// </summary>
/// <returns></returns>
private string GenerateScript()
// To capture and map the various option parameters
StringBuilder sbOptions = new StringBuilder(512);
sbOptions.Append("{");
//jQuey Script
StringBuilder sbStartupScript = new StringBuilder(400);
sbStartupScript.AppendLine("jQuery(document).ready( function() {");
string dateFormat = this.DateTimeFormat;
if (!string.IsNullOrEmpty(dateFormat))
dateFormat = this.DateTimeFormat.Replace("MMM", "M").Replace("MM", "mm");
sbOptions.Append("dateFormat: '" + dateFormat + "'");
//string onSelect = this.OnClientSelect;
if (this.DisplayMode == DisplayModes.Button)
sbOptions.Append(",showOnFocus: false, showTrigger: '<button type=\"button\" class=\"trigger\">...</button>'");
else if (this.DisplayMode == DisplayModes.ImageButton)
string img = this.ButtonImage;
if (img == "WebResource")
img = Page.ClientScript.GetWebResourceUrl(this.GetType(), "jQueryDatePicker.Resources.calendar.png");
else
img = this.ResolveUrl(this.ButtonImage);
sbOptions.Append(",showOnFocus: false, showTrigger: '#" + imgCal.ClientID + "'");
sbOptions.Append(", onSelect: DateSelectedFromCalendar ");
if (this.MinDate.HasValue)
sbOptions.Append(",minDate: new Date(" + MinDate.Value.Year.ToString() + "," + (MinDate.Value.Month - 1).ToString() + "," + MinDate.Value.Day.ToString() + ")");
if (this.MaxDate.HasValue)
sbOptions.Append(",maxDate: new Date(" + MaxDate.Value.Year.ToString() + "," + (MaxDate.Value.Month - 1).ToString() + "," + MaxDate.Value.Day.ToString() + ")");
sbOptions.Append(",yearRange:' " + this.MinYear.ToString() + ":" + this.MaxYear.ToString() + "'");
//end of options
sbOptions.Append("}");
// Write out initilization code for calendar
if (this.DisplayMode != DisplayModes.Inline)
sbStartupScript.AppendLine("var cal = jQuery('#" + this.DateControlClientId + "').datepick(" + sbOptions.ToString() + ");");
else
sbStartupScript.AppendLine("var cal = jQuery('#" + this.ClientID + "Div').datepick(" + sbOptions.ToString() + ");");
sbStartupScript.AppendLine("var dp = jQuery.datepicker;");
if (this.SelectedValue.HasValue && this.SelectedValue.Value > new DateTime(1900, 1, 1, 0, 0, 0, DateTimeKind.Utc))
sbStartupScript.AppendLine("dp.setDateFor(cal[0],new Date('" + txtDate.Text + "'));");
sbStartupScript.AppendLine("dp.reconfigureFor(cal[0]);");
//******************* When dropdown changes then reflect it in calendar
if (DisplayControl == DisplayControls.Dropdown)
sbStartupScript.AppendLine("\r\n\r");
sbStartupScript.Append("$('#" + ddlDay.ClientID);
sbStartupScript.Append(",#" + ddlMonth.ClientID);
sbStartupScript.Append(",#" + ddlYear.ClientID + "').change(function() {");
// disable months and days when they are less then day months of minimum date
sbStartupScript.Append("$ddlDay=$('#" + ddlDay.ClientID + "');");
sbStartupScript.Append("$ddlMonth=$('#" + ddlMonth.ClientID + "');");
sbStartupScript.Append("$ddlYear=$('#" + ddlYear.ClientID + "');");
sbStartupScript.AppendLine("var minYear=" + this.MinYear.ToString() + ";");
///disable months of minimum year which are less then minumum date month
sbStartupScript.AppendLine("if($ddlYear.val()<=minYear && $('#" + this.DateControlClientId + "').val!=''){ alert('true');");
sbStartupScript.AppendLine("var minMonth=" + this.minMonth.ToString() + ";");
sbStartupScript.AppendLine("if($ddlMonth.val()<=minMonth){");//start of if of minMonth
sbStartupScript.AppendLine("$ddlMonth.val(minMonth);");
sbStartupScript.AppendLine("var minDay=" + this.minDay.ToString() + ";");
sbStartupScript.AppendLine("$ddlMonth.find('option:lt('+minMonth+')').hide();");
sbStartupScript.AppendLine("if($ddlDay.val()<=minDay)");
sbStartupScript.AppendLine("$ddlDay.val(minDay);");
sbStartupScript.AppendLine("}");// end of if of minMonth
sbStartupScript.AppendLine("else {");
sbStartupScript.AppendLine("$ddlDay.find('option').show();");
sbStartupScript.AppendLine("}");// end of else part of min month
sbStartupScript.AppendLine("$ddlDay.find('option:lt('+minDay+')').hide();");
sbStartupScript.AppendLine("}");// end of if part of min Year
sbStartupScript.AppendLine("else {");
sbStartupScript.AppendLine("$ddlMonth.find('option').show();");
sbStartupScript.AppendLine("}");// end of else part of min Year
///set date in calendar
sbStartupScript.AppendLine();
sbStartupScript.Append("$('#" + this.DateControlClientId + "').datepick('setDate', new Date(\n\r\r ");
sbStartupScript.Append("$('#" + ddlYear.ClientID + "').val(),");
sbStartupScript.Append("$('#" + ddlMonth.ClientID + "').val()-1,");
sbStartupScript.Append("$('#" + ddlDay.ClientID + "').val()));");
sbStartupScript.AppendLine("} );");
//******************* When calendar changes then reflect it in dropdown
sbStartupScript.AppendLine("\r\n\r");
sbStartupScript.AppendLine("function DateSelectedFromCalendar(dates) {");
if (DisplayControl == DisplayControls.Dropdown)
sbStartupScript.AppendLine("$('#" + ddlDay.ClientID + "').val(dates.length ? dates[0].getDate() : '');");
sbStartupScript.AppendLine("$('#" + ddlMonth.ClientID + "').val(dates.length ? dates[0].getMonth() +1 : '');");
sbStartupScript.AppendLine("$('#" + ddlYear.ClientID + "').val(dates.length ? dates[0].getFullYear() : '');");
if (!string.IsNullOrEmpty(this.OnClientSelect))
sbStartupScript.AppendLine(this.OnClientSelect + "();");
sbStartupScript.AppendLine("}");
//******************* Validation Script
sbStartupScript.AppendLine("\r\n\r");
sbStartupScript.AppendLine("$('form').validate({");
sbStartupScript.AppendLine("errorPlacement: $.datepick.errorPlacement,");
sbStartupScript.AppendLine("rules: {");
sbStartupScript.AppendLine(this.DateControlClientId + ": {");//start of format picker
sbStartupScript.AppendLine("required: true, dpDate: true}");//end of formate picker
sbStartupScript.AppendLine("}, ");// end of rules
sbStartupScript.AppendLine("messages: {");
sbStartupScript.AppendLine(this.DateControlClientId + ": 'Please enter a valid date (" + this.DateTimeFormat + ")'");
sbStartupScript.AppendLine("}");// end of messages
sbStartupScript.AppendLine("});"); //end of validate function
//******************* close document ready function
sbStartupScript.AppendLine("} );");
return sbStartupScript.ToString();
/// <summary>
/// Fill day month and year dropdown
/// </summary>
private void FillDropdowns()
//Fill Day Dropdown
ListItem liDay = new ListItem("Day", "0");
ddlDay.Items.Add(liDay);
for (int i = 1; i <= 31; i++)
ListItem li = new ListItem(i.ToString(), i.ToString());
ddlDay.Items.Add(li);
//Fill Month Dropdown
ListItem liMonth = new ListItem("Month", "0");
ddlMonth.Items.Add(liMonth);
string monthName = string.Empty;
for (int i = 1; i <= 12; i++)
switch (DisplayMonthType)
case DisplayMonthTypes.Full:
monthName = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(i);
break;
case DisplayMonthTypes.Short:
monthName = CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(i);
break;
ListItem li = new ListItem(monthName, i.ToString());
ddlMonth.Items.Add(li);
//Fill Year Dropdown
ListItem liYear = new ListItem("Year", "0");
ddlYear.Items.Add(liYear);
string yearDisplay = string.Empty;
for (int i = MinYear; i <= MaxYear; i++)
switch (DisplayYearType)
case DisplayYearTypes.Full:
yearDisplay = i.ToString();
break;
case DisplayYearTypes.Short:
yearDisplay = i.ToString().Substring(2);
break;
ListItem li = new ListItem(yearDisplay, i.ToString());
ddlYear.Items.Add(li);
setDropDownValue(this.SelectedValue);
private void generateDisplayMessage()
if (this.DisplayMessageLable)
if (this.DisplayControl == DisplayControls.TextBox)
lblMsg.Text = this.DateTimeFormat;
if (this.MinDate != null && this.MinDate.Value != new DateTime())
lblMsg.Text += " From " + this.MinDate.Value.ToString(this.DateTimeFormat);
if (this.MaxDate != null && this.MaxDate.Value != new DateTime())
lblMsg.Text += " To " + this.MaxDate.Value.ToString(this.DateTimeFormat);
private void setDropDownValue(DateTime? dt)
if (ddlDay.Items.Count != 0 && ddlMonth.Items.Count != 0 && ddlYear.Items.Count != 0)
if (dt != null && dt != new DateTime())
ddlDay.SelectedValue = ddlDay.Items.FindByValue(dt.Value.Day.ToString()).Value;
ddlMonth.SelectedValue = ddlMonth.Items.FindByValue(dt.Value.Month.ToString()).Value;
ddlYear.SelectedValue = ddlYear.Items.FindByValue(dt.Value.Year.ToString()).Value;
else
ddlDay.SelectedValue = "0";
ddlMonth.SelectedValue = "0";
ddlYear.SelectedValue = "0";
#endregion
}Usage Of Code in .ascx<cc2:DateTimePicker ID="dtpDOB" DisplayType="Date" DisplayMode="ImageButton" ButtonImage="../Images/calendar.png" runat="server"Changing Value from .cs file dtpDOB.SelectedValue = DateTime.Parse("01/01/2001");It is not reflected in screenHello,
According to your code, it's an ASP.NET user control problem. Please post in
ASP.NET forums where more web developers will give you help.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to Change the Default SSH Port from Terminal ?
How to Change the Default SSH Port from Terminal ?
How to Change the Default SSH Port from Terminal ?
now showing default SSH Port 22 i need change it pls help me how can do -
How to Change the Default SSH Port from Terminal ?
now showing default SSH Port 22 i need change it pls help me how can doHow to Change the Default SSH Port from Terminal ?
now showing default SSH Port 22 i need change it pls help me how can do -
In Mail can I change my "To" field to From or sender
In Mail my inbox shows 3 fields "To, Subject, Date Recieved" Can I change the "to" field to from or sender. I know who the mail is to, it's always to me after all it's my mail I'm checking. I would like to know the sender so I can better decide which mail to open and read. Sometimes I'm looking for a response from a paticular person.
Hi Ubettergetit: Actually it is quite easy to get rid of that little annoyance. With mail open, Right (Control) Click on one one of the headings in Mail. (To, From, Subject....). This will bring up a menu that allows you to select which headings you would like to see, change it as required.
Enjoy
Stedman -
Hello everybody!
I'm using ipad mini and the iOS is 7.0.4. I used an Apple ID (called: A), and I activated my ipad, used iCloud & Find my iphone with this A account. But now I've changed address of Apple ID from A@.... to the new one: B@.... (just changed email address of Apple ID, not create a new ID), and then I signed out iCloud, old Apple ID, etc... on my ipad and signed in with new id B@.... Everythings seem OK, I can sign in/out iCould, turn on/turn off Find my iphone as well with the new one (B@...)
But I still have a question (and still confusing with it): What will happend when I restored my ipad? I mean my iOS is 7, so which Apple ID will be asked to re-activate my ipad after I restore it, old id A@.... (this one cannot be used now) or the new one B@...., please?
Thank you very much for your helpful informations!If you've succesfully changed the ID for iCloud and Find my phone, it will be your new ID you use if you need to restore it.
-
How can I change the default email account from which my messages go, without having to change it each time I draft a message? It currently assumes an email account that I rarely use. Thanks.
sorry, but I can't find the mail preference in the latest Yosemite OS. Do you know where I can find it?
Thank you
Don -
Can I change more than one photo from color to black and white at one time?
can I change more than one photo from color to black and white at one time?
Check out iPhoto Batch Enhancer
http://www.feroxsoft.com/ibe/index.php.en
Regards
TD -
HT204053 how do i change my icloud email address from the one i already have input?
how do i change my icloud email address from the one i already have input?
Hi sparkie,
You cannot change your iCloud email address. It is an @me.com address, and is associated specifically with that iCloud account. If you want a different @me address assigned, you have to delete the current iCloud account and set up a new one.
Here is a link with all the support information for iCloud:
http://www.apple.com/support/icloud/
Hope this helps!
Cheers,
GB -
I recently changed my apple id email from an old one to a new one and now I can't sign out of my old one on my iPhone 5 because it says I need a password. I cannot give that password because it is part of the old apple ID. How do I change IDs?
Hi sharonpalencia,
Welcome to the Apple Support Communities!
I understand it can be very frustrating when you cannot sign in, or sign out in this case, to your Apple ID. In this situation you may need to temporarily edit your Apple ID back to the original email address so that you can sign out. Once signed out, edit the Apple ID back to the new email address and sign in. Please use the attached article for further information.
If you're asked for the password to your previous Apple ID when signing out of iCloud
Change your Apple ID temporarily
If signing out and back in to iMessage or FaceTime didn't help, try these steps:
Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
Enter the password for your previous Apple ID.
Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
Return to Settings > iCloud and sign in with your new Apple ID.
If you're still asked for your previous Apple ID password, continue to the next step.
Have a great day,
Joe -
How can I change my auto-correction language from english to french?
My system language is english, so all the default language is also in english
but how can I change the auto-correction language from english to french and without changing the menu language?
Message was edited by: MarixomiaIt's just, I want to change my spelling checker from english to french, that when I type some words in wrong order or miss some, I can know that.
For now, when I type in french, almost every words are underlined by the red lines... -
Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?
Hi Memalyn
Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
Let us know what you find out, and if you manage to get your space back.
Matt
Maybe you are looking for
-
Implementing History types on query based view object attributes
Hi All, I have to implement the history types created on, created by, modified on, modified by in my application, but I have all the Query based view objects in my work space, but according to my research History types can only be implemented on the
-
Logging in without a keyboard...
So, here is a strange issue... My wireless keyboard died completely while my computer was on... I took it in and got a replacement for it... but now, my computer is password locked and I need to get the new wireless keyboard to work in order to log i
-
Does anyone have any ideas on why the latest version of skype fails to open, and how to solve this problem? Many thanks.
-
ORA-01445: cannot select ROWID - View OK on one database, not on another
Hi guys I was wondering if someone might be able to shed some light on this. I have taken an export of our apps development database, and imported it onto my own machine. There are a number of views that will not compile on my database, but are compi
-
Change Component in Production Order
Hi! I have to change materials in Production Order components before saving. Does anyone know a BADI or user-exit that i can use? I have tried so far BADI WORKORDER_UPDATE and user-exits PPCO0001 and PPCO0008 but none of them can be used for this. Re