on 05-12-2009 5:00 PM
This is my first attempt at using cell popins. I followed the WIKI and was able to have the row popin work - cell popin is another story...
The cell popin opens with the correct data. When you click the close button it fails.
java.lang.NullPointerException at spiritaero.com.dogs.attendtrack.rpt.group.DetailView.onActionCloseClockOutPopin(DetailView.java:391) which is the row.setKey.
The onActionCloseClockOutPopin has the following code
public void onActionCloseClockOutPopin(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent,
spiritaero.com.dogs.attendtrack.rpt.group.wdp.IPrivateDetailView.IAttendanceEntryElement row )
{
//@@begin onActionCloseClockOutPopin(ServerEvent)
row.setKey(""); <<<< Line 391
//@@end
}
The field AttendTrkRptGroupComp.AttendanceGroup.AttendanceEntry.Key is of type string.
In the doModifyView I have
if (firstTime)
{
IWDLinkToAction lAClockOut = (IWDLinkToAction) view.getElement("ClockOutLinkToActionAbsence");
lAClockOut.mappingOfOnAction().addSourceMapping("nodeElement", "row");
......
Thoughts on the steps I missed?
Regards,
Diane
Hello Diane,
when you press the popin's close button, the action assigned to the "onClose" event is triggered. See
This event has no parameters. Therefore if you assign your action to this event, the row parameter is NULL.
For toggling the popin you should use a TablePopinToggleCell, not a plain LinkToAction.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am following the WIKI https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/howtoimplement+TablePopin
When using the Table Popin the toggle worked fine - row level. However my customer prefers I use the second option offered by the WIKI which is cell level - there the WIKI says "For this we need to have a column with the LinkToAction UI as TableCellEditor". I'm only using 7.0 and not CE 7.1 - is that the problem?
Edited by: Diane Fuller on May 13, 2009 7:47 AM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.