cancel
Showing results for 
Search instead for 
Did you mean: 

How to Handle Popup Window (DatePicker)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

detlev_beutner
Active Contributor
0 Kudos

Hi Armin,

to be precise, it's not the datepicker itself but the input field which throws the messages.

Application Language has been set to german, messages thrown are in english.

Would be great to hear if you have detemined the source of the proble.

Thanks in advance

Detlev