Skip to Content

Default Value for date in web UI

Hi,

I'm working on a form on IDM 8.0 (classic webdynpro). I'd like to have the MX_VALIDFROM set to today's date when opening the form.

I tried with the parameter %ddm.-date%, it didn't work.

I tried putting a date with format yyyy-mm-dd, it worked (but obviously, I won't go and change it everyday to put the correct date).

Must I conclude that the forms can't retrieve parameters, only strings? Or should I review the syntax (I copied/pasted my constant from another pass since the ctrl+space didn't work on the Default Value column...)

Did anyone manage to do it?

Thanks a lot,

Clotilde

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 13 at 12:35 PM

    Following up on Matt's suggestion to solve this using an onLoad extension: there's the free and open source Rhidmo® extension for SAP IDM 8.0 which enables you to implement onLoad handlers as a normal SAP IDM package script using the JavaScript language. The benefit is that this can be developed and transported using your well-known SAP IDM Developer Studio directly. No custom Java development required.

    In case you wish to have a look, Rhidmo® has a GitHub project site here:

    https://github.com/foxysoft/idm-extension-rhidmo

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12 at 12:32 PM

    Hello Clotilde,

    I had the same idea for a UI mask in 7.2., but could not get it working. Now I have no default value on the mask, but if the user does not put a value, after saving I calculate the current date and write it to the attribute (with a script that checks, if the attribut is empty). So kind of the other way around.

    .

    Regards,

    Steffi.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12 at 12:41 PM

    Maybe an OnLoad Java extension? Not too up on that particular part of IDM, but it's an idea. Hmmm.... Maybe a small project for me? :)

    Add comment
    10|10000 characters needed characters exceeded