cancel
Showing results for 
Search instead for 
Did you mean: 

Close Table Cell Popin - null pointer exception

former_member540174
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Diane,

when you press the popin's close button, the action assigned to the "onClose" event is triggered. See

http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/...

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.

http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/...

Armin

former_member540174
Participant
0 Kudos

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