on 03-25-2008 12:23 AM
Hi all,
I want to display calendar beside my input field for date.
This input field will be displaying date as mm/dd/yyyy from the data taken from sql database.
The user should be able to click on the calendar and change the dates to something else.
How can I implement this in webDynpro?
Thanks
Anjana
Anjana,
Why do you need to two controls one input field and date conrol? Map your input control to context element, type as date. Here you can show your data base date and if you want modify to some thing else you can select date from date control.
Hope it is clear to you. There are so many examples in SDN to convert date to java.sql.Date and set it to the Input field.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think the solutions given above are right. Please close your thrad if answered.
Regards,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anjana,
The date is taken from Backend right? If so; you can directly specify the date field from backend and map that to an InputField UI Element; The default date format of WebDynpro os MM/DD/YYYY; so you don;t have to modify the date format; if you want to modify them then use the SimpleDateFormat().
Regards
- Vinod
*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use a standard input field that is mapped to a context element of type date. It will automatically provide you with a date selection icon.
HTH.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U have a date type field 'd' in table 't' . Hope you have done modeling i,e Jco connections etc.
Now when you apply template for root ui element > form> select that field d --> finish .
You can observe directly the field with the date type with a date picker.
If you want intially the date to be displayed , call the execute......method the table in the init() by passing
appropriate field as input to fetch the correct date . It will be of sql date.
Thanks ,
Srini
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.