Skip to content

[BUG] Entering a value in Date control fails #795

Description

@aalad

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
  • Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
  • Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
  • Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • UCI (XrmApp)
  • Classic Web (XrmBrowser)

Online or On Premise

  • Online
  • On Premise

Browser

  • Chrome
  • Firefox
  • IE
  • Edge

Describe the bug
When entering a value in a Date control, the field is not filled correctly. Examples in GIFs below.

What I do is calling the SetValue function on the estimated close date with a common european date format. The entered value get erased before the driver is finished entering it which results in an invalid value.
I tried with different formats for the DateTime as well (e.g. "MM/dd/yyyy"), but unsuccessfully.

Please assist, thank you.

Special formatting / display

Code to reproduce

public void OpportunityCreateTest()
{
    using (var xrmApp = new XrmApp(_client))
    {
        xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _loginAction)
        xrmApp.Navigation.OpenApp(_myApp);
        xrmApp.Navigation.OpenSubArea("My CRM", "Opportunities");
        xrmApp.CommandBar.ClickCommand("New");
        xrmApp.Entity.SetValue("estimatedclosedate", DateTime.Today.AddMonths(1), "dd.MM.yyyy"); 
    }
}

Screenshots
These are animated GIFs to illustrate what happens.

easyrepro_uci_datetime

and
easyrepro_uci_datetime2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions