cancel
Showing results for 
Search instead for 
Did you mean: 

How to go for lead selection

Former Member
0 Kudos

Hi All,

I have three views.The first is the search view and the other two are the tables view.

In the second view..I have to display the data from the BAPI in to the table..and on the lead selection of any row and after pressing the Get Detail button I should get the Details from the BAPI for the particular row in the Third view or Table.

Kindly provide me the logic to make it working.

Thanks in advance.

Regards

Dipendra

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member286976
Active Participant
0 Kudos

Hello Dipendra,

View1 -> View2 -> View3

Navigation through this views can be achieved by navigation plugs as you may already be aware of.

Sample code available in the location

<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d</a>

See samples '1 | 2 | 10 | 15 | 40 '

So after navigation logic is implemented, next step is to pass lead selection data from view2 to view3. This can be done by storing leadselection index in the Contoller context and access the same from view3. So just get the index and get the nodeElement and display the details.

Regards,

Sudeep.

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Mohanty,

You can get the lead selection row by current context element.

IFilterBAPIResultElement filterResult = wdContext.currentFilterBAPIResultElement();

filterResult.getAttributeA();

filterResult.getAttributeB(); ...

concatenate the attribute using "," and fire portal event

WDPortalEventing.fire(

"urn:sample",

"sample",

"Sample,"+Value);

Value contains data of selected row

subscribe in destination or third iview display the details.

Regards

Suresh

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Mohanty,

If your iview from different application use portal fire eventing.

If your iview belongs to same application use inbound plug and outbound plug

Regards

Suresh