Customer Engagement & Dynamics CRM Forum

 View Only
  • 1.  PCF Date time box.

    Posted Jan 29, 2020 09:48 PM
    Edited by Rex Kenley Tan Jan 29, 2020 09:51 PM

    I finished a project for an enhanced pcf control for datetime.

    https://github.com/rexkenley/d365DatetimeBox

    Enhancements include:

    1. a 15 minute time interval that can displayed in either normal or military.
    2. customizeable tooltip that is template capable.
    3. a date start time and end time range. 
    Please let me know if there are any issues. Enjoy!




    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------


  • 2.  RE: PCF Date time box.

    Posted Jan 30, 2020 09:56 AM
    @Rex Kenley Tan that's a neat control! I haven't checked but do you use user's locality settings to use AM/FM - not AM/FM settings? Also do you have a localization of weekdays/months for other languages?​

    ------------------------------
    Andrew Butenko
    ------------------------------



  • 3.  RE: PCF Date time box.

    Posted Jan 30, 2020 10:01 AM
    @Andrii Butenko

    No localization features. What use cases are you thinking about?


    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------



  • 4.  RE: PCF Date time box.

    Posted Jan 30, 2020 10:07 AM
    Let's say I work in international corporation and I have multiple locales installed (not only English but let's say French, Spanish and Ukrainian). When I log in as a user with active French locale inside control I want to see localized week days and months names.

    ------------------------------
    Andrew Butenko
    ------------------------------



  • 5.  RE: PCF Date time box.

    Posted Jan 31, 2020 07:42 AM
    Edited by Rex Kenley Tan Jan 31, 2020 09:45 AM

    Ok. I will read up on some of the best practices for internationalization and add it to the control.

    *update*
    Well, I know how to do it. But how do I include only the required languages? Time to HACK pcf again.


    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------



  • 6.  RE: PCF Date time box.

    Posted Jan 31, 2020 08:39 PM
    @Andrii Butenko

    Like this? Do you have a Ukrainian system? On mine when I click the date it is still in english. I want to see if it would automatically convert on a Ukrainian system.



    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------



  • 7.  RE: PCF Date time box.

    GOLD CONTRIBUTOR
    Posted Jan 31, 2020 12:26 PM
    @Rex Kenley Tan, this is a neat component! As we make the switch to UCI at my company, I just figured we'd use the native components, but this is a helpful option. Thanks for creating and sharing! 
    Have you had any issues so far with using the custom PCF ​components with performance or bugs of any kind?

    ------------------------------
    Chad Althaus
    Bray International, Inc.
    Houston TX
    ------------------------------



  • 8.  RE: PCF Date time box.

    Posted Jan 31, 2020 12:55 PM
    @Chad Althaus

    No issues so far. I am impressed with MS support for react. I have added some really "heavy" react components and did not have any performance issues.​

    Probably the only thing is the lack of support for IE11, but it can addressed with a few configuration changes in pcf.

    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------



  • 9.  RE: PCF Date time box.

    Posted Feb 03, 2020 07:15 AM
    @Chad Althaus

    If you think of any controls that is useful to you, please let me know and maybe I can whip something up.​

    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------



  • 10.  RE: PCF Date time box.

    GOLD CONTRIBUTOR
    Posted Feb 03, 2020 12:58 PM
    @Rex Kenley Tan sounds great, I'll do that! I will try to open my mind to new ideas; I'm sure I'll come up with something, too, because we're just making the transition to UCI. ​

    ------------------------------
    Chad Althaus
    Bray International, Inc.
    Houston TX
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role