Skip to Content
0

Default Value for date in web UI

6 days ago

16

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Steffi Warnecke
6 days ago
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Lambert Boskamp 5 days ago
0

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

Share
10 |10000 characters needed characters left characters exceeded
Matt Pollicove
6 days ago
0

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? :)

Share
10 |10000 characters needed characters left characters exceeded