Skip to Content
avatar image
Former Member

LinkToAction UI Element inside a Table

Hi all,,

I am using a LinkToAction UI element in the first column of a Table.

The scenario is that when i click on this link(onAction Event), it should navigate to the next view say resultView. Also if i click on other column element (onLeadSelection Event)

then also it should navigate to the resultView.

I have fired an outbound plug in the onLeadSelection event handler. And the onAction event also calls the same eventhandler. So when i click on the link, it fires onLeadSelection event and navigates to resultView and after this it tries to find same handler for onAction but since its now navigated to next view gives an exception saying :

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Instance of view controller TableView does not exist. 

    at com.sap.tc.webdynpro.progmodel.controller.Component.getController(Component.java:356)
    at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:826)
    at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:757)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.initEvents(AbstractClient.java:131)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.prepareTasks(AbstractClient.java:99)

I am working on NWDS 04.

Please suggest me some alternative or solution for this.

Any help will be appreciated.

Thanks,

Ami

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Mar 21, 2008 at 02:56 PM

    Please post your code.

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Armin,

      Thanks for quick response.

      My problem is solved as follow:

      I used

      theTable.mappingOfOnLeadSelect().addSourceMapping("row","row");
      theTable.mappingOfOnLeadSelect().addSourceMapping("col","col");      
      

      and then in onActionLeadSelection(wdEvent, int row, String col) method i put one if condition which will not fire the outbound plug for the link column.

      and in onAction() method associated with link, again seperately fired the same plug.

      which solved my problem.

      Thanks,

      Ami