Skip to Content

Is it possible to display only future dates on the user interface in a date attribute ?


I want to block the user to shoose a date in the past for the attribute mx_validto. Is it possible ? any ideas how to do that please !

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 13, 2018 at 09:59 AM

    I guess the answer depends on which type of UI you're using. For IDM's generated WebDynpro UI, restricting the values offered by a date picker up-front before the user makes his selection is not possible. If you're not using WebDynpro, but SAPUI5 based on SAP IDM REST API, it is possible, although I can't provide more details about this.

    An alternative approach might be not to restrict the date picker upfront, but instead reject past values during input validation on save. You could either implement the SAP IDM Extension Framework in Java for that purpose, if that is feasible in your particular environment. Alternatively, you could use one of several frameworks out there that enable you to implement such extensions using normal JavaScript package scripts instead of Java. One of the frameworks that provide this feature is Rhidmo. The version for SAP IDM 8.0 is open source and can be downloaded from GitHub. There's also a closed-source, proprietary version for 7.2. Search this blog for more documentation about that.

    Hope that helps, Lambert

    Add comment
    10|10000 characters needed characters exceeded