on 11-17-2004 1:02 PM
Hi,
at the moment I'm using developer studio SP4 with WAS 6.40 sneak preview.
I have implemented the UI element IWDDateNavigator. Of course, if user selects a day in the DateNavigator, I want to handle this event. So, I need to get the selected day. The event onDaySelect should be the right choice. The method I define should have a parameter day of type java.sql.Date (parameter mapping is considered). But if I implement it like this I got an error during execution because of wrong data type. It only works if I define the parameter day of type String. Then I get the date as String: "16.11.2004".
Is this an error of SP4? Or is it my error?
regards
Frank
Yes, it is a bug in Developer Studio SP4. When I deploy to WAS 6.40 SP6 it works with day of type java.sql.Date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frank,
Probably this is error of <b>SP4</b>.
I performed the following steps on <b>SP9</b> and everything works fine:
1. Add IWDDateNavigator to view
2. Create Action handler with parameter "day" of type java.sql.Date (actually, I've selected DDIC type rather then Java type)
3. Assing onDaySelect event to forementioned action
4. In wdDoModifyView I place the following code:
if (firstTime)
{
final IWDDateNavigator dn = (IWDDateNavigator)view.getElement("MyDateNavigator");
dn.mappingOfOnDaySelect().addSourceMapping("day", "day");
}
5. In action handler enter primitive code to debug value selected:
wdComponentAPI.getMessageManager().reportSuccess
(
"Date: " + day
);
Everything works as expected.
Regards,
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Addition to Valery's correct answer:
You can find the names and types of event parameters for UI elements in the Javadoc of method "mappingOf<Event>" and in the KW doc.
You can reach the KW doc from the NetWeaver developer studio by right clicking a UI element in the palette of the view designer. Or: If the element is already in the UI tree, right-click on the node in the outline view and select "Show Help".
The name of the event parameter is used as the first argument of method mappingOf..., the second parameter is the name of the corresponding action event handler parameter.
Armin
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.