on 05-08-2007 3:48 PM
Hi all,
I've got the following issue to solve:
In our WD4A ALV there is a date field which must be filled by the user but we do not want the users to fill the field by themselves.
Therefor we added an extra column to the ALV which shows an icon for date selection.
If the user clicks on this icon the same date-selector should appear as the one the searchhelp would show when the datefield was ready for input.
Can anybody tell me how to get this done?
Thanks in advance
Wouter Heuvelmans
Pyramid Applied Solutions
Hello Wouter,
For all date fields (ABAP type D) Web Dynpro automatically offers a data selector. There's probably no need to implement your own. Just click inside of the input field in the table. The date picker should appear now.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas
I know, but then the user first has to click on the input field to make the date-selector-option appear.
To make the user aware of the fact that he or she needs to select a date but the datefield itself is not ready for input itself, we added a second column with a date-selector icon. Clicking on that icon should start the same function as the standard searchhelp. Is that possible?
Thanks
Wouter
Hi Wouter,
We made the data picker hidden to save horizontal space. Unfortunately, the built-in data picker is an optimized client-only functionality, which can't be accessed or triggered by applications. The user becomes able to select a date without having a request being sent to the server. Nonetheless, you could implement a date picker by yourself using a popup and place the DateNavigator ui element on it. Of course, this can be triggered using a LinkToURL ui element with an icon in a separate table column.
Best regards,
Thomas
Hi Wouter.
You could create a view with the DateNavigator UIElement and add this view to a
new window. Then use if_wd_window_manger to create a popup with this view
when the icon (button) is clicked.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.