on 02-28-2009 2:49 PM
I have a Date as input field in my View, I want to default the today Date for this fields.
Also, I want to show the date in the fields.
BR,
Ali
Hi Ali,
System variable sy-datum gives you the current date from the system. while displaying the DATE in wd4a you must be using textview or input field which must be binded to DATE type attribute in the context.
Use set_attribute method to set this ATTRIBUTES value to SY-DATUM.
Greetings
Prashant
Edited by: Prashant on Feb 28, 2009 8:54 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thnks all.
My issue solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ali,
For setting the default value in date field, you have to do the following things
1. Declare a attribute of type D in your view.
2. Bind the attribute to the input field of your view.
System variable sy-datum gives you the current date from the system
3. So Set the attributes value using
set_attribute by passing the sy-datum value in the value property.
Regard
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.