on 2004 Apr 22 9:39 PM
Hi there,
is there a sure way to build a popup window (here: for date picking purposes)?
I've realized two ways:
a) wdComponentAPI.getWindowManager.createWindow(...)
b) wdComponentAPI.getWindowManager.createExternalWindow(...)
The way (a) builds up a modal popup. The problems I have got with this is especially connected to the size of the pop up. In my case, if I set the windows size, this has no effect; the window is a bit too small and this is really disturbing when moving through the months.
The way (b) builds up a non-modal popup, where an WD-application is referred (and so has to be defined before) as the window URL. Setting size and position works, but no question, a non-modal popup window has it's own disadvantages (if the base view is changed by the user and after this, the user cares about the popup).
Any hints how to implement this well? Any standard way known for this question (I think it's a standard task)?
The best would be, to get the modal popup appear just beneath the input field for the date.
Thanks in advance
Detlev
Detlev,
why do you want to build a date picker by yourself? An InputField that is bound to a context attribute of type Date provides a date picker automatically.
Regards, Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
thanks, that's what I have learned today (looking by accicent at a certain doc, which is not part of the NWDS doc!).
Nevertheless - do I have any chance to get control of the messages this datepicker throws? They are all in english, which is not accecptable for a german application.
Thanks in advance,
Detlev
Detlev,
you are right, we should/will document this feature better in the production release.
What do you mean by "messages this datepicker throws"? The date picker itself should not throw any messages at all because you can only select valid dates.
When you enter some date as a string in the input field, it will be parsed by the Java DDIC which in turn may throw an error message. This message should be given in the application's language. I will check if this is a problem with the sneak preview or a bug.
Best regards, Armin
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.